Skip to content

docs: unify agent instructions in AGENTS.md - #60

Merged
twoimo merged 4 commits into
mainfrom
docs/agent-docs-unify
Nov 23, 2026
Merged

twoimo merged 4 commits into
mainfrom
docs/agent-docs-unify

Conversation

@twoimo

@twoimo twoimo commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Why

Every project should have one instruction source, so Claude Code, Codex, Antigravity, Cursor and Aside agents all follow the same rules. AGENTS.md is that source, and CLAUDE.md only imports it. Each repo also gets a small doc set (STATUS.md, ARCHITECTURE.md, DESIGN.md for UI, CHANGELOG.md) that agents keep current after every session and read only when they need it.

What moved where

From To
AGENTS.md Layout bullets for src/, tests/, desktop/, macos/AutoReplyMenu/ ARCHITECTURE.md Codemap (expanded)
AGENTS.md Layout bullet for scripts/ (baked, frozen copy runs in production) kept verbatim in AGENTS.md
(new) AGENTS.md pointer to ARCHITECTURE.md
CONTRIBUTING.md release step 5 (no tag force-move, v1.1.0 incident) one-line rule in AGENTS.md Conventions. CONTRIBUTING.md is unchanged
(new) AGENTS.md Docs map and Session protocol
.gitignore line CLAUDE.md removed, so the tracked CLAUDE.md (@AGENTS.md) can exist
(new) STATUS.md from git log, gh pr list, gh issue list and CI runs
(new) ARCHITECTURE.md: bird's-eye view, reply-turn and unattended-host flows, codemap, invariants, boundaries

Not changed: desktop/DESIGN.md is already the UI design contract, so the docs map points to it and no root DESIGN.md was added. CHANGELOG.md already existed. No GEMINI.md, .cursor/rules or copilot instructions existed. Every safety rule in AGENTS.md stays verbatim. The six removed lines contain no constraint wording, and each one's content is in ARCHITECTURE.md.

Verification

$ python3 ~/.agents/skills/project-onboard/scripts/check_docs.py .
OK .

AGENTS.md is 147 lines and 7,361 bytes. No code, test, workflow or script names any of these doc files, so no test suite was run. A second agent checked each claim in ARCHITECTURE.md and STATUS.md against the source. Its corrections are applied: the AX send gate is the safety.* config checks, the live DB opens with SQLITE_OPEN_READ_ONLY, the unattended host runs auto-reply-host --tick and then /bin/sh, and Python is provisioned, not bundled.

For the owner

🤖 Generated with Claude Code

twoimo and others added 4 commits November 23, 2026 10:35
AGENTS.md stays the one instruction source for every agent host. A
tracked CLAUDE.md now holds only @AGENTS.md, so .gitignore stops
ignoring it. The layout bullets move into a new matklad-style
ARCHITECTURE.md, and STATUS.md records the current state. AGENTS.md
gains a docs map, a session protocol, and the release-tag rule from
CONTRIBUTING.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parallel feature branches conflicted on STATUS.md. The updated
project-onboard rule has feature branches record progress in the PR
description and overwrite STATUS.md only on the default branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@twoimo
twoimo merged commit ad44892 into main Nov 23, 2026
4 checks passed
@twoimo

twoimo commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Decision: merge.

Evidence:

  • Session protocol replaced with the current rule from ~/.agents/skills/project-onboard/templates/AGENTS.md (0baf26a). Feature branches now record progress in the PR description, and STATUS.md is overwritten only on main. The file stays in English.
  • python3 ~/.agents/skills/project-onboard/scripts/check_docs.py . prints OK . on e05a519. AGENTS.md is 147 lines.
  • An independent reviewer (Opus) checked every path and symbol in ARCHITECTURE.md against the source and gave PASS+NOTES. No safety rule was lost, and the Safety and Checks sections are byte-identical. Its one doc fix is applied in e05a519: auto-reply-host also has --disable (src/main.rs). The two notes about STATUS.md (it names 3ab3109 as the tip and says "exact requested model") will be fixed when STATUS.md is overwritten on main after this round of merges.
  • Un-ignoring CLAUDE.md exposes no private file. git status --porcelain --ignored | grep -i claude.md matches nothing in the primary checkout or in any worktree.
  • No code, test or workflow reads these docs, so no CI step can change. GitHub-hosted Actions are blocked by billing, so the zero-step check failures are infra state.
  • The runbook gap this PR records is fixed in its own PR.

@twoimo

twoimo commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner Author

Superseded: hosted GitHub Actions ran on this head and passed. The local-ci statuses for jobs that could not run here now read error, "not run locally; hosted Actions ran and passed". Use the check runs as the evidence.

local-ci: #60 @ e05a519

Ran run: steps from the PR head's workflows on macOS (arm64), one job at a time under nice -n 10, in a fresh worktree of e05a519e411a with a scratch HOME and TMPDIR. GitHub would check out the merge commit; this run used the head commit. Changed files against main: 0.

Workflow Triggered Why
ci.yml (CI) yes pull_request with no path filter
release.yml (Release) no no pull_request trigger
Status context Result Time Reason
local-ci/CI/python-harness error 0s runs-on ubuntu-latest is not macOS
local-ci/CI/macos success 2m01s
local-ci/CI/desktop error 0s step 3 Set up Python 3.11: Command '['/Users/twoimo/.local/bin/python3.11', '-m', 'venv', '/var/folders/8d/nwv_19w124zbq0dxqx2r1jn40000gn/T/local-ci-r99vzcq4/venv-3.11.9']' returned non-zero exit status 1.
Steps not run as written
  • local-ci/CI/macos step 1 actions/checkout@34e1148: local, PR head e05a519 already checked out
  • local-ci/CI/macos step 3 Install Rust toolchain: local, local cargo cargo 1.97.1 (c980f4866 2026-06-30)
  • local-ci/CI/macos step 4 Cache cargo registry and build: local, cache only; no effect on the result
  • local-ci/CI/macos step 11 Upload menu layout audit: not-run, actions/upload-artifact@ea165f8: action not run locally
  • local-ci/CI/desktop step 1 actions/checkout@34e1148: local, PR head e05a519 already checked out

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant