CControxity Docs
GuidesReferenceHTTP APIOpen Controxity
Start here

Coding with AI agents

How Controxity fits a team whose code is written by Claude Code, Cursor or Codex: evidence for the agent, proof for the fix, and a safe way to ship it.

Most new code is now written by AI agents. They are fast, but they work from what they're shown, and what they write still has to be proven and shipped safely. Controxity covers both sides.

The loop, with an agent#

StepWhat happensHow
1. Production tells the agentYour agent reads the real errors: every frame, what the error code means, how often, on which versions, the steps before it and the shape of what failed.MCP server
2. The agent writes a failing testFrom the shape of the input that failed, it writes a test that fails the same way, before it changes anything.The shape of what failed
3. The agent says what must holdIt adds expect("total-not-negative", total >= 0) where a wrong result would otherwise go unnoticed.Expectations
4. It ships darkNew or risky code goes behind flag("new-checkout"): off until a person turns it on, for everyone or a share.Switches
5. CI says what the release carriesOne step sends the source maps, says which commit the release is, and lists the fixes it carries.Releases from CI
6. Controxity watchesA switch that makes errors plainly worse turns itself off. A fix shows Running where it really runs, and a problem reopens if it comes back.Versions

Controxity's own fixer follows the same loop: it reads the same evidence, must prove a fix with a test, and nothing reaches production without people's yes (How a fix is made and proven).

Set it up once#

  1. Put the SDK in, with your framework's hooks: Node.js, Python.
  2. Write the first controxity.yml and guide: node controxity.js init reads your repository and writes how your code is tested, and an AGENTS.md that the fixer and other agents read first (how).
  3. Give your agent the MCP server, with a key of your own: Use it from your AI tools.
  4. Add release to CI, after the build: Releases from CI.

What to ask your agent#

What the agent can't do#

Its key reads what you can read, and nothing more. It can't run the fixer, approve, deploy, or turn a switch on or off: those stay people's steps, each in the Activity record.

What leaves your server#

Everything above is sent as codes and shapes, never values: an error's type, where it happened, the key names and types of what it was given, the steps before it as codes, expectation and switch names with counts. See What never leaves your server.

Controxity 1.132.0These pages are in the repository: docs/site