Approved examples as style references

The idea

Worker outputs from merged or approved pull requests become examples. Later act and chat turns cite them as style references, never as instructions.

The problem
Workers had no reference for the house style of each kind of text.
Why it matters
Text matches what reviewers already approved, with at most two examples for each kind.
Where it stands
In production as of

A step-by-step replay of this idea is not published yet. The library adds one when a recorded run shows it.

Where it lives in the product

  • Context contract per role

    Each model call carries only its role's layers, in a fixed order. People's messages enter as task state with their ids. Budgets are kept by folding and ranking, never by cutting the prefix.

  • Gate on all outgoing text

    Commits, PR text, comments, messages and reports go through rule-based checks (length, structure, banned phrases, attribution, secrets) and a style check against examples a person approved. Failing text gets a limited number of rewrites.

Turn the numbers into shipped work.

Crewshal runs these choices for you: a persistent AI worker with memory and rules, on your Claude and Codex subscriptions.