Meet Gia, GoGuardian’s internal agentic system

An engineering case study

Messengers carrying scrolls and lanterns walk through a vermilion torii gate toward a lantern-lit town

Most business operations follow a familiar loop. People gather information from many systems, interpret it, decide what needs attention, and act on it.

Over the last six months, we’ve built Gia, GoGuardian’s internal agentic system, and rebuilt much of how the company operates around it. Gia is not a single agent. It is the platform our agents work through, made up of a cloud agent runtime, a CLI, an integration gateway, primitives for running loops, and KIT, a continuously updated model of the business.

Agents are the actors in Gia, and they come in two kinds. Local agents, such as Claude Code and Codex, run on our own machines and reach Gia through its CLI, an interface built for agents rather than people. Cloud agents run inside Gia itself, on demand or on a schedule. Every request either kind makes to the rest of the system goes through Gia’s integration gateway.

Behind the gateway sit three things:

  • Business systems, our systems of record: CRM, customer support, product telemetry, communications, and documents.
  • Skills, schedules, and pages, the primitives from which we build loops, meaning agent work that runs again and again without anyone asking.
  • KIT, an incremental computation graph that continuously compiles business data into a structured model of the business and turns that model into prioritized tasks for our teams.

Human feedback on those tasks drives systematic improvements to the computations underneath.

Section 1 · Integration gateway

One governed path to business systems

How do agents safely access business systems?

Agents are only as useful as the systems they can reach. For us, that means our CRM, customer support platform, product telemetry, communications, and documents, along with our own platform services and KIT.

Most agent deployments today are decentralized. Each agent or application holds its own credentials, and access policy lives in application code, if it exists at all. Every new agent adds another place where a secret can leak and another policy to keep correct, and there is no single place to see what agents did or to change what they are allowed to do. As the number of agents grows, that decentralization becomes a fatal flaw.

We took the opposite approach. Every request an agent makes to the rest of the system passes through one gateway, wherever the agent runs:

  • Gia cloud agents, from inside their sandboxes.
  • Local agents such as Claude Code and Codex, through the Gia CLI.
  • Service accounts that run fixed jobs, such as acquiring KIT’s source data.

For each request, the gateway:

  1. identifies the caller and the person or job it acts for,
  2. authorizes the specific operation against that identity’s permissions,
  3. attaches the underlying credential, which callers never hold, and
  4. records an audit event.

Because policy lives in one place, it applies uniformly. An agent acting for a person carries that person’s access, a service account carries only what its job requires, and every call, allowed or denied, is recorded the same way.

DecisionRather than leaving credentials and access policy to each agent and application, we enforce them in a single gateway that every agent must pass through.

Section 2 · Gia cloud agents

Durable sessions in disposable sandboxes

How do we execute long-running agentic work reliably and securely?

Gia is GoGuardian’s cloud agent platform. A session can start from a chat message, a schedule, or another agent, and it may run for minutes, wait on subagents, and resume later.

Gia is built on effect-durable-agent (EDA), an open-source framework we developed for durable, event-sourced agentic applications. EDA is built around a simple idea: an append-only event log serves as the session’s source of truth, and the session’s state is derived from that log. If the process running a session restarts, the session rebuilds its state from the log and continues where it left off rather than starting over.

Each session runs its tools in a just-in-time provisioned sandbox with full shell access. The sandbox contains no integration secrets. When code inside it calls a business system, a credential-injecting proxy outside the sandbox adds the session’s authorization on the way to the gateway, so an agent can’t expose a credential it never had.

DecisionAgent sessions traditionally run as chats on individual laptops, where they stop when the lid closes and their traces stay on that one machine. We run them as durable sessions in the cloud instead, where they can run unattended, survive restarts, and leave a record we can inspect and audit.

Section 3 · Loops

From conversations to loops

How does one-off agent work become continuous operations?

Most agent work at GoGuardian starts as an ad hoc conversation. Someone asks an agent to summarize yesterday’s support tickets, prepare for a customer meeting, or reconcile a spreadsheet. When a conversation proves valuable, the natural next step is to have it run again tomorrow without anyone asking. We call that a loop.

Once cloud agents exist, only a few more primitives are needed to bootstrap loops:

  1. Schedules start a Gia session on a recurring cadence, acting on behalf of the schedule’s owner.
  2. Skills capture what the original conversation figured out: what to read, how to evaluate it, and what good output looks like.
  3. Pages carry state from one run to the next. A session’s context disappears when it ends, so each run reads the page the previous run wrote and publishes an updated version, both for the next run and for the people who follow it.

