charter fix --rule AE-CTX-001
Why this rule
Agents operate from what they can read in the repo. A missing or empty context file means the agent starts every session with no orientation — it guesses at the stack, invents build commands, and may edit files it should leave alone. A context file that exceeds the token budget gets truncated, which is often worse than no file at all because the agent receives partial, misleading instructions.What triggers it
Charter looks for any of the following files in the repo root:AGENTS.md, CLAUDE.md, .cursor/rules, .windsurfrules, .github/copilot-instructions.md, opencode.md, codex.md, DESIGN.md, SKILL.md.
The finding fires when:
- No recognized context file exists
- The file is empty or contains only placeholder text (e.g. “Add your project details here”)
- The file exceeds the 600-token budget that agent context windows reliably fit
Examples
- Failing
- Passing
AGENTS.md (placeholder)
AGENTS.md (over budget)
How to fix
Preview the scaffolded file
Run
charter fix --rule AE-CTX-001 --dry-run to see what Charter will create before writing anything.Create the context file
Run
charter fix --rule AE-CTX-001 to scaffold a minimal AGENTS.md at the repo root.Reflect your actual project
Edit the file to include your real stack, verification command, edit boundaries, and any hard constraints. Generic scaffolding still satisfies the rule syntactically but gives agents nothing useful.
Score impact
Blocker severity: −20 to the base score. The hard cap at ≤ 59 applies while this finding is active — the repo cannot reach a passing score until AE-CTX-001 is resolved.
Edge cases
A repo usingCLAUDE.md, DESIGN.md, or SKILL.md instead of AGENTS.md passes if the file satisfies the same content requirements. Charter accepts any recognized filename — the check is on content and budget, not the specific filename.
Related rules
- AE-CTX-002 — context file must stay consistent with the actual repo state
- AE-CTX-004 — agent session artifacts must be gitignored
- AE-CTX-006 — emphatic directive density
- AE-CC-002 — edit scope must be declared