Observed since 20 Oct, 21:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A multi-agent AI coding system with built-in RAG — local or cloud, CLI or API.
_ _ ____ _ _ _
/ \ __ _ ___ _ __ | |_ / ___| |__ __ _ _ __ | |_(_)
/ _ \ / _` |/ _ \ '_ \| __| | | | '_ \ / _` | '_ \| __| |
/ ___ \ (_| | __/ | | | |_ | |___| | | | (_| | | | | |_| |
/_/ \_\__, |\___|_| |_|\__| \____|_| |_|\__,_|_| |_|\__|_|
|___/
━━ A u t o n o m o u s C o d e r ━━
An AI coding agent that tells you when it did not verify your code.
Plans, codes, reviews and tests — then says what actually checked the result, and what didn't.
pipx install agentchanti # or: pip install agentchanti
agentchanti --help
Full installation options (venv, editable, convenience scripts) are further down.
Every coding agent will tell you it finished. Almost none will tell you whether anything independent agreed.
AgentChanti separates two questions that most tools collapse into one:
| Completed | the plan ran, every step's own check passed |
| Verified | something the agent did not write in this run agreed |
When those answers differ, it says so on the last line rather than rounding up:
~ Tasks completed — but nothing independent verified them.
1 pre-existing test file(s) survived but none could be run
✓ All tasks completed successfully!
Verified by pre-existing-tests.
Three rules make that claim mean something:
acceptance_cmds, a pre-existing test the run left
byte-identical, or a contract written before any code existed — and if the
agent edits that contract, it stops counting.agentchanti --restore puts it back. No git
required.Measured on an 8-task benchmark with external probes the agent never sees — ground truth 7/8, and zero false greens: not one run claimed success over an artifact that failed its checks.
Every claim above is an engineering log, not a slogan:
CLAUDE.mdrecords the measured incident behind each one, including the ones where this tool was wrong and how that was found.

Full 7-minute walkthrough on YouTube — installation, configuration step-by-step, main features, and a first end-to-end task run (recorded against v0.1.1):
AgentChanti is a command-line tool and Python library that takes a plain English description of a coding task and autonomously builds the software for you using a team of specialized AI agents:
| Agent | Role |
|---|---|
| Planner | Breaks your task into numbered, actionable steps |
| Coder | Writes clean, idiomatic code for each step |
| Reviewer | Checks code for bugs, style issues, and correctness |
| Tester | Generates and runs unit tests to verify everything works |
Supports local LLMs (Ollama, LM Studio) and cloud providers (OpenAI, Google Gemini, Anthropic Claude).
It also ships with a built-in RAG system: before any agent writes code, the most relevant functions, classes and docs are retrieved from your codebase and injected as context — so even a local 7B model in Ollama understands your project's structure and conventions. Teams can add internal docs, ADRs and coding standards to the Global KB and every run picks them up. See RAG Architecture.
The project is copied before the first agent reads anything, and
agentchanti --restore puts it back:
agentchanti --restore # needs no config, provider or API key
Restore is additive — it never deletes what the run added. Build output and
dependency trees (node_modules, .venv, .next, dist) are skipped, and a
tree past the size bounds is refused outright rather than half-copied, because
a partial snapshot that looks complete is worse than none.
This exists because guards are not guarantees. A run once read an uncommitted Next.js project as an empty directory and scaffolded over it; the scan and the destructive-command refusal that now prevent that are both in place, and this is the backstop for whatever they miss.
When the provider supports native tool calling (Ollama with llama3.1/qwen2.5-coder+, OpenAI, Anthropic), CODE and TEST steps run as a bounded tool-calling loop: the model reads files, edits, runs commands and tests, observes the real output, and self-corrects — capped at agent_loop_max_turns (default 8) so cost stays predictable. A step only counts as done once its verification command actually passes. Failed shell commands and failed steps get one bounded recovery loop instead of hard-failing the pipeline.
This is on by default; set agent_loop: false in .agentchanti.yaml to use the classic generate→review→retry pipeline, which also remains the automatic fallback for models without tool support. A/B benchmarks (see benchmarks/) show parity on success rate with ~14% fewer tokens.
Ground truth in those benchmarks is never the pipeline's own opinion: each task
carries success_cmds that run in an isolated workdir, and the harness prints
the pipeline's claim and the measured result as separate columns — because a
tool grading its own homework is the failure mode this project is built
around.
AgentChanti ships as both a CLI and a Python library, so it can be embedded directly into any service:
# Inside a Flask endpoint — trigger the full agent pipeline on a PR event
from agentchanti import run_task
@app.route("/pr-review", methods=["POST"])
def on_pull_request():
result = run_task(task="Generate unit tests for the changed files", auto=True)
return {"status": result.status, "files": result.files_written}
The plugin system (StepPlugin base class) lets teams extend the pipeline with custom steps beyond code generation:
| Example Plugin | What It Does |
|---|---|
| PR test generator | Auto-generates tests when a PR is opened |
| Image validator | Validates assets against design specs using a vision model |
| Deployment gate | Runs lint, security scan, or compliance checks before deploy |
| Custom linter | Enforces team-specific coding standards as a pipeline step |
Plugins are discovered automatically from your config or via setuptools entry points — no changes to the core pipeline needed.
AgentChanti includes a 4-phase RAG system that automatically indexes your project and injects relevant context into every agent prompt — so even a small local model running offline has deep awareness of your internal code and docs:
All storage is local SQLite — no cloud vector database required. Works fully offline with local LLMs.
AgentChanti uses a 4-phase Retrieval-Augmented Generation (RAG) system to give every agent deep awareness of your codebase. Before any code is written, the system automatically indexes your project and injects the most relevant context into each LLM prompt.
┌──────────────────────────────────────────────────────────────┐
│ Your Coding Task │
└──────────────────┬───────────────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────┐
│ Phase 1: Code Graph Tree-sitter AST parsing │
│ ─────────────────── Classes, functions, imports, │
│ call edges → NetworkX graph │
├──────────────────────────────────────────────────────────────┤
│ Phase 2: Semantic KB Embed symbols → SQLite vectors │
│ ──────────────────── Cosine similarity search │
│ Graph-enriched results │
├──────────────────────────────────────────────────────────────┤
│ Phase 3: Global KB Error-fix dictionary (regex) │
│ ────────────────── Coding patterns, ADRs │
│ Behavioral instructions │
├──────────────────────────────────────────────────────────────┤
│ Phase 4: Context Builder Intent detection (error/review) │
│ ──────────────────────── Retrieve → rank → budget (4000t) │
│ Inject into agent prompt │
└──────────────────┬───────────────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────┐
│ Planner / Coder / Reviewer / Tester │
└──────────────────────────────────────────────────────────────┘
| Phase | What It Does | Storage |
|---|---|---|
| Code Graph | Parses AST with tree-sitter (11 languages), builds a directed graph of symbols and call edges | graph.pkl + index.db |
| Semantic KB | Embeds functions/classes into vectors, enables natural-language search over your code | vectors.db (SQLite) |
| Global KB | Maps error patterns to fixes, stores coding best practices and behavioral rules | global_kb.db (SQLite) |
| Context Builder | Assembles retrieved context per-step with token budgeting and priority ranking | In-memory |
Additional capabilities:
All storage is local SQLite -- no external vector database required. See documentation.md for the full technical deep-dive.
Python 3.10+ (python.org)
Git (git-scm.com)
A local LLM server or a cloud API key
Option 1: pipx (recommended for end users)
pipx installs CLI tools into isolated environments and puts them on
your PATH — no virtualenv to activate, no pip install polluting
your global site-packages.
pipx install agentchanti
agentchanti --help
To upgrade later: pipx upgrade agentchanti. To install pre-release
builds straight from main: pipx install git+https://github.com/udaykanthr/agentchanti.git.
Option 2: Clone and install (for contributors / latest code)
git clone https://github.com/udaykanthr/agentchanti.git
cd agentchanti
python3 -m venv .venv
source .venv/bin/activate # Linux/macOS
.venv\Scripts\activate # Windows
python -m pip install -e ".[dev]" # includes pytest + ruff for tests
agentchanti --help
Option 3: Convenience scripts
If you'd rather not type the venv steps yourself, the repo ships helper scripts that do the same thing:
git clone https://github.com/udaykanthr/agentchanti.git
cd agentchanti
# Linux / macOS
chmod +x install.sh && ./install.sh
# Windows
./install.bat
source .venv/bin/activate # Linux/macOS
.venv\Scripts\activate # Windows
Why no
curl | bashinstaller? AgentChanti is a Python package, not a single static binary. The standard Python tooling (pipx,pip) already handles isolated installs, version pinning, and upgrades — wrapping that in a shell script downloaded over HTTPS would add an attack surface without adding any value.
AgentChanti can reach a live external application through a Model Context Protocol server — a running Blender session, a FreeCAD document, anything with an MCP server in front of it. The agent then edits that application directly, instead of writing a script and hoping.
This is opt-in and costs nothing when unused. The SDK is an extra, not a dependency, so a plain install never downloads it:
pipx install agentchanti # no MCP SDK
pipx install "agentchanti[mcp]" # with it
# already installed? pipx inject agentchanti mcp
# from a clone: python -m pip install -e ".[mcp]"
Nothing is installed behind your back, and nothing is fetched on first use: a run that configures no server never imports the SDK, and its prompts are byte-identical to a build without the extra. If you do configure a server and the extra is missing, the run says so once and carries on without external tools:
[MCP] the `mcp` package is not importable (ModuleNotFoundError);
install it with `pip install agentchanti[mcp]`
Servers are declared in .agentchanti.yaml:
mcp:
servers:
- name: blender
transport: stdio # or: http
command: python
args: ["path/to/your_mcp_server.py"]
timeout: 130
# Which tools the agent may call. REQUIRED unless you set
# `read_only: true` — a server fronting an app that can execute
# arbitrary code is not read-only, and the allow list is you
# naming exactly what is permitted.
allow: [execute_code, get_scene_info]
Two optional keys are worth setting for anything that holds state you care about, because the project's usual safety nets are made of files and git, and a live application has neither:
# A read that fingerprints the application's state. Without it the
# stall detector cannot tell "the agent changed nothing" from "the
# gate is broken", and stays silent by construction.
state_probe: 'mcp:blender__get_scene_info {}'
# How to snapshot and restore. Declared by you, because there is no
# general way to snapshot an arbitrary system -- saving a .blend,
# dumping a database and exporting a browser profile share no
# vocabulary. `{path}` is substituted with a run-scoped file.
# BOTH halves are required: half a pair looks like an undo and is
# not one, so it is warned about and ignored.
snapshot:
capture: 'mcp:blender__execute_code {"code": "import bpy\nbpy.ops.wm.save_as_mainfile(filepath=r\"{path}\", copy=True)"}'
restore: 'mcp:blender__execute_code {"code": "import bpy\nbpy.ops.wm.open_mainfile(filepath=r\"{path}\")"}'
Nothing is ever restored automatically — a run that fails can still leave the application in exactly the state you wanted. Recovery is explicit:
agentchanti --restore
A plan step may also make a tool call its verify: gate, in the same
syntax, so a step that does its work through an external tool is measured
by one:
verify: mcp:blender__execute_code {"code": "import bpy\nassert 'Tree' in bpy.data.objects"}
Independent evidence for a tool-only task. The seeded acceptance contract is a file check and cannot judge a live application, so a run whose artifact exists only inside another program has nothing outside itself to verify it. Supply
acceptance_cmdsthat reads the application and compares against a baseline recorded before the run — a gate the run writes sees only the end state and so can never express "this did not change".
agentchanti "<task description>" [options]
# With Ollama
agentchanti "Create a Flask REST API with CRUD" --provider ollama --model deepseek-coder-v2:16b
# With OpenAI
OPENAI_API_KEY="sk-..." agentchanti "Build a CLI tool" --provider openai --model gpt-4o-mini
# With Gemini
GEMINI_API_KEY="..." agentchanti "Build a REST API" --provider gemini --model gemini-2.5-flash
# With Claude
ANTHROPIC_API_KEY="sk-ant-..." agentchanti "Build a CLI tool" --provider anthropic --model claude-sonnet-4
# Non-interactive (CI/scripts)
agentchanti "Generate unit tests" --auto --no-git --no-report
| Flag | Description | Default |
|---|---|---|
"task" | The coding task to perform (required) | — |
--prompt-from-file | Read task description from a file | — |
--provider | ollama, lm_studio, openai, gemini, anthropic | lm_studio |
--model | Model name | deepseek-coder-v2-lite-instruct |
--embed-model | Embedding model name | nomic-embed-text |
--language | Override auto-detected language | auto-detect |
--config | Path to .agentchanti.yaml config file | auto-discover |
--auto | Non-interactive mode (auto-approve plan) | off |
--no-embeddings | Disable semantic embeddings | off |
--no-stream | Disable streaming responses | off |
--no-git | Disable git checkpoint/rollback | off |
--no-diff | Disable diff preview before writing | off |
--no-cache | Disable step-level caching | off |
--clear-cache | Clear step cache before running | off |
--no-knowledge | Disable project knowledge base | off |
--no-search | Disable web search agent | off |
--no-kb | Disable KB context injection | off |
--report / --no-report | Enable/disable HTML report | on |
--resume | Force resume from checkpoint | off |
--fresh | Ignore checkpoint, start fresh | off |
--generate-yaml | Generate .agentchanti.yaml and exit | off |
Manage the project knowledge base via agentchanti kb:
agentchanti kb embed # Embed symbols into the vector store
agentchanti kb search "query" # Semantic search over KB
agentchanti kb query find-callers X # Find all callers of a function
agentchanti kb error-lookup "msg" # Look up error fixes
agentchanti kb health # Show KB health report
agentchanti kb update # Pull global KB updates
See documentation.md for the full list of KB commands.
Inspect and health-check the servers declared under mcp: — without
spending a run, and without a provider or an API key, since someone
asking why their server is not working should not be asked for credentials
to find out:
agentchanti mcp list # every server: transport, fence, health
agentchanti mcp get <name> # one server in full, offered vs withheld
agentchanti mcp add <name> ... # add one, with the fence discovered
agentchanti mcp add-json <name> '{...}' # incl. snapshot / state_probe
agentchanti mcp remove <name> # take one out again
agentchanti mcp list --no-health # read the config only, start nothing
Both connect briefly, list the server's tools, and stop. They exit non-zero
when a server fails its check, so they are usable from CI. list names the
config file it read, which matters because .agentchanti.yaml is found
CWD-first and never merged — a project file shadows a home one entirely.
What they are built to answer, each of which otherwise costs a whole run to discover:
thing [FAILED — offers nothing; see the warnings]
stdio: python server.py
allow: do_it
no snapshot — no undo — `agentchanti --restore` cannot put this
system back, because there is no general way to snapshot one
no state_probe — the stall detector is blind to it ...
A server given neither allow: nor read_only: true is rejected at
load rather than merely limited, so it is reported as unusable and the
exit is non-zero.
To add one:
agentchanti mcp add blender -- python blender_server.py
agentchanti mcp add thing --allow read_x read_y -- npx my-mcp-server
agentchanti mcp add api --transport http https://x.test/mcp \
-H 'Authorization: Bearer ...' --read-only
With neither --allow nor --read-only, add starts the server once and
lists its tools, so the fence is chosen from what the server actually
offers rather than guessed — and nothing is written until you choose. With
no terminal to ask at, it prints the ready-made flag and writes nothing.
snapshot: and state_probe: take a JSON document rather than three more
flags, because their values are mcp: tool calls carrying JSON payloads
that no shell quotes comfortably:
agentchanti mcp add-json blender '{"transport":"stdio","command":"python",
"args":["blender_server.py"],"allow":["execute_code","get_scene_info"],
"state_probe":"mcp:blender__get_scene_info {}",
"snapshot":{"capture":"...","restore":"..."}}'
And to take one out again:
agentchanti mcp remove blender
add only ever inserts lines and remove only ever deletes the
item's own — comments, key order, quoting and formatting are left exactly
as they were, so add followed by remove returns the file byte for byte
to what it was. Both refuse rather than guess when the file's shape is
ambiguous (flow-style servers: [...], or mcp: written as a bare list),
printing the block for you to paste instead. The result is then verified by
re-reading the file through the same loader the pipeline uses.
-s/--scope is project (the default) or user:
agentchanti mcp add shared --scope user --read-only -- python shared.py
A user server lives in ~/.agentchanti.yaml and is offered in every
project. This is the one section of the config that merges across the two
files — everything else stays first-file-wins, where a provider resolved
half from one file and half from another would be worse than one source.
Project entries take precedence on a name collision, and the duplicate is
reported rather than silently dropped. mcp list marks where each server
came from, and remove edits the file the server actually came from unless
you name a scope.
There is no local scope: agentchanti has no per-project private store,
only the file itself.
For full documentation including architecture details, configuration reference, library API, plugin system, and troubleshooting, see documentation.md.
For external tools over MCP — installing the extra, adding and checking a server, the allow list, snapshots and undo — see docs/mcp.md.
Contributions are welcome! Feel free to open issues or submit pull requests.
git checkout -b feature/my-feature)python -m pytest tests/ -vMIT License. See LICENSE for details.
This is a personal project by Uday Kanth. It is not affiliated with, endorsed by, sponsored by, or in any way officially connected with my current or past employer(s), or any of their subsidiaries, clients, or affiliates. All opinions, code, and design decisions in this project are my own and do not represent the views or intellectual property of any organization I am or have been associated with. This project was built entirely on my own time using my own resources.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.13.0 | 18 Oct 2026 | 24 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:e5301b592d0be70a21f54f1910496df965335e00449352dfb5c42938f8353ee8