DigestOps

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.

  1. 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

  2. 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

  3. 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

  4. 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

  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

  6. 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.

Drawn from the top 10 posts for this question; the numbers match the list below · updated 2026-11-27
Type

Posts

27 more posts to see