Skip to content

Agentic AI documentation overhaul (mid-2026 best practices) #43

Description

@ulises-c

What this is

Sweep of agent-instruction docs across Computer-Setup and downstream
projects to match mid-2026 best practices. The AI tooling landscape
shifted through 2025–2026 (AGENTS.md cross-agent convention,
multi-agent workflows with Claude Code + opencode + Codex + Cursor,
MCP proliferation), and the docs here need to catch up.

Goals

  1. Adopt the AGENTS.md convention. AGENTS.md at repo root is
    now read by Codex, opencode, Aider, Jules, Cursor agent mode, and
    Claude Code (as fallback). Tool-specific companion files
    (CLAUDE.md, future OPENCODE.md, etc.) should @AGENTS.md-import
    and only add tool-specific rules below the import.
  2. Audit the global ~/.claude/CLAUDE.md. Some content here is
    project-agnostic and belongs in a portable AGENTS.md template;
    some is Claude-Code-specific (subagents, slash commands) and
    should stay where it is.
  3. Codify the split rule. Project facts (architecture, build,
    conventions, don'ts) → AGENTS.md. Tool-feature usage (slash
    commands, subagents, MCP servers) → tool-specific file. If a rule
    could plausibly apply to a future agent that isn't set up yet, it
    belongs in AGENTS.md.
  4. Gather learnings from other AI-heavy projects. The comment
    below captures patterns abstracted from one project
    (student-planner). Same audit needs to happen across the other
    large AI-driven projects so portable conventions get pulled out
    before they bake into the global rules.

Tools / topics to cover

  1. Railguard — memory provenance warnings, append-only memory
    behavior, known false-positive patterns. See learnings comment
    below.
  2. AGENTS.md — root-level placement (not .agents/), nested
    per-directory overrides (closest-file-wins like .gitignore),
    file-layout convention. student-planner has a
    docs/agents/README.md documenting the split rule and onboarding
    checklist — consider templating it for new repos.
  3. CLAUDE.md@AGENTS.md import pattern, real file not a
    symlink
    (Windows checkouts without Developer Mode turn symlinks
    into plain text containing the literal target string, silently
    breaking auto-load), Claude-Code-only rules below the import.
  4. opencode / Codex / Cursor / etc. — confirm each tool's
    AGENTS.md support status, document config-dir patterns
    (.cursor/rules/, .opencode/, etc.). Most modern agents read
    AGENTS.md natively — only add a companion file when the tool
    genuinely needs tool-only rules.

Upstream issues and fixes needed

  1. Potentially a RAILGUARD.md consolidating the safety rules and
    known false-positive patterns (see learnings comment).
  2. Railguard fork PR to upstream pending — upstream may be abandoned:
    https://github.com/ulises-c/railguard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions