AgentRecipes
Recipes › Engineering & security

How to adapt your software to each new state's or region's rules with Claude Code: give it the whole codebase plus the regulations, get a tested change, and have program experts sign off before it ships

Engineering & securityClaude Code✓ Confirmed by source

Confirmed by source: Production use documented in Anthropic's official customer story with Mid-Ohio Food Collective's Chief Innovation Officer and Director of Software Engineering quoted; the state-rules implementation with Claude Code, the human review and sign-off rules and the onboarding results are described. Page checked live (HTTP 200) on 2026-11-21; no publication date shown. Not run by BranoLabs (needs the FreshTrak codebase and state rules). (checked 2026-11-21)

The problem

Software that serves regulated programs has to be adapted for every new state or region: each brings its own eligibility rules, reporting formats and consent language. Doing that by hand took a food bank's small engineering team months per deployment, which limited how fast partner organizations could be onboarded.

Tools needed

Step-by-step recipe

  1. Collect the new jurisdiction's requirements as source documents and have the program staff who know them mark what is mandatory, what differs from existing states and who at the agency to ask about unclear points.
  2. Give Claude Code the full codebase and the documents, and ask it to implement the rules the way existing states are already built (same config patterns, same tests), not as one-off code.
  3. Require tests for every rule: eligibility edge cases, report outputs in the agency's format and the exact consent wording.
  4. Open a pull request; nothing merges without passing automated tests, a human engineer's approval and an AI-assisted review round on the diff.
  5. Have program staff check each implemented rule against the jurisdiction's guidance and sign off before deployment; send unclear points back to the agency, not to the model.
  6. Reuse the same brief for the next jurisdiction and keep a list of differences that came up, so each new rollout starts from the last one.

Copyable prompt

Prompt template
We are adding support for [JURISDICTION] to [SYSTEM_NAME].
Requirements are in [DOCS_PATH] (eligibility rules, reporting formats, consent text). Existing jurisdictions are implemented in [EXISTING_PATHS].
1. Read how existing jurisdictions are implemented and follow the same structure; do not add special cases outside that pattern unless you explain why.
2. Before coding, list every requirement you found, where it maps in the code, and anything ambiguous. Stop and ask about ambiguities instead of guessing.
3. Implement the rules, report formats and consent text exactly as written in the documents.
4. Add tests for each requirement, including edge cases, and run the full test suite.
5. Open a pull request with a table: requirement, source document and section, file changed, test name, so [PROGRAM_OWNER] can verify each line.

Original template written by our AI agent for AgentRecipes, not copied from the source. Replace the [BRACKETS] and {{variables}} with your own values and test before relying on it.

What the builder reported

Mid-Ohio Food Collective, whose FreshTrak platform runs at about 2,500 pantries and other sites, says that given the full codebase and a new state's regulations, Claude Code produced a working, tested implementation that fit the existing platform, while its engineers and program staff reviewed and signed off on every rule. It reports that state-specific adaptation that once took months now takes days and that onboarding and training time for partner food banks has fallen by half. Across its Claude use, new features go from idea to production in 24 to 36 hours instead of two to three months. Source: Anthropic's Claude customer story.

These are the source author's own claims. AgentRecipes has not run this recipe itself.

Watch out for

Source

Original write-up: Claude customer stories (Anthropic) ↗

Found via Claude customer stories (Anthropic): “Mid-Ohio Food Collective rebuilds the software behind 2,500 food pantries with Claude”. This recipe summarises the source in words written by our AI agent; read the original for the full details. Link last checked 2026-11-21.

More engineering & security recipes

Review agent-written pull requests with layered AI review and risk-based human approvalOnce coding agents open pull requests, there are far more changes than people can read line by line, but skipping review lets bugs and…Claude Code✓ Confirmed by sourceRewrite a critical production service with Claude Code behind a black-box test harnessA high-throughput background service is becoming a bottleneck and paging on-call, but rewriting it by hand is slow and risky, and…Claude Code✓ Confirmed by sourceShip vendor recipe prompts so coding agents integrate your API the way you wouldDevelopers ask coding agents to add a vendor feature from public docs alone; the agent often picks the wrong product surface, burns…Claude Code✓ Confirmed by source

New agent recipes in your inbox

A short email with the newest automation recipes, each linked to its real-world source. No spam. Every email has a one-click unsubscribe link.