docs(agents): one compact guide for Claude, Codex and Cursor - #72
Open
scott-lowe-vapi wants to merge 1 commit into
Open
scott-lowe-vapi wants to merge 1 commit into
scott-lowe-vapi wants to merge 1 commit into
Conversation
This was referenced Oct 3, 2026
AGENTS.md was 55 KB. Codex reads it only up to project_doc_max_bytes (32 KiB by default), so it silently lost everything after the tools section. It also taught agents things that break: UUIDs in assistant_ids, scenario judges and credentialId (they only work in one org and break promotion), a deprecated endCallFunctionEnabled, a cleanup command that is refused without --confirm, and that every command is interactive. - AGENTS.md is rewritten as an 19 KB core: which repository you're in (template vs customer deployment, so the changelog rule reaches every agent), safety rules (ask before changing a live org or deleting, never handle keys, reference by name, the PATCH-replaces-nested-objects rule that only Claude saw before, .ts executes, don't bypass safety checks), setup without a terminal, the change loop, a corrected quick reference and reference table, naming and renames, simulations and PR checks, promotion, learnings routing, and engine conventions. - Reference material moves to docs/guides/: resource-reference.md (every setting, with the UUID and deprecation fixes), writing-prompts.md, sync internals into how-it-works.md, test-call output into commands.md. - CLAUDE.md imports AGENTS.md instead of copying it; the Cursor changelog rule folds into AGENTS.md; the learnings rule matches the two indexes. - tests/agent-docs.test.ts keeps AGENTS.md under 30 KB, CLAUDE.md importing it, every learnings file routed, and no UUIDs in agent-facing examples. - Found while checking: npm run cleanup doesn't read .vapi-ignore, so a destructive cleanup deletes resources a team excluded. Documented in AGENTS.md and the workflows guide; logged as improvements.md #36. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 3, 2026
Contributor
Author
scott-lowe-vapi
force-pushed
the
docs/agent-instructions
branch
from
October 3, 2026 07:08
5ac8b9c to
d58a518
Compare
scott-lowe-vapi
marked this pull request as ready for review
October 3, 2026 07:09
This was referenced Oct 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Value
V.A.L.U.E. tier: small — the agent instructions for Claude Code, Codex and Cursor, plus a test. No engine change. Not micro: more than 200 lines.
AGENTS.mdwas 55 KB, and Codex readsAGENTS.mdonly up toproject_doc_max_bytes(32 KiB by default). Everything after line 460 was silently dropped: structured-output, squad and simulation formats, reference rules, commands, naming and renames.assistant_ids, scenario judges andcredentialId(they only work in one org, and break promotion);endCallFunctionEnabled;cleanup --forcecommand that is refused without--confirm;modelPATCH once wiped live system prompts.AGENTS.mdis rewritten as a 19 KB core:.tsfiles execute code;Reference material moves to
docs/guides/:resource-reference.md: every setting, with the UUID and deprecation fixes;writing-prompts.md;how-it-works.md;commands.md.push --strictis documented, and "run a plain pull first in an existing repo" is now in bothAGENTS.mdand the workflows guide.CLAUDE.mdis now@AGENTS.mdplus one paragraph, instead of a hand-copied 19-row routing list.Cursor: the changelog rule folds into
AGENTS.md, and the learnings rule matches the two indexes and asks for no customer or person names.New
tests/agent-docs.test.tschecks that:AGENTS.mdstays under 30 KB;CLAUDE.mdimports it;docs/learnings/file is routed from both indexes;The README and
CONTRIBUTING.mdlink the new guides and describe the single-file setup.Evidence of value
AGENTS.mdsizecredentialIdplaceholder telling agents to use a UUIDassistant_idsand credential names;endCallFunctionEnabledis marked deprecated in the API types;--confirm;<slug>-<uuid8>, and push never renames;--strictrefuses to push on validation errors.AGENTS.mdandCLAUDE.md; each one is restated in the new core or moved into a guide. Two facts that had been dropped were restored (--strict, and seeding baselines with a first pull).npm testpasses, 500 tests (4 new), and every link across 47 markdown files resolves.Found while checking (not changed here):
npm run cleanupdoesn't read.vapi-ignore, and deletes every platform resource missing from the state file. Ignored resources are never in state, so a destructive cleanup deletes exactly the resources a team excluded. This PR documents the hazard (AGENTS.md, workflows guide) and logs it asimprovements.md#36. The engine fix is a separate change.Testing plan
tests/agent-docs.test.ts(4 tests), the existing suite, and the link checker.@AGENTS.mdimport (a documented Claude Code feature, not run here).Stacked on #71.
🤖 Generated with Claude Code