Skip to content

docs(agents): AGENTS.md routes each task to the document that owns it, and no agent prompt or instruction carries the legacy process #1961

Closed

Description

@dan-petty

Friction

The owner asked on 2026-10-23 to clean every agent prompt and instruction of legacy instructions and language that cause sub-optimal project management and code development: "Agent files should provide routing guidance to other docs rather than having thousands of lines of instructions." Every agent reads AGENTS.md in full at the start of each session, and today it holds 36,700 characters of rules, many of which repeat, contradict or outlive the documents that own the subject.

Evidence

  • AGENTS.md is 36,733 characters. It repeats rules that live in docs/TESTING.md, SECURITY.md, docs/SDLC.md, docs/SELF_IMPROVEMENT.md, RELEASE_CYCLE.md and k8s/README.md, and it holds rules for processes that feat(release): release-please makes every release from main #1952 deleted or that only some tasks need.
  • devops ai agents (src/devops_cli/ai/instruction_generator.py, 37,887 characters of source) writes a similar long AGENTS.md into other repositories.
  • The model prompts under src/devops_cli/ai/tasks/ (47 files) and the knowledge base under src/devops_cli/ai/knowledge_base/ (78 files) still carry process language from the old release flow and the deleted planner.

Existing tool considered

The AGENTS.md convention itself (agents.md) recommends a short file that points to the project's documents. CLAUDE.md, GEMINI.md and .github/copilot-instructions.md are already pointers. Nothing is built.

Proposed remedy

  • AGENTS.md becomes a router: the few rules that apply to every task, and a table that sends each kind of task to the document that owns it. Each rule lives in exactly one document; a rule that no current process needs is deleted.
  • The generated AGENTS.md of devops ai agents follows the same shape for a target repository.
  • The model prompts, the knowledge base and openspec/config.yaml drop every legacy instruction.
  • Tests: AGENTS.md stays under a small size cap, every document it routes to exists, and no agent-facing file names a deleted process.

Activity

  1. added
    source/agent
    type/docs
    on Oct 23, 2026
  2. dan-petty commented on Oct 23, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/docs. The candidate changes documentation about agents and their instructions.
    • Priority: P1-High. The change fixes a problem that causes sub-optimal project management and code development.
    • Value: High. The change improves how tasks are routed and reduces legacy process language.
    • Effort: Medium. The change needs updates to many files and processes across the repository.
  3. added a commit that references this issue on Oct 23, 2026
    82b6a67
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

    source/agenttype/docs

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions