GuardianContext · AI agent coordination

Several AIs in the same repository,
without losing rules, context or work

GuardianContext by IronStack keeps memory, rules and coordination for coding agents in the same Git repository. Its protocol, CLI and Desktop app run locally; project instructions and native hooks help external clients use the project's context.

Local operations and safe updates

Guide version · 0.1.20 · 2026-11-11

The Git protocol, local search, Desktop app and native hooks help coordinate work in the repository. Run each agent in its own client; GuardianContext 0.1.20 does not provide MCP transport, start sessions or exchange messages between agents.

The problem

Born from real incidents

One session's work disappears in another

Claude Code, Codex, Cursor and Kimi committing in the same tree. A git add -A picks up someone else's file, a checkout -- wipes the edit of whoever has not committed yet. That is how the product was born: lost commits and hours of wrong diagnosis in a real repository.

Context that costs more than the code

The work board of the source repository reached 245 KB, about 66K tokens read in every session, 33% of a 200K window, before a single code file was opened.

Each tool reads only its own file

Claude Code reads CLAUDE.md; Codex, Cursor and others read AGENTS.md. In the measured repository, security and contract rules existed for one family of tools and were invisible to the other.

Simulation estimates

Simulated token comparison by task

Measured on a real monorepo operated by four AI tools at the same time, with about 690 markdown documents. Tasks written the way an agent would ask; answer key taken from the repository itself.

19×
less context in the simulated reference session
board from ~66K to ~3.5K tokens
12×
fewer tokens in the simulation than with no knowledge base
57,976 → 4,699 tokens
7×
fewer than a code graph in simulated process and rule questions
33,248 → 4,699 tokens
How the agent searchesTokens per taskFound the right file
No knowledge base (grep and reading)57,9762/12
Code graph only33,2485/12
Well-maintained wiki with a router4,88312/12
GuardianContext4,6997/12

Tokens estimated as characters ÷ 3.7, the same ruler in every scenario; reading capped at 2,000 lines per file. The no-knowledge-base and code-graph-only scenarios simulate a single search pass, without the iterative behavior of a real model. The tasks are about process and rules: a code graph is built for code questions, and the two tools answer different questions and add up. Against a wiki that is already well maintained, the gain is small: the value shows up where it does not exist or goes stale. Reproduce it on your repository withguardian benchmark.

How it works

Six pieces, one repository

Protocol in your git

Router, per-topic wiki, decisions and work board in markdown, versioned with the code. Works offline, shows up in the PR diff and does not create a second source of truth outside the repository.

Local snippet search

SQLite index with full-text and multilingual semantic search on your machine. The agent receives only the snippets that answer the question.

Audit and pre-commit hook

Measures the repository's discipline (bloated board, decisions without a status, expired claims) and refuses git add -A in a shared tree, without getting in the way of merges.

Reconciliation between tools

Shows, folder by folder, which rule each tool cannot see and reconciles CLAUDE.md and AGENTS.md with a pointer between markers, without copying content and without changing any tool.

Incident pattern library

45 rules curated from real incidents in repositories operated by several AIs (shared git, deploy, tests, database access rules). Each has the case and the command to check it.

Benchmark on your repository

guardian benchmark measures how many tokens your agents spend to find each answer, with and without GuardianContext. The numbers on this page came from it.

Integration

Cross-review with Claudex Loop

Claudex Loop is an open skill in which Claude Code and Codex take turns: one model plans and builds, the one from another company reviews in a fresh session, and whoever wrote the code never approves their own work. It is the scenario GuardianContext was made for.

The same rules for whoever builds and whoever reviews

Claude Code reads CLAUDE.md and Codex reads AGENTS.md. Without reconciliation, the reviewer judges by a different standard than the one the builder followed. guardian instrucoes sync links the two files.

Context ready for the session without memory

Every review starts from scratch. guardian brief delivers, in a few hundred tokens, the tool's rules, the snippets that answer the task and the related decisions, to paste into the plan.

The review log under control

PLAN.md and PLAN-REVIEW-LOG.md go into the local index, and the auditor warns when the round log grows beyond its budget, before it turns into a fixed cost of every session.

Before each round
guardian instrucoes sync guardian brief "task description" --tool agents --saida .guardian/brief.md

Use --tool agents when Codex reviews and --tool claude when Claude Code reviews; paste the brief into the context section of PLAN.md. Claudex Loop is an independent open source project with no commercial relationship with IronStack.

Pricing

Start free, grow by repository

Plans differ by the number of repositories and users the account covers. The free plan has no time limit.

Free
Free
no time limit
  • 1 repository
  • 1 user
Starter
US$ 3.84/month
billed as R$ 19.90
  • 3 repositories
  • 1 user
Developer
US$ 9.63/month
billed as R$ 49.90
  • 10 repositories
  • 2 users
Professional
US$ 38.41/month
billed as R$ 199.00
  • 25 repositories
  • 5 users
Enterprise
US$ 192.82/month
billed as R$ 999.00
  • 100 repositories
  • 20 users

Charged in Brazilian reais (BRL); international cards accepted. Dollar amounts are a reference at the Central Bank of Brazil PTAX selling rate of September 30, 2026 (R$ 5.1809 per US$); your card statement may vary with your issuer's exchange rate and fees.

Install

One line, no need to talk to anyone

Installs the CLI and opens the Desktop Manager, where you create your account and connect the repository. Free plan for one repository, with no time limit. Try GuardianContext to keep context between sessions; your repository content stays in your git.

More than 1,200 PyPI downloads in 30 days

30-day window checked on Oct 16, 2026. Downloads include updates and automated installs. Source: PyPI Stats

Windows · PowerShell
irm https://api.ironstack.dev.br/install.ps1 | iex
macOS · Linux
curl -fsSL https://api.ironstack.dev.br/install.sh | sh

Terminal only: uv tool install "guardiancontext[semantic]" and guardian signup. Terms of use at api.ironstack.dev.br/termos.

Frequently asked questions

GuardianContext, clearly explained

Updated October 16, 2026 · Read the manual, plans and metrics for details.

What is GuardianContext?

GuardianContext is an IronStack tool for keeping context, rules and coordination for coding agents working in the same Git repository. Its protocol and index stay local; the CLI, Desktop, project instructions and native hooks help external clients use that context.

Does it work with Claude Code, Codex and Cursor?

GuardianContext provides a CLI, Desktop app, project instruction files and native hooks for compatible external clients. Run Claude Code, Codex, Cursor or another agent in its own client; GuardianContext does not start sessions or provide MCP transport.

How do I install it?

Use the installer for your operating system in the Install section, then follow the manual to initialize the repository and configure native hooks when needed.

Is Free free, and what is its limit?

Free lets you connect one repository per account with no time limit. Current features and prices are listed in the plans section.

Can I use one account for several projects?

Yes. You can reuse the account, but connect each Git repository separately. Do not copy credentials or the .guardian directory between projects.

What works offline, and for how long?

The repository's local protocol and data remain available offline. License cache can work for up to seven days, also limited by the paid period and key validity; offline revocations are learned after reconnection or expiry.

What telemetry is sent?

Telemetry headers include a random installation ID, version, client type, automatic update state and language. They exclude message content, paths and computer names.

Are the token savings guaranteed?

No. They are results from tasks on one reference repository, estimated with characters ÷ 3.7 and the reading limits described on the metrics page. That page shows the scenarios, sample and caveats; measure your own repository with guardian benchmark.