r/ClaudeAI • • 2d ago

Built with Claude Claude Code and Federal Programs

I'm the Chief of Staff at the Georgia Department of Human Services. We're the agency responsible for the administration of many social benefit programs in Georgia such as Child Protective Services, Child Support, SNAP/TANF/Medicaid, Adult Protective Services, and more. We distribute billions in federal aid every year. We have many complex IT systems that help us administer these programs. They are generally not great.

Typically in the US, social programs are federally funded and regulated, but state administered. The federal government sets general guidelines on what you can and cannot do in the course of program administration, but beyond that states are free to run the programs in the way that works best for them. This strategy works when it comes to program policy choices given jurisdiction diversity, but falls apart when it comes to IT investments. The federal government repeatedly pays for systems that do basically the same thing for each program jurisdiction. Texas and Georgia both need to administer SNAP in accordance with federal rules, and yet they and the federal government individually purchase a new system every decade or so, and then individually maintain it until its time to repeat the process. There is no technical reason why this is the case. It mostly comes down to States incorrectly attributing long-term system expenses to initial capital requirements. States want the cheapest thing possible, so big vendors dust off the 30 year old java monolith that hasn't been refactored since 2003 and basically give it away. The State then pays through the nose for maintenance and operations because of tech debt. Rinse and repeat forever, nationally.

Earlier this year, I decided to try my hand at building a system (well, two systems, one for child welfare and one for benefit eligibility) that would ameliorate this problem in a few ways:

  1. AGPL Licensed - vendors cannot take the state-funded code and make it proprietary.
  2. Generic design that separates core service logic from policy elections that jurisdictions may have. By doing this, jurisdictions that adopt the same core framework can share its maintenance costs. Instead of a state paying 50% state funds/50% federal funds to operate a system, it will only pay a portion of the 50%, depending on how many other states adopt it. This isn't SaaS - every state will needs it own M&O contract to operate their own deployment, but their changes are going to be minimal. Updating the core system to reflect changes in federal law will be a shared burden.
  3. Written in rust (cue the rewrite in rust memes). Beyond the performance/safety reasons, I chose rust specifically because its hard(er) to write bad rust and the power of clippy. It costs more tokens/iterations to get something that works, but the product on the whole will be better than something else written in another language all other things equal.

Without further ado, here they are:

https://gitlab.com/gadhs/application/eligibility/canopy (Federal Benefit Eligibility)

https://gitlab.com/gadhs/application/ccwis/craig (Child Welfare)

These are obviously not ready for production and are mostly just an experiment/prototype. A very tiny and specific part of the CRAIG system is going to go into production early next year (a new mandated reporting portal). Real developers/my IT department is handling this.

Things that I know that are wrong:

  1. I still use malloc+musl
  2. The dev machinery is extremely heavy and there is a lot of over-engineering all over the place.
  3. There are a few god files and several missed opportunities for code sharing.
  4. Much more

Anyway, the point of this post is just to show how I think claude code (and all the other frontier models) *can* actually be used to help regular people live better lives, it just takes a little experimentation and risk-taking on the part of the Government.

13 Upvotes

11 comments sorted by

1

u/Routine-Apple-3931 2d ago

This is impressive!

