The AgentivUse cases

IT · About a week

Local rules become tested code, staff sign off

When the software must follow a new region's rules, Claude Code writes the eligibility logic, reporting formats and consent language as tested code, and the people who run the program check every rule against the official guidance before release

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

  1. Channel
    • Rule sheet from the guidance
  2. Agent
    • Claude Code implements each rule
    • Tests for accept and refuse
  3. Tools
    • Codebase and test suite
    • Pull request with a rules table
    • CI/CD pipeline
  4. 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

  1. Staff and engineer write the rule sheet from the guidance
  2. Claude Code implements each rule with tests
  3. Engineer review, tests, Claude assisted review
  4. Rule not traceable to guidance? Back to the agentOnly sometimes
  5. Program staff sign off each ruleHuman checkpoint
  6. Release through the pipeline

Setup

Total time: 9 h our estimate

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

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

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

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

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

Download the kit (zip)

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.

Data protection. This use case touches personal data, so check the rules where you operate (for example GDPR, PDPA). Eligibility and consent rules usually concern personal data of the people the program serves, and the test data must not be real client records. Use synthetic cases, keep the agent's access to the repository and not to production data, and have the consent wording checked by whoever is responsible for data protection where the program runs.

How the agent works

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

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

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

Building this for an organization? Learn more at theagentiv.com

Sources

Published: 2026-11-24

Related use cases

Your product finds its own next fix

An agent that reads your product analytics, session replays, customer feedback and code, proposes the fix with a mockup, a technical plan and acceptance criteria, and hands it to a coding agent after the team's review, with an A/B test deciding

ITEffort: About a week
OpenAIOpenAI CodexAmplitude

A small software team has the data that shows where users drop off, the session replays that show why, and a backlog it never gets to. Nobody has a day to watch 100 replays, write the ticket, draw the mockup and argue the priority, so the small friction that costs sign ups stays in the product for a quarter.

From a one star review to a shipped fix

A Codex agent that turns a customer's complaint about the app into a prepared fix, which the product lead approves before it is submitted, on foundations the engineers set: small documented packages, the APIs, security and the development workflow

ITEffort: About a week
ChatGPTAlso works with:Claude Code

A small app team hears about a missing feature in a store review and it goes on a backlog, because every engineer is busy with the roadmap and a release happens a few times a year. The customer who complained never hears back, and the review stays at one star for everyone else to read.

Portals with no API, worked by an agent

An agent that signs in to legacy vendor portals that have no API and completes support tasks by clicking through them, within actions the technician approved in advance

ITEffort: A project
OpenAIAlso works with:Claude

Every IT provider for small businesses lives in vendor portals that were never built to be automated: a licensing console here, a firewall admin page there, a backup dashboard with no API. A technician who could be solving a real problem spends the afternoon logging in, clicking through the same screens and copying the same values.