An open-source, self-evolving AI agent whose reasoning core is an LLM-Fusion engine (panel -> judge -> synthesizer).
pip install chimera-agent==0.62.2 Copy PIP instructions
The governed, self-evolving agent — proved and governed. Thinks with many minds, does real work on its own, learns only what's proven, and is safe by architecture.
English · Português · Español · Deutsch · Français · Italiano · Polski · 中文 · 日本語 · Русский
Most AI assistants bet everything on a single model and forget everything when the chat ends. Chimera does two things differently: for hard questions it asks several AI models at once and blends their answers into one stronger result, and it remembers and learns so it becomes more useful the more you use it. It doesn't just chat — give it a goal and it plans, uses tools, checks its own work, and keeps only what actually works.
Free and open-source (Apache-2.0), in early but active development. It already works end to end: chat with it, let it finish tasks on its own, run it as a bot on your favourite messaging app, deploy it on a server so it works 24/7, and watch it learn from what it does. It's alpha — solid and heavily tested (6,100+ automated tests, strict type-checking and linting on every change), but not yet battle-hardened in production.
Think of most AI tools as asking one expert and hoping they're right. Chimera is like having a panel of experts that debate, a fair judge that weighs their answers, and a writer that delivers the best combined result — then a teammate who actually does the work and learns from it. Here's what makes it special, in plain terms:
Chimera doesn't try to out-channel the giant agent projects. It bets on the three things a real reverse-engineering study of five leaders (OpenClaw, Hermes, nanobot, CrewAI, LangGraph) found they all leave open — and makes them its core:
In one line: the governed, self-evolving agent — proved and governed. It's alpha, and it says so.
Four recorded results, published together on purpose: two that support the thesis (one significant only when pooled), one that went against us, and one we retracted. (Also surfaced in the desktop app's Maturity & Benchmarks screen, straight from the shipped snapshot — that screen reports the project's own coverage, so it only renders under the Vite dev server (npm --prefix apps/desktop run dev). chimera app serves the production build and does not show it, and neither does a native installer.)
Weak-model lift (significant). A cheap model (mistral-small-3.2-24b) + Chimera's retry loop vs the same model alone, on a pre-registered n=100 suite (design + tasks committed and pushed before any model call): 48.0% → 71.0% (+23.0pp), paired 95% CI [+12.6%, +28.6%] — statistically significant (the CI excludes 0), from 28 tasks the loop recovered (raw fail → verified pass) against 5 regressions. One model, one seed/task, small self-contained Python tasks — NOT SWE-bench, does not generalise to real repos. One run, no re-roll. This supersedes an earlier run of the same suite (9.0% → 15.0%, +6.0pp) whose harness graded with a test file the agent under test could edit. Re-running with the pristine test restored caught the agent rewriting its own grading test on one task — so the hole was real — and the lift replicated larger, not smaller. The earlier run's claim that "85 of the 100 tasks are hard enough to fail both arms" also did not hold: the re-run measures 24. The full erratum, the preserved tampering evidence, and what could not be re-verified are in bench/local_lift/RESULTS.md. Source: bench/local_lift/_reverify_n100/paired.json, PREREGISTRATION.md.
SWE-bench Verified — the strongest external evidence, and it survived a replication designed to kill it. Four pre-registered runs on django/django slices, graded only by the official swebench 4.1.0 harness in Docker — never self-reported.
Run 2's +15.8% was a 3–0 sweep on three informative pairs, and the pre-registration gave it a one-in-three chance of being exactly that — a lucky sample, with the retraction pre-committed. Run 3 tested it on 41 instances whose outcomes we had never seen, changing nothing else. The effect reappeared (+9.8%, inside the registered +5-to-+20 band) on a slice that proved harder than run 2's. Across both, discordant pairs run 9 for Chimera against 2 (p ≈ 2.6% under the null).
The mechanism replicated, and it is the interesting part. A fourth run restored the middle arm (plain scaffold, no diff-gate) on the same 41 instances, so all three differ by exactly one component. All three edit at the same rate (27–28 patches of 41); what changes is how often the edit is right:
Both components contribute, in roughly equal halves (+4.9% each, neither significant alone) — which contradicts our own registered prediction that the scaffold would carry most of it, and withdraws a run-2 reading that the diff-gate "is not what produced the gain". The retraction is in RESULTS.md; the tidy additivity is not claimed as a measured 50/50 split, since each comparison rests on 5–6 discordant pairs.
⚠️ Read honestly: the out-of-sample primary is NOT significant. The significant number is the pooled secondary, pre-registered as secondary precisely because it mixes seen with unseen data — it is not promoted to headline now that it crossed the line. And 48.3% is NOT a SWE-bench Verified score: a deliberately easy, single-repo slice; a real score needs the full 500. Run 1's exact zero is published unchanged, and run 2 shipped the retraction it earned (the mechanism we had claimed for its empty patches was wrong — the cure was the step budget). Source: bench/swe_bench/RESULTS.md, PREREGISTRATION.md.
Terminal-Bench (humbling). Pre-registered N=40 A/B on the official benchmark, same model both arms (deepseek-chat-v3.1): 7.5% → 2.5% with the scaffold, paired Δ −5.0pp, 95% CI [−5.0%, +1.6%] — not significant. The scaffold did not lift an already-competent model (this isn't the weak "goldilocks" regime where scaffolding helps); both arms sit at a variance-dominated floor. Source: bench/terminal_bench/RESULTS.md.
Does accumulated learning help? Seven runs say: not provably (and one positive was retracted). The flywheel — skills gated on recurrence + a transfer test, anti-pattern cards, persistent memory — was measured across seven pre-registered runs. Run 6 produced the series' only positive (a significant +6.7% on the within-family transfer metric); run 7, with more power, cut it to +2.0% and non-significant — so it was retracted, exactly as the pre-registration committed. The honest verdict: no adequately-powered run shows accumulated learning improves task success, and the blocker is the instrument. This paragraph used to say that three attempts to author a suite in the informative 40–60% band all came out at 84–92%; that was false, and the file it cited held the number refuting it — the first attempt's control landed at 50%, dead in band. What varies between suites is whether a fix can be edited in or must be invented, which no difficulty specification captured (bench/scenarios/PREREGISTRATION-v3.md). "It gets better the more you use it" remains unevidenced. Source: bench/learning_lift/RESULTS.md.
Significant internally (on our own hard suite). On real repos, replicated out-of-sample and significant only when pooled — the honest label, not the flattering one. Humbling on Terminal-Bench. The learning claim is retracted. We publish all of it, we write down the branch where the result kills our own claim before running, and we don't re-roll for significance — that would be p-hacking.
Two "more models = better" instincts, stress-tested on real runs (predictions registered before each run, wins and losses published — see bench/):
Fusion is reserved, not default. On a 12-task reasoning suite the mid tier alone scored 100% at 846 tokens; full fusion also scored 100% — for 9,526 tokens (~11×). So fusion sits behind a cheap→gate→mid→fusion cascade that escalates only when a free gate fails, reaching ~mid quality at ~1/12 of fusion's cost. Its own registered criterion — cascade ≥ mid-only pass rate at materially lower cost — was not met: the cascade landed at 91.7% against the mid tier's 100%, because on this suite the mid tier already saturates and leaves no headroom. The one miss is instructive: a free lexical gate cannot catch a confident-wrong answer (bench/cascade/RESULTS.md).
Hierarchical orchestration wins only where it should — and by a law we can write down. chimera orchestrate splits a task across scoped workers instead of one big context. A single agent re-sends every document on every turn; scoped workers read each once. So the token saving scales as (D−1)/D in the number of documents D — confirmed on real runs to <0.2%:
The saving holds flat as the conversation lengthens and rises with document size toward the same limit (full sweep, 3 axes). And where it doesn't pay — a single-shot task with one turn — the classifier detects that and falls back to a single agent (that run cost +47% more tokens; we published it too).
The honest asterisk. These are token counts. With prompt caching a provider bills the single agent's repeated documents at ~0.1×, so the dollar win is smaller — and past a few turns it can invert (independent workers re-pay cold context the single agent caches). We ship the model that quantifies this rather than quietly claiming the token number as a dollar number.
An agent is a model plus everything around it. That surrounding machinery is what decides whether a long run stays useful, and most of it is invisible until it fails. Chimera measures its own:
You need Python 3.11–3.13 (python.org — check yours with python --version) and, for a from-source checkout, uv (a fast Python installer).
pip install chimera-agent That gives you the chimera command. (The examples below use uv run chimera for a from-source checkout — with a pip install, just run chimera ….) To hack on Chimera itself, clone the repo:
git clone https://github.com/brcampidelli/chimera-agent.git cd chimera-agent uv sync --extra dev 2. Add one AI provider key. The easiest is an OpenRouter key — one key unlocks 100+ models.
cp .env.example .env # open .env and set, for example: CHIMERA_OPENROUTER_KEYS=sk-or-... Or let uv run chimera init do it: it creates .env, takes the key, and points you at a real example to try.
uv run chimera chat # have a conversation (it remembers) uv run chimera run "Explain what you can do in 3 bullets" uv run chimera fuse "What's the best way to learn to cook?" --show-panel # see several models blended uv run chimera solve "add a hello() function to app.py and a test for it" --verify "pytest -q" Run it on a server (so it works 24/7):
docker compose up -d # gateway + scheduler; restarts automatically Full guide (Docker or systemd, scheduling, backups, security): docs/deploy.md.
5. Do something real in 5 minutes: email triage. Point Chimera at your inbox and get a ten-second digest — read-only, classify URGENT / PERSONAL / NEWSLETTER / COLD-SALES, and optionally schedule it every morning:
uv run chimera workflow examples/email_triage/triage.yaml -w ./triage_workspace Setup + daily scheduling + honest caveats: examples/email_triage/README.md.
New here? Chimera works right after pip install chimera-agent + one AI key. A few abilities (reading documents, hearing audio, making charts, downloading video…) need a small optional package — called an "extra" — and some need a service key. This section lists every ability, exactly what to install, and the command to try it. No prior knowledge assumed.
pip install 'chimera-agent[full]' # every non-GPU feature below, one command Audio and video also need ffmpeg on your computer: macOS: brew install ffmpeg · Ubuntu/Debian: sudo apt install ffmpeg · Windows: choco install ffmpeg. Prefer a lean install? Keep pip install chimera-agent and add only the extras you want (see the "Needs" column). Using Docker? The official image already has everything below built in.
Needs = what to add: — works in the core install · [extra] = pip install 'chimera-agent[extra]' · key: X = a provider key you put in .env.
Install extras individually if you want a lean setup — messaging, mcp, documents, media-dl, stt, data, viz, youtube (all bundled in full), plus the GPU-only imagegen-local and train. Example: pip install 'chimera-agent[documents,stt]'.
First time here? The four steps in Quickstart above are the whole setup — install, one key, chimera doctor, chimera chat — and from there any command in the table just works. Full command reference with copy-paste examples: docs/usage.md.
Install trouble? Chimera itself is pure Python (a wheel for every OS), but a transitive dependency can occasionally make pip try to build from source (asking for Rust/Cargo) if it backtracks onto an older version lacking a prebuilt wheel for your platform. If you hit that: upgrade pip first (python -m pip install --upgrade pip), and if it persists, use Python 3.12/3.13 (which have the widest wheel coverage). A clean pip install is smoke-tested in CI across Linux/macOS/Windows × Python 3.11/3.13.
Give Chimera a task; it plans (surfacing the most relevant built-in skills), thinks (blending models when the problem is hard), acts with tools — reading and scraping the web, editing files, making charts — checks its own work and keeps only what passes, then learns from the result, feeding memory and new skills back into the next task.
flowchart TD U([You: a task or a question]) --> P[Understand & plan] P --> Q{Is it a hard problem?} Q -- yes --> FUSION[Ask several models
· a synthesizer writes the best answer] Q -- no --> ONE[Use one fast model] FUSION --> ACT[Act: use tools, files, read & scrape the web,
make charts, or delegate to sub-agents] ONE --> ACT ACT --> V{Did it work?
run tests / checks} V -- yes --> KEEP[Keep the change] V -- no --> REVERT[Undo & retry with the lesson learned] REVERT --> ACT KEEP --> LEARN[Learn: save what matters to memory,
turn repeated work into a reusable skill] LEARN --> U MEM[(Long-term memory)] -. recalls .-> P LEARN -. writes .-> MEM SKILLS[(Skill library)] -. surfaces relevant skills .-> P GOV[[Safety check on every action]] -. guards .-> ACT Commands Every command is chimera (or uv run chimera before installing).
chimera init # first-run setup: .env, one provider key, a real example chimera doctor / models / features # check setup, list models, see optional capabilities chimera chat # interactive assistant that remembers across turns chimera assist # the same chat, cheap by default (tier cascade) chimera tui # full-screen terminal app; chimera sessions lists what to resume chimera run "PROMPT" --image pic.png # one-shot answer (can read an image) chimera fuse "PROMPT" --show-panel # blend several models: panel -> judge -> synthesizer chimera solve "TASK" --verify "pytest -q" --isolate # do a task; keep the change only if the check passes chimera solve-batch "TASK A" "TASK B" # several tasks at once, each in its own git worktree chimera approve # answer a question the agent parked, from anywhere; omit the id to list them chimera crew "TASK" --mode supervisor # a team of specialists tackles one task chimera crew-isolated "TASK" -W "name:role" --verify "..." --synthesize # team, each in its own isolated copy chimera explore "where is login handled?" # find the right files/lines, get a short answer chimera deliver "a launch plan" -o plan.md # produce a polished document chimera serve --cron [--discord|--telegram|--slack|--signal] # run as a service: chat bot + scheduler chimera cron add "brief" "0 8 * * *" "Summarize the news" # schedule recurring work chimera memory add / graph / consolidate # long-term memory: save, relate, tidy up chimera kanban add/board/run # a task board that dispatches work to the agent chimera workflow flow.yaml # run a repeatable automation described in a file chimera orchestrate "TASK" --dry-run # split across scoped workers; --dry-run costs nothing chimera project start spec.yaml -w . # run a whole project to completion, asking before risky steps chimera skills-import skills/ # load a curated skill card (data, not code) chimera skills-stats / skills-pending # learned skills: usage, win rate, what awaits review chimera migrate --apply # import settings, skills, and memory from another agent tool chimera evolve status / tune / recipe # optional: self-optimize; prepare data to fine-tune a model chimera fusion-bench / skillcard-bench / schema-bench / sandbox-bench # honest A/B benchmarks: measure cost, quality & side effects before trusting a feature chimera redteam # the injection corpus through the governance stack; no key needed chimera pet new --name Chimi # adopt a small virtual companion :) See the Usage Guide for every command with copy-paste examples.
Chimera is a Python package with clearly separated parts, so you can understand or extend any piece on its own:
chimera/ core/ the agent loop: plan, act, verify, keep-or-undo, and isolated work copies fusion/ the "many minds" engine: panel -> judge -> synthesizer + the smart router memory/ short-term / recent / factual / about-you memory + a relationship graph skills/ the built-in skill library and how relevant skills are found evolution/ learning new skills from success, and the experience it learns from governance/ the safety kernel (allow/warn/review/block), audit log, and change controls orchestration/ teams of agents: roles, crews, isolated parallel workers, unified reports ecosystem/ advanced self-improvement: agents that design agents, optional model training kanban/ a task board that hands cards to the agent workflow/ describe a repeatable automation in a simple file and run it eval/ the honest-benchmark harnesses: SWE-bench, Terminal-Bench, injection red-team tools/ built-in tools (files, shell, web, search) + code execution scrape/ fully-rendered page reads, scraping and crawling rag/ semantic retrieval over a repository — the question that has no exact string sandbox/ run tools locally or inside a locked-down container integrations/ connect external tools and any web API scheduler/ recurring jobs + the daemon that fires them on time migration/ bring your setup over from other agent tools providers/ one interface to every model, with fallback and key rotation interface/ the shared conversation engine (used by chat, the app, and bots) server/ the messaging gateway and HTTP endpoint api/ the HTTP+SSE API the desktop app talks to acp/ the Agent Client Protocol, both ways: drive another coding agent, or be driven by an editor lsp/ diagnostics from a real language server, so the editor agrees with CI complete/ inline completion — the grey text ahead of the cursor proc/ long-lived child processes: lifetime, framing, supervision tui/ the full-screen terminal app cli/ the `chimera` command See docs/architecture.md for the full design.
Chimera's goal is simple: an AI agent that anyone can run, that reasons better by combining many models instead of trusting one, that truly gets better the more it's used, and that stays safe and fully open along the way.
Most AI tools today are either smart-but-forgetful (they lose everything when the chat ends) or capable-but-closed (you don't control them). And many that try to "improve themselves" quietly get worse over long runs. Chimera is our attempt at a different path:
It's early (alpha), and honesty matters to us: it's not yet proven in heavy production use. If that vision excites you, we'd love your help getting there.
Have a question, an idea, or want to contribute? Join us on Discord — everyone's welcome.
Prefer Reddit? Follow r/ChimeraAgent for updates and discussion.
Chimera is free and open-source, built in the open. If it's useful to you, you can help fund its development with a one-time donation — every bit helps and is hugely appreciated. 💜
Apache-2.0 — free to use, change, and build on.
bench browser data desktop dev documents full imagegen-local mcp media-dl messaging otel secrets stt train viz viz-vega youtube
ai-agent autonomous-agent llm llm-fusion multi-agent self-evolving
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.