I would love to know your process, how you started, how you decided on Rust and at what point in the build, how you got Claude to access the current systems without push back (.gov or .state and sensitive date can trip my Claude up sometimes even when I'm trying to access tax forms or publications that are publicly availble)

The reason I ask is I am and have done the exact same thing but in private industry and the non-profit accounting sector. Two areas I know intimately and inside and out. It's what made creating the programs easier, is I have programs that I like some of what they do and then have strong opinions around what they do poorly or miss.

I have found if you can start with Grounded Truths it can follow, a good planning and scoping session that I compact at the end and use as a Code prompt and then rapid prototype out a proof of concept, rinse and repeat until it's what you want or you convert to a better code that will better do what you have as scaffolding. For security I use other models to launch adversarial attacks at my code once I have a working copy that is at the point I want to put it into a beta deployment testing phase with other users as a final test before I set my kid free to play with others.

I'm no programmer or computer scientist, I am a failed electrical engineering student that became an accountant and operations manager, so my approach could be completely off base here.

3

u/bitskrieg 2d ago

Most government data is mirrored somewhere even if the originating sites have anti-bot rules. Rarely do I find data that I can't pull automatically, but if I do there is typically some API/process/whatever that you can sign up for that will let you pull it on a periodic basis. Another key thing (particularly for our state regulations) is that I had my agency re-write all of its policies in asciidoc. PDFs and a public web portal are generated for humans to use, but my LLMs can ingest the hundreds of thousands of lines of asciidoc very easily.

As far as security goes, the single most effective technique I've found is developing in the open and requiring the models to abide by Kerkchoff's principle. Everything we build should be secure if everything is know about it except the 'key' (password, api token, whatever). I think this has a sort of reverse Peltzman Effect - I am removing safety guardrails (closed source code) and forcing it to compensate accordingly. It has seemed to work well.

1

u/Crayola_God 2d ago

This is great! But isn't the Government already experimenting and risk-taking with AI? I know many contracts using AI vendors.

Also, you mentioned a desire to circumvent the vendors entirely, to avoid maintenance and tech debt. Do you see the AGPL license as a way to solve this?

(I think any contractor would avoid AGPL like the plague)

very curious about your vision!!

3

u/bitskrieg 2d ago edited 2d ago

Funnily enough I've actually banned the use of GenAI across my agency except for a few very specific use cases (such as writing code for greenfield, open-source projects). The reasons fall into one of two categories:

  1. I have an enormous amount of federal regulators across myriad programs who all have different data security requirements. Trying to reconcile that with all the LLM vendors out there (sometimes ZDR isn't even enough) is a nightmare. Rather than spending the cycles to work out what's technically legal/not, particular since this space is changing so rapidly, I just elected to bar its use for anything that touches non-public data. AI-generated deterministic code that handles sensitive data is fine; putting it into context in some far off data center is not.
  2. My child protective services caseworkers write notes in our child welfare system as they work cases. Imagine a scenario where a worker pastes their notes (maybe they're handwritten during a home visit and they paste a camera photo) into an LLM and say "hey clean these up and put them into the case notes". The LLM happily complies. A year later, our caseworker is called to testify in a hearing about removing a child from the home, or even a criminal trial regarding child abuse. Counsel or the judge asks them what they meant in the case notes, and they get shown the LLM-edited note. Maybe the LLM uses words that they don't know, or misrepresented what happened, or misunderstood shorthand. Many possible outcomes, none of them good. The risk isn't worth the reward; it's not even close right now.

I think that (most) governments that ARE experimenting with AI are doing it the wrong way - they inject non-deterministic functions into critical workflows and have LLMs do things that are normally done by humans and require judgment. I think this will backfire for both operational and cost reasons over time. LLMs are strongest right now (in my opinion) when they're use to make deterministic programs that don't require tokens to operate.

As far as your AGPL comment, they would avoid it if they were going to be making money on the IP - they won't. They'll make their money on operating the systems like they do today. The license doesn't affect their ability to do that one way or the other. The cost of software is going to zero; I just want to expedite that process for government software.

1

u/-rhokstar- 2d ago

Thanks for sharing! I've seen EU countries shifting in this direction as well although they want more control and ownership away from big tech companies (US especially).

It mostly comes down to States incorrectly attributing long-term system expenses to initial capital requirements. States want the cheapest thing possible, so big vendors dust off the 30 year old java monolith that hasn't been refactored since 2003 and basically give it away. The State then pays through the nose for maintenance and operations because of tech debt. Rinse and repeat forever, nationally.

So its the cheapest available CAPEX but terrible OPEX with unpredictable consequences? It seems States are foregoing solving the root of the problem(s). Now that AI agents (like Claude, OpenAI) are capable of finding and chaining exploits that have been dormant for decades are now being discovered which can put States' software at extreme risk.

Keep experimenting and advocating! Its people like you that bring awareness on important issues and opportunities to advance modern quality services to the people.

1

u/bitskrieg 2d ago

Tale as old as time. Recurring OPEX is a tiny number. One time CAPEX is a big number. Budget likes tiny numbers.

1

u/Cliz_FR 2d ago

I'd keep real case files out of the coding assistant while you're testing this. We build an assistant for confidential professional documents and strip identifying details on the user's device before sending text to a model. That still doesn't mean the remaining text is safe for your use case. Use synthetic records to test the shared rules without exposing families' files or claiming you've solved confidentiality.

1

u/bitskrieg 2d ago

100%. All the test data is generated using https://docs.rs/fake/latest/fake/

1

u/ring_the_sysop 1d ago

You did this using Claude for Government...right?

1

u/bitskrieg 1d ago

No, google vertex. All the test data is fake. The models aren't part of the actual operation of the application and they never see non-public information.