GenAIcode puts Claude Code, Codex and other coding agents behind one interface for your app
An open GitHub project wraps the coding agents already on your machine in one API, so developers can script them or embed them inside their own apps.
The short version
- One API and CLI drive nine coding agents, including Claude Code, Codex, Copilot CLI, Cursor and Gemini CLI.
- A --verify flag runs your tests after the agent and sends failures back for another attempt.
- A Vite plugin adds an agent chat panel to a dev app, with a "Fix N errors" button.
- The agents keep their own logins and billing; you install and sign in to them yourself.
- Requires Node.js 20 or newer; the in-app overlay is for development only.
Why it matters
Coding agents have mostly lived in a terminal or an editor. This project shows a concrete way to put one inside a product, or to chain several in a script. It also makes the safety questions concrete: what the agent may touch, who pays, and who approves its actions.
One wrapper for many agents
GenAIcode is a project shared on Hacker News as a "Show HN" and hosted on GitHub. Its idea is simple. Developers now have many coding agents, each with its own command-line tool (a CLI, a program you run by typing commands). GenAIcode drives the ones already installed on your computer through a single interface.
The supported list in the project's page is long: Claude Code, Codex, GitHub Copilot CLI, Cursor, Gemini CLI, opencode, Muse, Mistral Vibe and Antigravity. You can switch between them with one flag, and the rest of the command stays the same.
As github.com reported on the project's page, the same drivers are exposed in several forms. These include a TypeScript code interface, a chat in your terminal or browser, a panel inside a Vite app, and an agent inside your own app. Vite is a popular front-end build tool.
Letting your tests decide when it is done
The headline example is a single command that runs the first agent it finds in the current folder and asks it to fix failing tests. It then runs your test command. If the check fails, the output goes back to the agent for another attempt.
That loop is called verify and repair. You can cap the number of extra attempts, and the exit code tells a script whether things worked: 0 for success, 1 if the agent or the check failed, 2 for a usage error and 130 if interrupted.
For programmers, the code interface gives every agent the same stream of events, such as a tool starting or a file changing, and the same final result. So a job, a bot or a CI step (an automated check that runs when code changes) can use any agent without a separate parser for each vendor.
You can also steer a running task with new text, and answer permission prompts. The project says each driver translates your chosen approval and sandbox settings into that agent's own flags. A sandbox is a restricted environment that limits what the agent can touch. If an agent cannot honor a setting, the driver refuses it instead of ignoring it.
From a terminal chat to a panel in your app
Beyond scripting, GenAIcode offers a chat that runs in the terminal, in the browser, or in both on one session. Prompts, approvals and stops from either side show up in both. Follow-up prompts continue the agent's own session, so you can say something like "now add a test for that." A wolf mascot barks when the agent needs approval or finishes.
With the Vite plugin, a running development app gets a small wolf in its corner that opens the chat in a panel. The agent works in the project's root folder. The wolf counts the page's errors, such as build errors and uncaught exceptions, and a "Fix N errors" button sends them to the agent as one prompt.
Other Node servers, including Express and webpack, can get the same overlay through a function in the package. A React component, AgentChat, is also offered for teams that want to build their own panel. Your server owns the session, its tools and its prompts.
There is even an embed command. It starts your own agent with instructions for wiring GenAIcode into your project. The agent reads the project and picks the best route, installs the package, edits the config and runs your checks. It does not commit the changes.
An agent that works the app itself
The most ambitious piece is an in-app agent for local apps you run on your own machine, such as an admin console, an internal tool or a game editor. The user chats with an agent CLI they already have. The agent operates the app through tools the app offers over MCP, a protocol for giving agents tools to call.
Changes made through those tools wait for the user's approval. In dev mode the agent can also edit the app's code and propose a commit.
- Credentials: the agent uses its own login and billing. A helper can strip your app's model API keys from the agent's environment.
- Access: the browser chat listens only on the local loopback address and requires a random access token.
- Scope: the Vite and overlay features are for development, not production builds, and the overlay stays off if no agent CLI is found.
What to check before you adopt it
The source we have is the project's own page, which was cut off partway through, and we have not run the code. Details such as the licence and the full set of per-agent options are not covered in what we saw.
The project does state that it does not choose a model or retry it for you, and that any sandbox is the agent's own. So the safety of an embedded agent depends mostly on the agent and the permission settings you pick. Anyone adding one to a real product should decide what files and commands it can reach, and keep a record of what it did.
What to watch
- How the project's permission and sandbox settings hold up across the different agents it supports.
- Whether the in-app agent pattern moves from local developer tools into products that other people use.
- What licence and long-term maintenance the project settles on, since neither is clear from the page we saw.
Try it
In a throwaway project with no real credentials, run npx genaicode agents to see which coding agents it finds, then try the --verify option on a small failing test.
Sources and links
- Reportinggithub.com: the article we sourced
Liked it? Say why
Add a line for other readers.
No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.
Listen to the AI Wire headlines
Listen to the AI WireListen to our daily AI shows every morning: on your commute, in the shower, wherever you are
Listen to the daily showsFirst reported by github.com · Read the original. Written by the SI Agent News Desk from the reporting above.Written with AI from the source above. Every number is checked against the source. Spot a mistake? Corrections.
