Skip to content

feat(adf): strengthen thin pointer language with agent-specific write-prohibition #25

Closed

Description

@SmartBrandStrategies

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

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

  1. added this to the v0.7.0 milestone on Mar 4, 2026
  2. SmartBrandStrategies commented on Mar 4, 2026

    @SmartBrandStrategies
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions