Skip to content

About

stop juggling model providers, let claude code interface with them all!

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Agent Smith

Claude delegates. Other models work. You see it happen.

Agent Smith brings Codex, OpenCode, agy, and Kimi into Claude Code's delegation workflow—with native task-list entries, live progress above your prompt, and worker transcripts inside your terminal.

  • Delegate across providers. Ask Claude to hand off a review, implementation, or verification task in plain English.
  • Keep working. Workers run in the background. Claude gets notified when they finish, without repeatedly asking for status.
  • See what they're doing. Follow tool calls, see which workers have gone quiet, and inspect failures as they appear. Open /forge for the details.

Have Codex review the changes on this branch. Call the worker Ada.

Screenshot 2026-11-07 at 12 06 45 PM

Install Agent Smith

Prerequisites:

  • Node.js 22.18+
  • A current Claude Code
  • At least one authenticated worker CLI: codex, opencode, agy, or kimi (MoonshotAI/kimi-code). Agent Smith uses those CLIs and their configured accounts.

Install for all your projects:

claude plugin install agent-smith --marketplace sgathrid/agent-smith

Or from inside Claude Code: /plugin install agent-smith --marketplace sgathrid/agent-smith.

Restart Claude Code. The plugin bundles its runtime; no clone or npm install is needed.

Single repository? Run the same command inside the repo with a scope:

  • --scope local — just you, in this repository.
  • --scope project — everyone who clones it (commit .claude/settings.json).

Pick one scope. Installing in two means two copies to keep updated.

If your Claude Code doesn't recognize --marketplace

Add the marketplace, then install the plugin:

/plugin marketplace add sgathrid/agent-smith
/plugin install agent-smith@agent-smith

The combined install requires Claude Code v2.1.275+ inside a session or v2.1.292+ from the shell. See Claude Code's plugin installation guide.

Install Construct (optional)

Construct is a separate plugin in this marketplace: user-invoked skills for understanding, designing, reviewing, debugging, and verifying code in any repository. Neither plugin requires the other; Construct's skills ask for a reviewer on another model when useful, and Agent Smith is one way to provide one.

claude plugin install construct --marketplace sgathrid/agent-smith

Restart Claude Code. Commands appear as /construct:<name>; type /construct:load with your task and it picks a skill for you. See construct/README.md for the full skill list and for installing into Codex or OpenCode.

Try it

Start with a review in a repository that has changes:

Use Agent Smith to have Codex review my diff for bugs and missing tests. Call the worker Ada. Don't change any files.

Ada appears in Claude Code's task list and the live band above your prompt. Keep talking to Claude while the review runs. If an agy worker starts sub-agents (such as a /swarm team), they appear under its row and in /forge (read-only).

To… Do this
See this session's workers Run /forge (/forge all for the whole repo)
Inspect Ada's activity and report Run /forge Ada
Open a worker from the live band Press its number (1–4) with an empty prompt
Inspect a tool call Press Enter on its row in the worker view

When Ada finishes, Claude receives a completion notice and can read the report. Continue the same worker conversation:

Ask Ada for a minimal reproducer for her top finding.

Follow-up vs. steer: Follow-ups queue a message for a running worker (read at its next step on Claude, or when the turn ends on other providers) or start a new turn on an idle one. Steers interrupt a running worker right away.

More to try

Name the provider or model you want. Claude finds the installed providers and their models; you don't write tool calls or pipeline JSON.

Build, review, fix:

Have agy implement 30-minute idle session expiry. Then have Codex review the diff, and send the findings back to the original agy worker to fix. Require npm test to pass.

Verify a change with a specific model:

Have GPT-6.1-Sol run the relevant tests for this change and report any failures. Don't edit the code.

Get a second opinion:

Have Kimi review the diff for edge cases we missed. Don't edit anything.

When you attach checks such as npm test, Agent Smith runs them after the worker exits and records whether they pass. A finished process and accepted work are tracked separately.

Configuration

Agent Smith

Claude models are off by default. Whether requested through the claude provider or as a Claude model served by agy, opencode, or kimi, Claude models are hidden from list_capabilities and refused on spawn, follow_up, and steer (never rerouted to another model). Set AGENT_SMITH_ALLOW_CLAUDE=1 in the environment that starts Claude Code to allow them.

Common environment variables:

