docs(agent-setup): keep one canonical agent rule

Merged
TH
1mo ago
+67-42

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 .mdc frontmatter; you paste the rule below it.
  • Claude Code: add an # agent-device heading to CLAUDE.md and paste the rule under it. The old cat > CLAUDE.md command overwrote any existing file.
  • MCP setup and the #mcp-server and #fix-a-missing-agent-device-command anchors are unchanged.
  • agent-setup-startup-contract.test.ts now 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 --run passed 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