The problem
A business or nonprofit that takes its software to a new state, province or country meets a new rulebook: who qualifies, what must be reported in which format, what the consent text must say. Each rollout used to mean weeks of reading guidance and hand adapting the code, so expansion waited on the one developer who understood both.
Architecture
- Channel
- Rule sheet from the guidance
- Agent
- Claude Code implements each rule
- Tests for accept and refuse
- Tools
- Codebase and test suite
- Pull request with a rules table
- CI/CD pipeline
- Human
- Engineer reviews the code
- Program staff sign off per rule
Where the data stays: The agent works in the repository with synthetic test cases; no client records are involved, and nothing reaches the release pipeline until the engineer and the program staff have signed off.
Design flow
- Staff and engineer write the rule sheet from the guidance
- Claude Code implements each rule with tests
- Engineer review, tests, Claude assisted review
- Rule not traceable to guidance? Back to the agentOnly sometimes
- Program staff sign off each ruleHuman checkpoint
- Release through the pipeline
Setup
Total time: 9 h our estimate
- 2 h
Done when: A document lists every rule for the new region in plain language with the paragraph of official guidance it comes from, agreed by program staff and the engineer.
- 30 min
Done when: The repository's CLAUDE.md tells Claude Code where the rule sheet lives, that every rule needs tests for accepted and refused cases, and that it opens pull requests and never merges.
- 1 h 30 min
Done when: Claude Code has opened a pull request for two rules with passing tests and a table that maps each test to its line of guidance, and the engineer has read the diff.
- 1 h
Done when: Program staff have compared each implemented rule with the guidance, every rule has a named sign off or a note of what to change, and nothing merged before that.
- 4 h
Done when: Every rule on the sheet is implemented, tested, reviewed by the engineer and a Claude assisted review, signed off by staff, and released through the pipeline; the sheet is kept for the next region.
Ticks are saved on this browser.
Starter prompt
Written from how the use case works and its sources. Replace the parts in square brackets.
We are extending [our software] to [new region]. Attached is the rule sheet the program staff and I wrote from the official guidance: eligibility conditions, required report formats and the consent wording. For each rule, implement it in this codebase as configuration or code, add tests that show it accepting and refusing the right cases, and list the exact line of guidance each test traces to. Where the guidance is ambiguous, stop and ask rather than choosing. Open a pull request with a table of rules, tests and guidance references so the program staff can check each one before release; do not merge anything.
Risks and data
Data
The agent needs the repository, not production data; eligibility and consent rules touch the personal data of the people served, so tests use synthetic cases and the consent text is checked by whoever owns data protection in that region before release.
How it goes wrong
A rule can be implemented exactly as the sheet says and still be wrong because the sheet misread the guidance, or the tests can pass on the cases the agent chose while the hard case was never written. Program staff notice it in the sign off when a scenario they know from practice behaves wrongly, so the sign off is per rule and against the guidance itself, and the agent is told to stop and ask where the guidance is ambiguous.
How the agent works
It starts
Program staff and engineers read the new region's guidance together and write down the rules in plain language: eligibility conditions, the reporting formats the funder requires and the consent wording.
The agent works
An engineer gives Claude Code that rule sheet with the codebase and asks for an implementation of each rule with tests that show the rule in action, including the cases that must be refused. Claude Code works through the code, writes the logic, the report templates and the consent text as configuration, and adds the tests. The code is then checked three ways: a human engineer reads it, the automated tests run, and at least one round of Claude assisted review looks for what the engineer missed.
The result
For every rule, local program staff and the engineer compare the implemented behaviour with the state guidance and sign off before it reaches the release pipeline; a rule they cannot trace to the guidance goes back.
Worked example
Mid-Ohio Food Collective, Ohio's largest food bank, serves a 20 county region through more than 500 partner agencies and builds FreshTrak, software used at about 2,500 pantries, soup kitchens, shelters and food banks nationwide (Anthropic customer story, undated, 2026). Scaling FreshTrak to other food banks was hard because each one, and each state's rules for federal programs such as TEFAP and CSFP, needed hand adaptation. Nick Davis, Chief Innovation Officer: 'Until AI, that made it extremely difficult to scale to the next state or the next location.' With Claude Code the team produced tested implementations of new state rules, such as eligibility logic, reporting formats and consent language; local program staff and engineers interpret the requirements, review each Claude implemented rule against state guidance and sign off before release. No change ships without a human engineer's check, passing automated tests and at least one round of Claude assisted code review before the CI/CD pipeline. The story reports idea to production for new features in 24 to 36 hours instead of two to three months, onboarding and training time for partner food banks cut by 50%, 22 food banks served and five more of the country's largest being onboarded; the figures are the customer's as reported by Anthropic.
Mid-Ohio Food Collective used Claude Code for the state rule implementations and Claude Tag in Slack for pull requests briefed from Slack (Claude Code for deeper work such as large refactors and migrations); Anthropic's docs describe Claude Code as reading your codebase, editing files, running commands and opening pull requests from the terminal, IDE, desktop app or browser, most surfaces with a Claude subscription or Console account. The steps are tool agnostic for a coding agent that can run your tests, so OpenAI Codex is listed: a Codex cloud task runs in its own workspace and you inspect the changed files and results before committing or opening a pull request. The sign off against the guidance is people's work in both.
Join the Agent OS Club
Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.
Founding offer, ends 31 December 2026 or at member 100
Join the Agent OS ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
- https://claude.com/customers/mid-ohio-food-collective
- https://code.claude.com/docs/en/overview
- https://learn.chatgpt.com/docs/cloud
Published: 2026-11-24