How do you give an AI agent your project's conventions?
37 posts
Playbook
Practitioners manage AI agent conventions by integrating structured files, domain glossaries, and specialized sub-agents into the development workflow.
- Use structured product-building files
Establish a workflow using eight core files such as CLAUDE.md, PRODUCT.md, and CONTRACT.md to define roles like PLANNER, BUILDER, and EVALUATOR . 1
- Create and version-control a domain glossary
Use an LLM to extract vocabulary from documents and chat logs to draft a glossary, which human experts then review and version-control by bounded context . 9
- Implement a Therapist sub-agent for rules
Use a dedicated sub-agent with sole write access to the file containing behavior rules to prevent the main agent from editing its own instructions . 10
- Refine skills from chat history
Review chat history with coding agents to turn repeated corrections into single-purpose skills that include a trigger scenario and request wording . 5
- Automate feedback into codebase lessons
Employ a review agent to check changes against past decisions and rollback records, using daily automation to convert feedback into lessons stored in the codebase . 7
- Validate rules via ablation testing
Perform ablation tests on real codebases to determine if specific configuration rules, like those in CLAUDE.md, are still effective or should be deleted . 6
Choosing between approaches
While specifying many rules ensures coding conventions are followed, excessive rules can lead to increased costs 6.
Not covered yet
The material does not specify how to handle conflicts when different agents use different glossary versions or rule sets.
Posts
- Run a product build with eight files and three roles: planner, builder and evaluatorbeamnxw gave Opus 5.5 a product-building workflow made of 8 core files: CLAUDE.md, PRODUCT.md, CONTRACT.md, FEATURES.json and HANDOFF.md, plus three roles named PLANNER, BUILDER and EVALUATOR.

- Record the iOS screen while narrating the features you use, then hand the video to an agentThorsten Ball wants to build himself a workout app: he has used KeyLifts for years (888 workouts logged) and needs only about 20% of it.

- Improve agent-facing docs in a loop: evaluate, analyze, fix and retest in a Docker sandboxThe author released Gauge, an open-source CLI for improving docs, skills and CLI experience aimed at AI coding agents.
- Tell agents to back every conclusion with data from probing, files or toolsThe author sent agents a system prompt requiring every conclusion to be backed by data obtained through probing, reading files or using tools, proving the facts before concluding.
- Mine your chat history for skills, keep one job per skill, and add a verification skillIn lecture 5 of his Stanford course, Mihail Eric sums up three practices for agent skills.

- Run an ablation test on a real codebase to decide which Claude Code rules to deleteResponding to the Claude Code creator's advice to prune files like CLAUDE.md regularly, the author ran ablation tests on a real codebase, Archon.

- Carry context through to merge with a triage agent and a review agentLinear engineer Tom Moor says that once agents produce lots of code, keeping the product coherent is harder than writing it.

- Generate a domain glossary with an LLM, then have experts review itMartin Fowler describes using an LLM to extract specialized vocabulary from internal documents and chat logs to create a glossary.

- Trace the code path and write characterization tests before the agent changes anythingBurhan Khalid from Amazon Kiro describes a workflow for navigating unfamiliar repositories.

- Give a Therapist sub-agent sole write access to the file holding an agent's behavior rulesWhile building the agent system Sen, Prime Radiant found that its main agent Ada opened a pull request without reading the contribution guide and leaked internal terms.
- Feed recorded team conversations to the agent and map a design space before planning
- Drop custom agent skills when new models handle the task better
- Prompt Claude like a coworker: state the goal, how much effort, and how it should verify
27 more posts to see