Repository navigation
Description
Problem
Current thin pointers generated by charter adf migrate direct agents to .ai/ but do not explicitly prohibit writing back to the vendor file. Agents (Claude, Codex, Gemini, Copilot) each have different instruction-following behaviors and format expectations. A generic pointer misses opportunities to use agent-specific phrasing that reduces (but cannot eliminate) unwanted writes.
Proposed Solution
Update charter adf migrate pointer generation to include explicit write-prohibition language tailored to each vendor format:
CLAUDE.md
# CLAUDE.md
> **DO NOT add rules, constraints, or context to this file.**
> This file is auto-managed by Charter. All project rules live in `.ai/`.
> New rules should be added to the appropriate `.ai/*.adf` module.
> See `.ai/manifest.adf` for the module routing manifest..cursorrules
DO NOT modify this file. All project rules are managed in .ai/ by Charter.
See .ai/manifest.adf for the module routing manifest.agents.md / AGENTS.md (Codex)
# agents.md
> **DO NOT add instructions to this file.**
> All agent instructions are managed in `.ai/` by Charter.
> See `.ai/manifest.adf` for the module routing manifest.GEMINI.md
# GEMINI.md
> **DO NOT add rules or context to this file.**
> All project rules are managed in `.ai/` by Charter.
> See `.ai/manifest.adf` for the module routing manifest.Key Phrasing Choices
- "DO NOT" is imperative language that Claude and most agents respect more than "please don't"
- "auto-managed by Charter" signals the file is not human-authored, reducing agent confidence in treating it as a writable target
- "New rules should be added to..." gives the agent a concrete alternative action
- Keep pointers short — long pointers waste context tokens on every load
Acceptance Criteria
-
charter adf migrategenerates updated pointer language per vendor format -
charter adf tidy(feat(adf): addcharter adf tidycommand to sweep vendor file bloat back into ADF modules #23) restores the updated pointer format (not the old one) - Existing thin pointer detection (
POINTER_MARKERSin doctor) still recognizes updated pointers - Pointer language is concise (under 6 lines per file)
Notes
This is the weakest lever — agents will still sometimes write to vendor files regardless of instructions. The pre-commit auto-tidy (#24) is the real enforcement mechanism. But better pointer language reduces the frequency and is free to implement.
Activity
SmartBrandStrategies commentedon Mar 4, 2026
Shipped in 4162f7f. Updated pointer templates for all 5 vendor formats (CLAUDE.md, .cursorrules, agents.md, GEMINI.md, copilot-instructions.md) with explicit write-prohibition language. POINTER_MARKERS expanded to recognize new phrases. Bootstrap and adf init --emit-pointers now generate all 5 pointers.
feat(adf): strengthen thin pointer language with agent-specific write…