Repository navigation
docs(agents): load nested AGENTS.md in Claude Code and trim unused rules - #60
Conversation
Quest-Claim: 6b8372370cbb07ab
Run the m1 instructions audit: - Delete the root CLAUDE.md. As a CLAUDE.md it stopped Claude Code from loading app/AGENTS.md and api/AGENTS.md; without it, Claude reads the root AGENTS.md at start and nested ones on demand, as in moq. - Refresh the Quests reference line to the pinned quest's wording, which skips rerunning quest context once a hook has loaded it. - Cut the unenforced namespace-import rule and the quest pin note that CONTRIBUTING already covers; drop CONTRIBUTING's copy of the just dev rule. - Let `bun run --cwd app test <path>` run one file. - Plan the next run under quest/m2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Maintainer decision (via /quest-run):
(Written by Claude Opus 5.5) |
… quest's lock-only pin Applies the maintainer's decisions on #60: drop the repository hook that exec'd moq's deleted direnv.sh (as moq-dev/moq#8183 did), and describe the quest input as untagged and pinned by flake.lock, as the bump bot writes it since #67. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 25 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Maintainer decision (via /quest-run): ✅ (Written by Claude Opus 5.5) |
|
Applying the (Written by Claude Opus 5.5 with medium) |
First run of the m1
instructionsaudit, over 2026-10-25 to 2026-11-25. Sources: PR## Modelsand## Reviewrecords,quest messageson five hosts, 34 Claude Code, 22 Codex, and 1 Antigravity session in hang.live checkouts, and every guidance pagequest guide promptinglinks.Changes
CLAUDE.md(@AGENTS.md). Because aCLAUDE.mdexists, Claude Code skips theAGENTS.mdfiles underapp/andapi/, so neither had ever loaded. Without it, Claude reads the rootAGENTS.mdat start and nested ones on demand, as in moq, which has noCLAUDE.md.CONTRIBUTING.mdnow says why there is none..claude/hooks/direnv.shand.claude/settings.json, which held only that hook), as moq-dev/moq#8183 did. It exec'd moq'sdirenv.sh, which that PR deleted, so it failed at every session start. The user-level dev-shell hook already loads the dev shell.AGENTS.md's keep rule andCONTRIBUTING.md's hook sentences go with it.AGENTS.md: refresh theQuests:line to the pinned quest's wording, which tells agents not to rerunquest contextwhen a hook already loaded it. Cut "Prefer ESM namespace imports and explicit types", and cut the quest pin note.CONTRIBUTING.mdand theflake.nixcomment: describe thequestinput as untagged and pinned byflake.lockalone, as the bump bot writes it since #67, withnix flake update questfor a manual bump. Drop the copies of thejust devrule and thequest contextline;AGENTS.mdkeeps both.app/package.json:testno longer hardcodessrc, sobun run --cwd app test <path>runs one file. Ten sessions retyped the script's full flags to do that.quest/m2/audit-instructions.md, scheduled 2026-12-02, after m1.Public API and wire impact: none.
Decisions
From the maintainer's decision comment:
CLAUDE.md: ✅ keep the deletion (rejected: restore it plusapp/andapi/CLAUDE.mdstubs).Quests:line: ✅ keep the refreshedAGENTS.mdline and dropCONTRIBUTING.md's copy (rejected: keep both).REVIEW.md).flake.nixcomment and docs with the bot's untagged, lock-pinned input (rejected: restore the line and make the bot write a tag).CONTRIBUTING.md's copy of thejust devrule: ✅ keep the removal (rejected: restore).Choices made while the maintainer was away, for review:
.claude/settings.jsonoutright rather than keep a schema-only file: the hook was its only content, andquest initdoes not recreate it.AGENTS.md549 B,app/AGENTS.md1,004 B,api/AGENTS.md1,017 B after main's changes), and change its hook check to "no repository SessionStart hook has come back".Findings
Measured loaded sets, all far under each harness's limits:
AGENTS.mdis 549 B.app/AGENTS.md(1,004 B) andapi/AGENTS.md(1,017 B) now load on demand; before this PR they never loaded.AGENTS.mdagainst a 32 KiBproject_doc_max_bytes.AGENTS.mdonly.Kept as is:
REVIEW.md:quest reviewinjected it into all 4 Codex reviews since chore: adopt moq's agent, lint, TypeScript, and CI guardrails #49.AGENTS.md"never npm" clause: no session needed it, but no check stops a new@moq/*dependency from coming from npm.just devrule: you chose its wording in fix(room): one watch pipeline per tile, room audio, and chat window #43, and all 5 sessions that startedjust devsince then stopped it.RISK.mdexists, so every change, these files included, rates medium by default. No risk line is needed until aRISK.mdlands.Caused by
app/AGENTS.mdandapi/AGENTS.md, which Claude Code never loads while the rootCLAUDE.mdexists (found by check: this audit).direnv.shwhile Hang's hook still exec'd it (found by check: this audit).Follow-ups
/quest-planthere:quest initkeeps an outdatedQuests:reference line once its marker exists, which is how Hang's copy went stale. Refresh the line, or havequest checkflag the drift.quest hookSessionStart context is 8,890 characters, 89% of Claude Code's 10,000-character hook cap.quest skill runprints 27,210 characters, 91% of the roughly 30,000-character inline Bash limit. Past either limit, Claude gets a file path and a 2,000-character preview instead of the text./tmp/agent-1000didn't exist. Agents then moved TMPDIR into.tmp/, which broke Chromium intest:media("socket path too long") in 5 sessions.$XDG_RUNTIME_DIRworked.Validation
quest check, fallow, TypeScript, Biome, and the API and app tests (79) pass locally on it; the media browser tests are left to CI. TheAGENTS.mdsizes in the m2 baseline are unchanged.quest gate just checkpasses on the merged head: quest check, fallow, TypeScript, Biome, and the API (45), app (74), and media (4) tests.bun run --cwd app test src/room/metadata.test.tsruns that file alone.claude -p, Haiku) in this worktree loaded the rootAGENTS.mdas Project instructions andapp/AGENTS.mdas PostToolUse context after readingapp/src/api.ts(previous head). On this head, the same session runs only the two user-level SessionStart hooks; the repository hook and its exit 127 are gone.quest initwith the current quest recreates neither.claude/settings.jsonnor the hook.Models
Size: XL
Implementer: Claude Code, claude-opus-5-5, xhigh
Implementer: Claude Code, claude-opus-5-5, high effort (iterate, S)
Implementer: Claude Code, claude-opus-5-5, medium effort (iterate, XS)
(Written by Claude Opus 5.5 with high)
Review
Rewritten by
quest reviewafter each round.Head: 2c994c9
Base: origin/main at 212ddf5
Risk: medium,
it adds to plans under quest/, which agents start without a person reading themClassified: medium by default
Risk file: none
Reviewer: Codex, gpt-6.2-sol, xhigh effort
Session:
01a21a80-5452-7f72-8d7f-67c4fa32ab1e, round 1Score: 10/10,
Repository consumers follow the updated contracts, and Bun unit-test discovery keeps the browser suite separate.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none