open source · Apache-2.0 · Node 20+

Every coding agent.One toolkit.

One API and one CLI for the coding agents you already have. Your page breaks, your agent fixes it: in the terminal, in the browser, or right inside your app.

Star on GitHub →
87 seconds, recorded live

Your page breaks. Your agent fixes it.

The Vite overlay fixes a broken page, run --verify sends a failed test back to the agent, and an agent inside an app waits for you to press Approve. Real Claude Code and Codex, no mocks.

genaicode/agents

Swap the agent. Keep the code.

Every driver gives the same event stream and the same result. Pick one: only one word changes. The agent keeps its own login, billing and sandbox; genaicode picks no model and adds no agent loop of its own.

one engine, many front ends

Wherever you work, the wolf comes along.

genaicode chat · genaicode ui

Chat with any agent, in the terminal or the browser

A terminal UI and a browser UI on 127.0.0.1, sharing one session. Type /web and carry on in the browser; press Enter there to come back.

  • Switch agents mid-conversation: the new one gets a recap and the transcript
  • Steer a running task, queue follow-ups, !command shell mode
  • Ask first, Auto-approve or YOLO
$ npx genaicode chat --web
genaicode/vite · createDevOverlay

The wolf lives in your dev server

One plugin. Build and runtime errors show up as a badge; one click hands them to your agent, and hot reload shows the fix before you've switched windows.

import genaicode from 'genaicode/vite'; export default defineConfig({ plugins: [genaicode()] });

Not on Vite? createDevOverlay brings the same panel to any Node dev server.

The genaicode panel over a Vite app after the agent fixed two errors
genaicode/app-agent · <AppAgentChat>

An agent inside your own app, with your tools

Give the agent your app's actions as tools. Anything that changes data waits for a person to press Approve, right in the chat.

  • createAppAgent on the server, <AppAgentChat> in React
  • Approvals, steering, budgets and limit chips built in
A shop admin app with the agent asking to approve a refund
genaicode/react · <AgentChat>

A chat component that already speaks agent

Tool steps, file edits, approvals, Stop and Steer, folded step groups. Theme it with CSS variables and drop it in a drawer.

<AgentChat session={session} foldSteps />
AgentChat in a dark themed drawer, waiting for approval
genaicode embed · genaicode acp

Let your agent embed it. Even in Godot.

genaicode embed asks your own agent to wire genaicode into the project, whatever it is. Editors, desktop apps and game engines in any language talk to it over the Agent Client Protocol.

$ npx genaicode embed $ npx genaicode acp # for any ACP client
The genaicode panel embedded into a small game page
The genaicode dock inside the Godot editor
artifacts

The agent shows you, not just tells you

An agent can publish a page, a report or a chart. It opens right in the chat, in a locked-down sandbox.

A coverage report the agent published, shown inside the genaicode chat
run --verify

Verify and repair

Runs your check after the agent. A failure goes back to the agent for another try. runWithVerify in code.

--max-cost

Budgets and limits

Token and cost caps per task or per session, and plan rate limits shown as they come.

failover

Handoff between agents

One agent out of quota? The next one picks up with a recap and the full transcript.

permissions

Approvals and sandbox

{ approval, sandbox } or 'yolo', mapped to each agent's own flags. Refuses what it can't honor.

mcpServers

MCP per task

Attach MCP servers to one task. Header secrets stay out of argv.

steer()

Steer a running task

Add instructions while the agent works: Claude, Antigravity, and the live Codex and Muse drivers.

how it fits together

Your page. Your machine. Your agent.

browser · terminal · editor

Your app

the page you're building
+ the wolf overlay
(chat, errors, approvals)

runs locally

genaicode

one event stream
approvals · budgets · verify
any agent

agent CLI · its own login

Claude Code

or Codex, Copilot, Gemini,
Cursor, opencode, Muse,
Vibe, Antigravity…

genaicode runs on your machine. No extra cloud, no extra bill: the agent uses the login you already have.

quick start

Thirty seconds to the first fix.

Node.js 20+. The agent CLIs are yours to install and log in to; npx genaicode agents lists what it finds.

$ npx genaicodechat with your agent in this terminal
$ npx genaicode uithe same chat in your browser
$ npx genaicode run --verify "npm test" "fix the failing tests"loop until the tests pass
$ npx genaicode embedlet your agent wire genaicode into your app
$ npm install genaicodethe library: /agents, /vite, /react, /app-agent
The genaicode wolf

Bring your own agent.
We'll bring the wolf.

GitHub → npm