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
- 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.
- 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.
- 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.
- 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
- Railguard — memory provenance warnings, append-only memory
behavior, known false-positive patterns. See learnings comment
below.
- 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.
- 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.
- 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
- Potentially a
RAILGUARD.md consolidating the safety rules and
known false-positive patterns (see learnings comment).
- Railguard fork PR to upstream pending — upstream may be abandoned:
https://github.com/ulises-c/railguard
What this is
Sweep of agent-instruction docs across
Computer-Setupand downstreamprojects 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
AGENTS.mdat repo root isnow read by Codex, opencode, Aider, Jules, Cursor agent mode, and
Claude Code (as fallback). Tool-specific companion files
(
CLAUDE.md, futureOPENCODE.md, etc.) should@AGENTS.md-importand only add tool-specific rules below the import.
~/.claude/CLAUDE.md. Some content here isproject-agnostic and belongs in a portable
AGENTS.mdtemplate;some is Claude-Code-specific (subagents, slash commands) and
should stay where it is.
conventions, don'ts) →
AGENTS.md. Tool-feature usage (slashcommands, 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.below captures patterns abstracted from one project
(
student-planner). Same audit needs to happen across the otherlarge AI-driven projects so portable conventions get pulled out
before they bake into the global rules.
Tools / topics to cover
behavior, known false-positive patterns. See learnings comment
below.
.agents/), nestedper-directory overrides (closest-file-wins like
.gitignore),file-layout convention.
student-plannerhas adocs/agents/README.mddocumenting the split rule and onboardingchecklist — consider templating it for new repos.
@AGENTS.mdimport pattern, real file not asymlink (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.
AGENTS.mdsupport status, document config-dir patterns(
.cursor/rules/,.opencode/, etc.). Most modern agents readAGENTS.mdnatively — only add a companion file when the toolgenuinely needs tool-only rules.
Upstream issues and fixes needed
RAILGUARD.mdconsolidating the safety rules andknown false-positive patterns (see learnings comment).
https://github.com/ulises-c/railguard