Stage: A Browser AI Terminal With 16 Engineering Agents
General-purpose chat assistants are good at answering questions, but software work has a shape: you take a problem from intake to investigation, then a plan, an implementation, QA and a release. A blank chat box does not remember that shape, so I end up retyping the same framing prompts. I built Stage to fix that. It is a browser-based AI terminal where each role in a software team is a separate agent with its own guided workflow, and it does not require a paid subscription to use.
Why I built it
I work as a software architect and build side projects across web, games, AI tools and Android. On any given day I switch between roles: writing a PRD, reviewing a pull request, planning a sprint, threat-modeling an API. Each role needs a different mindset and a different checklist. I wanted one place where I could pick the role, follow a sequence of phases, and keep the conversation for that role separate from the others.
I also wanted the cost barrier to be low. If the tool only worked with a paid API key, I would hesitate to share it. So I made a cascade of free models a first-class path, not an afterthought.
What it does
Stage has 16 specialised agents, grouped in a collapsible sidebar under three headings:
- Engineering: Software Development, Frontend, Backend, Full Stack, DevOps / Platform, QA / Test, Security, Mobile, Data and ML / AI engineers.
- Product and Design: Product Manager, UX / Product Designer and Technical Writer.
- Architecture and Leadership: Software Architect, Engineering Manager and Tech Lead / Code Reviewer.
Each agent has pre-built phase workflows, between 5 and 10 phases depending on the role. The full Software Development agent has 10 and walks from PRD to production. The Frontend agent has 5 phases and focuses on UI components, CSS, accessibility and performance. Typical phases look like Intake, Investigate, Plan, Implement, QA and Ship.
Around the agents there are a few conveniences:
- Token-by-token streaming with live markdown rendering.
- Per-call and session-total input and output token counters.
- 12 built-in slash commands such as
/status,/plan,/implementand/ship. - A Markdown transcript export for the active agent's chat.
- An API key modal where a user can supply their own OpenRouter key.
How it works
The backend is Node.js 20+ with Express and a WebSocket server, written in TypeScript 5.3. The agent registry and category definitions live in their own module, so adding or editing an agent is a data change rather than a logic change. The frontend is plain HTML, CSS and JavaScript with no framework and no build step for the UI. Only the backend gets compiled.
Two modes, one frontend
The browser first tries to talk to the backend over a WebSocket. If a backend is reachable, requests go to Anthropic Claude as the primary provider (Claude Opus 4.6 with adaptive thinking, when an Anthropic key is configured), with OpenRouter as the fallback. If no backend is reachable, the frontend switches on its own to calling the OpenRouter API directly from the browser. That second path is what lets the whole public/ folder be deployed as a static site, for example on GitHub Pages.
The free model cascade
When there is no Anthropic key, Stage walks a list of 12 free OpenRouter models, best-first. The list starts with large models such as Qwen3 Coder (480B), Nemotron 3 Ultra (550B) and Hermes 3 (405B), and ends with Llama 3.2 (3B) as a last resort. If a model answers with a 429 (rate limited) or 401 (unauthorized), Stage moves to the next one. A status note appears in the chat bubble when the cascade advances, so the user knows why the answer might come from a different model than expected.
This pattern is reusable. Free tiers are unreliable by nature: models get rate limited or disappear. Treating the model as an ordered list of candidates, rather than a single constant, turns those failures into a short delay instead of an error screen.
What I learned
- Roles beat one big prompt. Splitting the work into 16 agents with their own phases keeps each conversation focused. Defining agents as data in a registry made it simple to keep that many of them consistent.
- Design for a missing backend. Building the direct-to-OpenRouter path meant the same UI runs in two places. The cost is that the client has to know how to talk to the provider, which duplicates some logic that the server otherwise owns.
- Surface fallbacks to the user. Silent failover is convenient, but showing a note when the cascade advances avoids confusion about why response quality changes between messages.
- Be careful with keys in static mode. A static site has no server to hide secrets behind. Stage lets users enter their own OpenRouter key through the Key button in the toolbar, and falls back to a shared default if they do not. Anything shipped in browser code can be read by anyone, so a user-supplied key is the better option whenever it is practical.
- Skip the framework when the UI is simple. A chat view, a sidebar and a few modals did not need a build pipeline. Keeping the frontend vanilla means the static deployment is just a folder.
Try it
The live version is at https://stage-ir.vercel.app.
To run it locally, clone the repo and run npm install. Copy .env.example to .env and set either an Anthropic key or an OpenRouter key; you can leave the Anthropic one blank and Stage will use the free cascade. Then run npm run build and npm start, and open port 3000 in your browser. For development with live reload, use npm run dev.
Conclusion
Stage is my attempt to give each engineering role its own structured workspace in the browser, with a fallback path that keeps it usable without paying for an API. The most reusable ideas are small: keep agents as data, treat models as an ordered list that can fail, and let the same frontend run with or without a server. If you try it and have feedback, you can reach me at hello@iramesh.com.