docs(agent-setup): keep one canonical agent rule
Merged
TH
1mo ago+67+67+01234567890123456789-42-42-01234567890123456789
Summary
agent-setup.md had the same agent rule in three places: the recommended rule, the Cursor .mdc file, and CLAUDE.md. The client-specific copies were shorter versions that had already drifted. This PR keeps one copyable rule under #recommended-agent-rule and adds a table showing where it goes in each client.
- Cursor: the command writes only the required
.mdcfrontmatter; you paste the rule below it. - Claude Code: add an
# agent-deviceheading toCLAUDE.mdand paste the rule under it. The oldcat > CLAUDE.mdcommand overwrote any existing file. - MCP setup and the
#mcp-serverand#fix-a-missing-agent-device-commandanchors are unchanged. agent-setup-startup-contract.test.tsnow requires one canonical rule block that starts work immediately, and the startup sentence must appear exactly once on the page. The checks against mandatory startup probes are unchanged.
Follow-up to #3295. 2 files.
Validation
pnpm check:affected --runpassed on d59d7c9dc.- The contract test and the simulator-skills contract test pass (20/20).
- The website builds.
- Docs and test only, so no device runs.
🤖 Generated with Claude Code