Variable Effect
AGENT_SMITH_ALLOW_CLAUDE=1 Allow the claude provider and Claude models served by other providers
AGENT_SMITH_CONFIRM_UNRESTRICTED=1 Prompt for confirmation before running codex, claude, or opencode with unrestricted: true
AGENT_SMITH_<PROVIDER>_BIN Override binary path (AGY, CODEX, OPENCODE, KIMI, or CLAUDE)
AGENT_SMITH_CODEX_SANDBOX Force Codex sandbox (read-only, workspace-write, or danger-full-access)
NO_COLOR=1 Disable color in the live band and /forge (glyphs remain)
  • Worker permissions: Workers use their provider's permissions. agy runs unrestricted by default (opt out with unrestricted: false or AGENT_SMITH_AGY_RESTRICTED=1; headless agy cannot prompt, so a restricted agy worker silently denies its tools). kimi is always unrestricted (its print mode cannot prompt or be restricted, and read-only modes are not enforced). Explicit unrestricted: true on other providers runs without prompting unless AGENT_SMITH_CONFIRM_UNRESTRICTED=1 is set. See provider permissions.
  • Model aliases and role defaults: Optionally define named aliases and per-mode roleDefaults (implement, review, moderate, verify) in <repo>/.agent-smith/models.json or ~/.agent-smith/models.json. Read on every call; no restart needed. See models.json.
  • State: Worker jobs, reports, and pipeline runs live in <repo>/.agent-smith/. See where state lives.

See docs/CONFIGURATION.md for all environment variables, timeouts, and MCP tools.

Construct

Construct has no configuration files or environment variables; skills run only when invoked. Optionally paste construct/stance.md into your repo's AGENTS.md or CLAUDE.md. See construct/README.md.

Update and uninstall

Update in the scope you installed in, then restart Claude Code.

In a session, open /plugin, go to Installed, select Agent Smith in that scope, and choose Update now. Or from your shell (refresh the marketplace first):

claude plugin marketplace update agent-smith
claude plugin update agent-smith@agent-smith --scope user    # all projects
claude plugin update agent-smith@agent-smith --scope local   # inside the repository
claude plugin update agent-smith@agent-smith --scope project # inside the repository

Always pass --scope. Without it, running inside a repository can update that repo's install and leave your user-wide copy behind.

  • Auto-update: run /plugin, open Marketplaces, select agent-smith and choose Enable auto-update.
  • Update toast: Without auto-update, Agent Smith shows agent-smith v<latest> available · /plugin on session start (skipped when CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC is set).
  • Upgrading from pre-0.5.0: Replace resume_job and steer_job with follow_up and steer in any Claude Code permission allowlist.
  • Uninstall: claude plugin uninstall agent-smith@agent-smith --scope <scope> (run inside the repository for local or project).
  • Construct: the same commands with construct@agent-smith in place of agent-smith@agent-smith. It versions separately and shows no update toast.

Troubleshooting

  • Update says you're current, but the toast keeps appearing: Refresh the marketplace (claude plugin marketplace update agent-smith), then run claude plugin update again in the same scope.
  • Provider unavailable: Confirm its CLI runs and is authenticated in the shell that launches Claude Code, then restart Claude Code. From a source checkout, node scripts/agent-smith.mjs doctor checks CLI compatibility (not authentication or model access).
  • No progress band or completion notice: Restart Claude Code after installing or updating and verify Agent Smith is enabled in /plugin.

How it works

Agent Smith is a Claude Code plugin: a delegation skill, an MCP server that runs external provider CLIs, and an integrated terminal UI (native task list, live band, and /forge). Workers are external CLI processes, not Claude Code's built-in Agent sessions.

When running parallel workers that edit code, give each worker its own git worktree so edits do not collide.

Develop Agent Smith

git clone https://github.com/sgathrid/agent-smith.git
cd agent-smith
npm install
npm run setup:claude
claude

setup:claude builds and validates the plugin, enables it in .claude/settings.local.json, and checks provider CLI compatibility. To use your local build in another repository, run from this checkout and restart Claude Code there:

node scripts/agent-smith.mjs setup --local --repo /absolute/path/to/project
npm run verify         # Typecheck and node tests with fake providers; no model calls
npm run test:plugin    # Validate and test the mod under Claude Code's engine
npm run smoke          # End-to-end MCP smoke test with fake providers
npm run build:plugin   # Rebuild the plugin after source changes
npm run bump           # Raise version (patch; -- minor, -- major) and rebuild

Restart Claude Code to load a rebuilt plugin. For real-provider testing, see docs/SMOKE.md. Before opening a PR that changes the plugin, run npm run bump and commit the rebuilt builds/; see AGENTS.md for the release rules.

Reference

  • Configuration — models.json, permissions, environment variables, MCP tools, and standalone CLI.
  • Terminal UI — live band, /forge views, keyboard controls, and session tracking.
  • Architecture — execution, progress, acceptance checks, and completion notices.
  • Construct — optional engineering-habits skill pack.

MIT licensed.

About

stop juggling model providers, let claude code interface with them all!

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages