Skip to main content

Agentagon

Find failures. Test fixes. Ship with evidence.

Agentagon helps you audit, evaluate, and improve any AI agent using its code and execution traces. Find failures, test candidate fixes, and compare results against a recorded baseline.

The Python CLI captures evidence, runs checks and saves reports. The ag plugin guides your coding assistant through the reasoning, reviews and candidate edits. Supported coding hosts and setup commands are listed below.

Start with Audit your agent to investigate a concern, or Improve your agent to bring one known failure through evaluation and repair. Review, Eval and Ship support the later steps. Install the plugin if needed.

See an improvement: the ticket-retry demonstration runs an actual model against controlled tool state, compares request-scoped idempotency with a regressing alternative, and retains a test for duplicate creation. It is a seeded example with explicit model access and execution limits.

Prerequisites

  • Python 3.12+ with pip and venv, on macOS or Linux. The implementation uses Unix facilities such as fcntl.
  • Git to clone this repository, review changes, and run evaluation or fix workflows. Full code audits also accept directories without Git.
  • Codex or Claude Code with its native plugin manager for agent-led workflows. The local example below needs neither host nor credentials.

Installation downloads Python dependencies. No Agentagon account or API key is required for the local example or core workflows; your coding host and configured services have their own access requirements.

Installation

Install the CLI from PyPI using pipx:

pipx install agentagon
agentagon install --host codex
# Or: agentagon install --host claude-code

Start a new coding-host session after registration. CLI installation and host registration are separate steps; select the host you use. Downloadable wheels, source archives and checksums are also available in GitHub Releases.

For source installation in an isolated environment:

git clone https://github.com/agentagon/agentagon.git
cd agentagon
python3 -m venv .venv
. .venv/bin/activate
python -m pip install .
agentagon --help

Ensure python3 --version reports 3.12 or newer. Keep this environment active for the following commands; reactivate it in each new shell.

For a persistent CLI and native host plugins, use the plugin installer. It creates a separate runtime and registers ag with selected or detected hosts.

Anonymous skill and Intelligence usage telemetry is enabled by default. Disable it with agentagon setup --scope user --set telemetry.enabled false or AGENTAGON_TELEMETRY_DISABLED=1. See collected fields, privacy and delivery.

Optional Agentagon Intelligence is available through live /v1/audit, /v1/eval and /v1/fix routes. Configure the issued origin explicitly and follow the workflow-specific request and privacy rules.

Quick start

For an offline installation check, run the bundled synthetic application example from the repository root:

python examples/local-audit/demo.py

It creates a temporary application, captures its source, prepares an evidence packet and writes a partial report. After installation, this example needs no network services. Expected JSON has this shape; paths and IDs vary:

{
  "workspace": "/tmp/agentagon-example-…/app",
  "audit_id": "audit_…",
  "pending_action": "evidence",
  "packet": "/tmp/agentagon-example-…/app/.agentagon/audits/audit_…/packets/packet_….json",
  "response_template": "/tmp/agentagon-example-…/app/.agentagon/audits/audit_…/packets/packet_….response.json",
  "report": "/tmp/agentagon-example-…/app/.agentagon/reports/audit_…/report.md"
}

Open the printed packet and report files. pending_action: "evidence" means the coding agent still needs to review the evidence, not that the application passed an audit. The temporary directory remains available for inspection; remove it when finished. See the example guide to open its dashboard.

Use with your coding agent

After installing the plugin, start a new host session in your application's directory. In Claude Code:

/ag:audit Check input validation and tool error handling.

In Codex, choose ag:audit from the native skill picker. Agentagon skills automatically open the application's dashboard as work begins and reuse it across workflows. Use ag:dashboard to reopen it or inspect another result.

Goal Workflow and guide
Investigate code, traces or both ag:audit
Review staged, unstaged and new files ag:review
Prepare and review a benchmark ag:eval
Measure candidate fixes against a baseline ag:fix
Prepare a selected fix for delivery ag:ship

Evaluation and fix workflows require a clean committed checkout and configured execution limits. See the capability overview for integrations and workflow boundaries.

Configuration and saved data

No configuration is needed for the quickstart: the example isolates its settings automatically. To inspect settings for your current directory:

agentagon setup
Setting or location Purpose
--workspace PATH before the subcommand Select the application directory; defaults to .
AGENTAGON_CONFIG Override the configuration file path
$XDG_CONFIG_HOME/agentagon/config.json Default settings file; falls back to ~/.config/agentagon/config.json
.agentagon/ in the application directory Evidence, reports and experiment state; initialization excludes it from Git

Project overrides take precedence over user defaults. Credential settings store environment-variable names, not secret values. Use ag:setup and the configuration guide for traces and preferences, execution profiles for evaluations and fixes, and Intelligence setup for optional audit, evaluation and fix guidance.

Evidence is stored locally; your coding host and configured services determine where model processing occurs.

Development and contributing

See CONTRIBUTING.md for editable installation, local development, tests and the pull request workflow. The documentation index links deeper guides and references.

To explore the implementation, start with how Agentagon works and the extension walkthrough. Maintainers can follow release preparation.

Report vulnerabilities through SECURITY.md. Participation follows the Code of Conduct.

License

Apache-2.0.

Release files for agentagon 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentagon 0.1.1
File Size Uploaded
agentagon-0.1.1.tar.gz 13.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentagon 0.1.1
File Interpreter ABI Platform
agentagon-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 MB

Release files / agentagon-0.1.1.tar.gz

Download URL agentagon-0.1.1.tar.gz
Size 13.3 MB
Tags Source
SHA-256 checksum
How to use checksums
86c521a2117b6e5b5b6493ea0b537e7625893dde665c97ed97334e149ed10732
BLAKE2b-256 checksum
How to use checksums
c0ef88222b713fdb24170f31fd85dc0bed8ad607af7af5abfa7c6bd55997c0e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / agentagon-0.1.1-py3-none-any.whl

Download URL agentagon-0.1.1-py3-none-any.whl
Size 3.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f2db3a68834f64c177b5e048d4f5b43359d67d3a2f199b1250c38f95d9166d55
BLAKE2b-256 checksum
How to use checksums
e841e5d1ff444a5a45c13b902555abe372625c7bf5c9f9d164a3e8968cecc401
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page