WhoBuilt

Agents in Production: How OpenGov Built and Scaled OG Assist

Jun 26, 2026· 18 min· 2.6K views·Watch on YouTube

Speaker

Gabe De Mesa, an engineer on the AI agents team at OpenGov, explains how the company built and scaled OG Assist for its government software products at AI Engineer.

OG Assist and its origins

OpenGov makes ERP software for government, including budgeting, procurement, asset management, and permitting. OG Assist is available across its products and uses product-specific tools to answer questions about data. It can also interpret what is on a user’s screen and highlight possible next steps.

Building the agent loop with Effect

The team moved from LangGraph to an agent loop built with Effect, a TypeScript library, as its use cases and team grew. De Mesa says this gave them more control and made tracing, logging, and structured concurrency available throughout the loop. The team also uses the Agent2Agent protocol as a shared contract for its front end, back end, models, and schemas.

Feedback, approvals, and sandboxing

The team combines user feedback, including thumbs-up and thumbs-down signals, with automated evaluations in CI that check real completions and tool use. For actions requiring approval, the agent loop pauses until a person accepts or rejects the tool call. Code execution and file creation happen in ephemeral sandboxes that are removed afterward.

Managing context and observing the system

To handle long conversations and model token limits, OG Assist creates rolling summaries and keeps only the most recent messages alongside them. This lets the agent refer back to earlier topics. De Mesa also describes Effect tracing, which helps the team inspect function calls, find bottlenecks, and investigate failures across services.

Tools, skills, and developer workflows

OpenGov builds tools and groups them into toolkits that can be registered with a language model, then uses them as building blocks for skills. The company also uses Claude and Cursor internally to help read, write, and review code and speed up development.

Takeaways

  • Treat the agent loop as a core system: owning it can give a team more control as use cases grow.
  • Use a shared protocol as a contract between front-end and back-end teams.
  • Combine automated evaluations with user feedback to guide iteration on tools, skills, and prompts.
  • Require human approval for mutating actions and isolate code execution in temporary sandboxes.
  • Use rolling summaries to preserve useful conversation history within token limits.

Mentioned in this talk

Search inside this talk

What was claimed 10

Show all 10 facts

Related talks