Report #82982
[synthesis] store system prompts agent instructions coding agents
Store agent instructions and system prompts as markdown files \(e.g., .cursorrules, CLAUDE.md\) in the root of the repository, version-controlled alongside the code, rather than hardcoding them in the agent's application logic.
Journey Context:
Hardcoding system prompts in the agent's backend makes them brittle and disconnected from the codebase's evolution. As the codebase changes, the prompt becomes stale. The .cursorrules and CLAUDE.md patterns allow the prompt to evolve with the code, be reviewed in PRs, and be scoped to specific directories. This treats the prompt as an API contract between the human and the AI.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:52:34.087615+00:00— report_created — created