With these primitives in place, loops spread on their own. Today dozens of loops run across all departments at GoGuardian, from support and sales to finance and legal. A few of them:

  • Support cases. Review new support cases as they arrive and flag the ones that need a person’s attention.
  • Pull requests. Review pull requests as they are opened, before a person does.
  • User feedback. Read incoming user feedback and group it into recurring themes for the product team.
  • Production health. Check uptime and error metrics every hour, investigate anything unusual, and propose fixes.
  • Meeting preparation. Prepare a brief for each customer meeting the night before it happens.

Loops have real costs, however. Each run is an open-ended agent session that rereads its sources and reasons from scratch, which makes a loop expensive to run every day. When a loop gets something wrong, the error is buried somewhere in a long transcript, which makes it hard to find and harder to fix for good. Those limitations led us to KIT.

DecisionRather than leaving valuable work in one-off conversations, we promote it into loops. Where a loop’s open-ended reasoning becomes too costly or too hard to debug, we compile it into KIT.

Section 4 · KIT

From loops to compute graphs

How do we maintain a continuously updated, verifiable model of the business?

Many of our most valuable loops answered the same kind of question over and over: what is happening with this customer, and what should we do about it? Run as open-ended agent sessions, they reprocessed the same source material every day, discarded useful intermediate conclusions when each session ended, and buried their mistakes in long chains of reasoning.

KIT takes a different approach, representing knowledge processing as an incremental computation graph built from a few kinds of nodes:

  • Source nodes hold data from upstream systems.
  • Transformation nodes run code, model calls, or both.
  • Map steps apply a transformation to every item, such as each support conversation.
  • Reduce steps combine many results into one, such as a sentiment trend.

Each layer distills the one before it, from raw records up to an understanding of the account and the actions it suggests.

Because every node records the inputs it was computed from, KIT knows what depends on what. When a source changes, only the affected downstream nodes recompute, and everything else is reused. Agents can also query any intermediate node directly, so a question about customer sentiment starts from summaries that already exist rather than from every raw conversation.

Breaking knowledge processing into small, explicit transformations also makes it verifiable. Each transformation can have its own evals and regression cases, and every conclusion can be traced back through the graph to its source evidence. When a conclusion is wrong, we can locate the transformation responsible.

ExampleNorthwind Unified is a fictional school district. Its data, conversations, and graph are invented to illustrate how KIT behaves, and they don’t reflect real customer data or our production graph.

DecisionRather than repeatedly asking general-purpose agents to reconstruct context from raw data, we maintain a shared, continuously updated model of the business that agents can query and act on.

Section 5 · Tasks & actions

From understanding to prioritized work

How do we turn business knowledge into prioritized work?

A model of the business is only valuable if it changes what people do. The task system reads KIT’s outputs and identifies conditions that may warrant intervention, such as declining product usage, rising customer frustration, adoption opportunities, or accounts that need follow-up.

When a condition holds, the system drafts a task with its reasoning and links to the supporting evidence, ranks it against the owner’s other work, and routes it to the person accountable for the account. That person reviews the evidence, decides how to respond, and records whether the task was useful.

Tasks propose actions rather than execute them. Contacting a customer or changing a record remains a human decision, carried out in the tools our teams already use.

DecisionRather than producing analysis that ends as a document, we translate the system’s understanding into specific, prioritized work.

Section 6 · The improvement loop

Correcting the computation, not the output

How does human feedback systematically improve future decisions?

The system will make mistakes. A source may be incomplete, a summary may miss context, a transformation may misread a signal, or a rule may surface an opportunity that is technically accurate but not worth acting on.

This is where the compute graph pays off. When an open-ended agent session goes off the rails, finding the cause means reading a long transcript, and the fix is usually a prompt change that may or may not hold next time. In KIT, every conclusion has explicit dependencies. We can trace a bad task backward edge by edge, zoom into the one transformation that produced the wrong intermediate result, and fix it there. We then encode the failure as a regression case, so the fix holds for every account that transformation touches.

This remains engineering work, assisted by agents rather than performed autonomously by the graph. People and agents investigate the trace together, and every change to a transformation passes review and the full regression suite before it ships.

DecisionRather than debugging open-ended agent sessions when they go off the rails, we zoom into the specific transformation in the graph that went wrong, fix it there, and lock the fix in with a regression case.

Closing

One continuous system

Each component has a distinct responsibility. The integration gateway makes business information accessible under consistent controls. Gia provides durable, isolated execution. Skills, schedules, and pages keep work running between conversations. KIT turns raw information into reusable knowledge. Tasks bring that knowledge into human workflows, and feedback improves the computations behind them.

The value comes from how these components work together. The system continuously observes the business, models it, proposes useful work, and learns from the people who act on that work. Each iteration gives us a better foundation for the next.

All examples on this page, including Northwind Unified and its people, are fictional.