AGENTS.md
src/features/AGENTS.mdAGENTS.md
Quality
74/100
Scores the file, not the repository.Length
726 words
21 headings · 7 code blocksRepository
38k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1<!-- Parent: ../AGENTS.md -->2<!-- Generated: 2026-01-28 | Updated: 2026-01-31 -->34# features56Core feature modules for oh-my-claudecode - model routing, state management, verification, and more.78## Purpose910This directory contains self-contained feature modules that enhance orchestration:11- **model-routing/** - Smart routing to Haiku/Sonnet/Opus based on task complexity12- **boulder-state/** - Plan state persistence and tracking13- **verification/** - Reusable verification protocol14- **notepad-wisdom/** - Plan-scoped learnings, decisions, issues15- **delegation-categories/** - Semantic task categorization16- **task-decomposer/** - Task breakdown for parallel execution17- **state-manager/** - Standardized state file management18- **context-injector/** - Context enhancement injection19- **background-agent/** - Background task concurrency20- **rate-limit-wait/** - API rate limit handling2122## Key Files2324| File | Description |25|------|-------------|26| `index.ts` | Re-exports all feature modules |27| `magic-keywords.ts` | Magic keyword detection (ultrawork, analyze, etc.) |28| `continuation-enforcement.ts` | Ensures task completion before stopping |29| `auto-update.ts` | Silent version checking and updates |30| `background-tasks.ts` | Background task execution patterns |31| `delegation-enforcer.ts` | Enforces delegation-first protocol |3233## Subdirectories3435| Directory | Purpose |36|-----------|---------|37| `model-routing/` | Intelligent model selection based on complexity |38| `boulder-state/` | Plan state and progress persistence |39| `verification/` | Verification protocol with evidence tracking |40| `notepad-wisdom/` | Plan-scoped knowledge capture |41| `delegation-categories/` | Task categorization for model/temp selection |42| `task-decomposer/` | Task breakdown for parallelization |43| `state-manager/` | Standardized state file locations |44| `context-injector/` | Context enhancement for prompts |45| `background-agent/` | Background task management |46| `rate-limit-wait/` | Rate limit detection and waiting |47| `builtin-skills/` | Built-in skill definitions |4849## For AI Agents5051### Working In This Directory5253#### Model Routing5455Routes tasks to optimal model based on complexity signals:5657```typescript58import { routeToModel, extractComplexitySignals } from './model-routing';5960const signals = extractComplexitySignals(prompt);61const model = routeToModel(signals); // 'haiku' | 'sonnet' | 'opus'62```6364**Signal types:**65- Code complexity (LOC, cyclomatic complexity)66- Task keywords (debug, refactor, implement)67- File count and scope68- Error/risk indicators6970#### Boulder State7172Persists plan state across sessions:7374```typescript75import { readBoulderState, writeBoulderState, hasBoulder } from './boulder-state';7677if (hasBoulder()) {78 const state = readBoulderState();79 state.progress.completedTasks++;80 writeBoulderState(state);81}82```8384**State location:** `.omc/state/boulder.json`8586#### Verification Protocol8788Standardized verification with evidence:8990```typescript91import { createVerificationContext, addEvidence, isVerified } from './verification';9293const ctx = createVerificationContext(['BUILD', 'TEST', 'FUNCTIONALITY']);94addEvidence(ctx, 'BUILD', { passed: true, output: '...' });95addEvidence(ctx, 'TEST', { passed: true, output: '...' });9697if (isVerified(ctx)) {98 // All checks passed99}100```101102**Check types:** BUILD, TEST, LINT, FUNCTIONALITY, ARCHITECT, TODO, ERROR_FREE103104#### Notepad Wisdom105106Capture learnings during execution:107108```typescript109import { initPlanNotepad, addLearning, addDecision } from './notepad-wisdom';110111initPlanNotepad('my-plan');112addLearning('my-plan', 'The API requires auth headers');113addDecision('my-plan', 'Using JWT for authentication');114```115116**Location:** `.omc/notepads/{plan-name}/`117118#### Delegation Categories119120Semantic categorization for model selection:121122```typescript123import { categorizeTask, getCategoryConfig } from './delegation-categories';124125const category = categorizeTask(prompt); // 'ultrabrain' | 'visual-engineering' | etc.126const config = getCategoryConfig(category);127// { tier: 'HIGH', temperature: 0.3, thinking: 'max' }128```129130### Modification Checklist131132#### When Adding a New Feature1331341. Create feature directory with `index.ts`, `types.ts`, `constants.ts`1352. Export from `features/index.ts`1363. Update `docs/FEATURES.md` with API documentation1374. Update `docs/AGENTS.md` if architecture changes138139#### When Modifying State File Paths1401411. Update `state-manager/` for path standardization1422. Consider migration logic for existing state files1433. Document new paths in feature's README or AGENTS.md144145### Common Patterns146147#### Feature Module Structure148149```150feature-name/151├── index.ts # Main exports152├── types.ts # TypeScript interfaces153├── constants.ts # Configuration constants154└── *.ts # Implementation files155```156157### Testing Requirements158159```bash160npm test -- --grep "features"161```162163## Dependencies164165### Internal166- Features are self-contained but may import from `shared/types.ts`167168### External169| Package | Purpose |170|---------|---------|171| `fs`, `path` | File operations for state persistence |172173## Feature Summary174175| Feature | Purpose | State Location |176|---------|---------|----------------|177| model-routing | Smart model selection | N/A (stateless) |178| boulder-state | Plan progress tracking | `.omc/state/boulder.json` |179| verification | Evidence-based verification | In-memory |180| notepad-wisdom | Knowledge capture | `.omc/notepads/` |181| delegation-categories | Task categorization | N/A (stateless) |182| task-decomposer | Parallelization | In-memory |183| state-manager | File path standardization | `.omc/state/`, `~/.omc/state/` |184| context-injector | Prompt enhancement | In-memory |185| background-agent | Concurrency control | In-memory |186| rate-limit-wait | Rate limit handling | `.omc/state/rate-limits.json` |187188<!-- MANUAL: -->189
Also in Yeachan-Heo/oh-my-claudecode
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Yeachan-Heo/oh-my-claudecode.github/CLAUDE.md · 38k | CLAUDE.md | setupbuildstylegit+2 | 79/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodeAGENTS.md · 38k | AGENTS.md | setuplint-formatstyletypes+4 | 45/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodeskills/AGENTS.md · 38k | AGENTS.md | teststylearchdependencies+1 | 66/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/AGENTS.md · 38k | AGENTS.md | buildteststylearch+2 | 77/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/agents/AGENTS.md · 38k | AGENTS.md | teststylearchdependencies+1 | 66/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/hooks/AGENTS.md · 38k | AGENTS.md | setupteststylearch+2 | 74/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/tools/AGENTS.md · 38k | AGENTS.md | setupteststylearch+1 | 86/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/tools/diagnostics/AGENTS.md · 38k | AGENTS.md | teststylearchtypes+2 | 77/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/tools/lsp/AGENTS.md · 38k | AGENTS.md | setupteststylearch+2 | 74/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodeCLAUDE.md · 38k | CLAUDE.md | setupbuildstylegit+1 | 65/100 | 3 days ago |
Diff against .github/CLAUDE.md Diff against AGENTS.md Diff against skills/AGENTS.md Diff against src/AGENTS.md Diff against src/agents/AGENTS.md Diff against src/hooks/AGENTS.md Diff against src/tools/AGENTS.md Diff against src/tools/diagnostics/AGENTS.md Diff against src/tools/lsp/AGENTS.md Diff against CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago |
