amicus
Give your coding agent a second opinion from a different model.
When you're about to commit to a design, stuck on a bug after two fixes, or about to call risky work done, it helps to ask someone else. amicus lets the agent you're already working with ask Codex, Claude or Pi (which reaches models from many providers) without leaving your session. It is one MCP server: you pick the model per request, rather than installing and learning a separate tool for each.
You can ask another model to:
- Consult: give a read-only second opinion on an approach, a bug or a design.
- Review: review your changes in git, with each finding tied to evidence.
- Delegate: implement a task in a throwaway git worktree and hand back a diff. amicus never applies it; you read it and decide.
- Adversarial review: attack a plan, claim or decision before you commit to it.
Long jobs can run in the background while you keep working.
Install
You need macOS or Linux, Python 3.11 or newer, uv, and the CLI
for each model you want to use (codex, claude, pi), installed and logged in. amicus drives
those CLIs; it never talks to the providers itself and stores no credentials.
Claude Code
/plugin marketplace add briandconnelly/amicus
/plugin install amicus@amicus
Codex
codex plugin marketplace add briandconnelly/amicus
codex plugin add amicus@amicus
Start a new session afterwards. The plugin brings the server and a skill that teaches your agent when and how to use it.
Any other MCP client
Point your client at the same command the plugins use, pinned to a published release:
{
"mcpServers": {
"amicus": {
"command": "uvx",
"args": ["--from", "git+https://github.com/briandconnelly/amicus.git@v0.18.0", "amicus-mcp"],
"env": { "AMICUS_BACKENDS": "codex,claude" }
}
}
}
Set AMICUS_BACKENDS to the CLIs you have installed. Most clients take environment variables in
an "env" object like this one; check your client's documentation.
If your client doesn't pass a working directory, your first calls look like this:
- Call
amicus_backendswithdetail: "full"(free) to see which backends are installed and logged in, and what each one sends where. - Call
amicus_consultwithbackend,questionand an absoluteworkspace_root. Every paid tool needsworkspace_rootfrom such a client; the free discovery tools reject it. - If a result has
ok: false, branch onerror.code, and whenerror.repairis present, itsnext_stepsays what to do next.
Without the plugin you don't get its skill automatically. Set AMICUS_SERVE_SKILL=1 (from
0.17.0) and the server offers the same skill over MCP. Claude Code loads MCP skills in public
beta from v2.1.331, though not in every setup (ADR 0055
lists the exceptions); Codex can't load them yet.
Try it
Ask in your own words:
- "Which amicus backends are installed and logged in?"
- "Get a second opinion on this approach from Codex."
- "Have Claude review my current changes."
- "Delegate this task to Codex and show me the diff."
Start with the first one. It's free, and it tells you which backends are set up before
anything is spent. A backend is the CLI amicus runs (codex, claude or pi); you choose a
model through it.
What each backend can do
| Codex | Claude | Pi | |
|---|---|---|---|
| Consult, review | yes | yes | yes |
| Delegate | yes | no | yes |
| Adversarial review | no | yes | no |
These are amicus's choices, not limits of the models: Claude handles consults and reviews and has no delegate tool, and the dedicated adversarial critic runs only on Claude. You can still ask Codex or Pi to argue against a plan through an ordinary consult.
Pi has no default model, so name one per request as an exact provider/id (for example
openrouter/moonshotai/kimi-k3), or set AMICUS_PI_MODEL. Pi has its own setup details,
including provider keys and prepaid balances; see docs/PI.md.
What it costs, and where your data goes
- Asking a model spends that model's quota or credit. Discovery, previews and job management are free.
- What you send goes through the CLI you picked, to the endpoint it's configured for. A
backend can also read files on your machine beyond the project you point it at and send them,
so treat every call as sharing with that provider. Before your first paid call,
amicus_backendswithdetail: "full"describes what each backend can send and how. On Pi, abaseUrlin its own config can change the endpoint; seedocs/PI.md. - A delegated diff is never applied for you. It comes back for you to review and apply
yourself. That's a promise about the diff, not a sandbox: a Pi delegate runs shell commands
with no sandbox. Enabling a backend that can write also changes the approval prompts your host
shows; see
docs/MIGRATION.md. - Every paid call's full answer is saved on your machine, after best-effort secret
redaction, and it can quote what you sent; your inputs themselves are never written there.
It's kept so a background job can be fetched later, until
amicus_job_consume_resultremoves it, it expires (AMICUS_JOB_TTL, default 24 hours), or, once amicus has returned it, the per-workspace job cap evicts it to make room, so don't count on fetching a returned answer twice. A result nobody has fetched is never evicted; a new paid call is refused withjob_cap_reachedinstead. An expired record is cleaned up on a later job call, so an idle server can hold it longer. A diff you export withamicus_job_export_diffis yours to delete. ADRs 0035, 0038 and 0054 have the details. - Codex, Claude and Pi run with their own session history turned off.
Configuration
Most people set only AMICUS_BACKENDS, a comma-separated list of codex, claude and pi. If
you leave it unset, all three are enabled. Each backend also takes an optional model, reasoning
effort and binary path, and you can block requested model names with
AMICUS_DENY_MODELS. Every setting and its
default is in docs/CONFIGURATION.md.
Logs go to stderr, and AMICUS_LOG_FILE also writes amicus's own log to a file. To lower the
risk of your prompts leaking into logs, the MCP libraries' messages are limited to warnings,
stripped of message content, and never written to that file.
The tools
Your agent normally picks these for you. For reference, there are eighteen:
| Group | Tools |
|---|---|
| Discovery (free) | amicus_backends, amicus_capabilities, amicus_models |
| Ask a model (paid) | amicus_consult, amicus_review_changes, amicus_delegate, amicus_adversarial_review |
| Run in the background (paid) | the same four, each with an _async suffix |
| Preview (free) | amicus_review_changes_dry_run, amicus_delegate_dry_run |
| Jobs (free) | amicus_job_status, amicus_job_result, amicus_job_consume_result, amicus_job_export_diff, amicus_job_list, amicus_job_cancel |
amicus_capabilities lists every tool and error code; pass detail: "full" for each tool's
parameters.
Coming from codex-in-claude, moonbridge, or claude-in-codex
amicus replaces all three. docs/MIGRATION.md maps the old tool names and
settings onto the new ones.
Status and known limits
amicus 0.18.0 can serve the collaborating-with-amicus skill over the MCP skills extension
(AMICUS_SERVE_SKILL=1) for clients installed without the plugin, and supports pi 1.7. See
docs/MIGRATION.md for upgrade notes and
CHANGELOG.md for every user-visible change.
Known limits:
- A Pi delegate runs shell commands with no sandbox, and a command it leaves running in the background can outlive the run (#424).
- Backends from other packages can be installed but not yet enabled or called.
Contributing
Bug reports and pull requests are welcome. CONTRIBUTING.md explains how to
set up a checkout, run the checks and find your way around the design docs.
License
MIT. See LICENSE.
Metadata
Release files for amicus 0.18.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| amicus-0.18.0.tar.gz | 2.6 MB | With provenance | Details for amicus-0.18.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amicus-0.18.0-py3-none-any.whl | Python 3 | none | any | Details for amicus-0.18.0-py3-none-any.whl |
Total release size: 3.1 MB
Release files / amicus-0.18.0.tar.gz
| Download URL | amicus-0.18.0.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e86dc76061235502a97db87c7925a92170a6a57edda74495b9c8d19d43a6e3e
|
|
BLAKE2b-256 checksum How to use checksums |
cdbb2c5ea6409b30e5cb9495fe53fa011d98a6093d796a3d0c2af93cb47c2297
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / amicus-0.18.0-py3-none-any.whl
| Download URL | amicus-0.18.0-py3-none-any.whl |
|---|---|
| Size | 544.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17f68b39a9525a0a8d5773a63382a55ee8f4e10e2af88906fa44066645869bdd
|
|
BLAKE2b-256 checksum How to use checksums |
36ff1f65d0ef0ab954967b41a15da15f8d42f87b1ca40b3ccb5e9f74bd5ef102
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logSecurity for amicus 0.18.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for amicus-0.18.0.tar.gz
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 Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.