docs(agents): rewrite the agent guide with product goals and hard-won invariants#4
Merged
Conversation
… invariants Adds the why (the feedback loop is the product, the three integration tiers, the never-lose-feedback rule), the feedback-cursor and SqlStore migration invariants from the 0.2.x work, and testing notes that cost real time to learn (node:sqlite shim + ambient types, JsonFileStore live objects, session-thread e2e selector scoping). CLAUDE.md already symlinks here. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…dments Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Rewrites AGENTS.md (CLAUDE.md already symlinks to it) while the context from the 0.2.x work is fresh. Goals: token-efficient, explains why the project is shaped the way it is, and front-loads the things that actually cost time to learn.
New compared to the old guide:
agentSeqsemantics: what advances it (piggyback,author=userwaits), what must never touch it (viewer reads), delivered-once by design.pragma_table_infoprobe pattern..card(scope e2e selectors), the node:sqlite shim + ambient-types arrangement and why it exists.Net: 712 words. Everything kept from the old guide survives (entry-point map, runtime-agnostic rule, erasable-TS constraint, sandbox/WebKit warning, validation gate, commit/changelog conventions) — reorganized and tightened.
🤖 Generated with Claude Code