Project Overview
Agents Office is a visual workspace for AI teamwork. A PM agent turns a feature request into a dependency-ordered plan, delegates tasks in parallel to AI teammates, and summarizes their results. Teammates have user-defined roles, prompts, and models, so one team can mix Claude and OpenAI models.
The hosted version opens in a labeled, scripted Demo that makes no AI calls. Live mode connects the visitor's own Claude or ChatGPT account through OAuth sign-in. The source code is public.
Problem / Context
Working with several coding agents at once adds coordination overhead: splitting the work, deciding what can run in parallel, giving each agent the right context and file access, and keeping token costs visible.
Agents Office brings planning, delegation, file access, and usage tracking into one interface. The public Demo lets visitors watch the whole workflow before connecting an account.
Key Features
- Default Demo: an automatic shop scenario with PM planning, three parallel assignments, teammate reports, and a final PM summary, with no model calls.
- Live mode with each visitor's own Claude or ChatGPT account; sign-in tokens are stored only in that browser.
- User-defined teammates with editable roles and system prompts, and one model per teammate from Claude or GPT/Codex.
- Dependency-ordered plans: independent tasks run in parallel, dependent tasks receive earlier results, and an optional confirmation step shows the plan before work starts.
- Per-agent file permissions (List, Read, Write, Edit) on a folder the visitor selects in the browser, including read-only access.
- Token usage by day, week, teammate, session, and model, plus a manual Compact that summarizes long conversations.
- Chinese and English interfaces; uploads are disabled to reduce running costs.
Tech Stack
The interface uses native JavaScript, DOM, and SVG with no build step. The server uses Node.js, Express, and the ws WebSocket library, and runs the official Claude Code and Codex CLIs for each AI call. Hosting uses Docker on an AWS EC2 ARM64 instance behind Nginx and CloudFront, defined with CloudFormation.
Architecture
The browser owns visitor data. Conversations, teammate settings, pending plans, model choices, usage records, and OAuth tokens stay in localStorage, and folder handles stay in IndexedDB. Each request sends the snapshot it needs over WebSocket. The backend is request-only: it holds that data for the active request and releases it after the CLI process and file bridge are cleaned up.
Each AI call runs an official CLI in a new isolated directory with its built-in filesystem and shell tools disabled. When a teammate has an authorized folder, the backend exposes a per-request MCP server whose file operations are relayed to the visitor's browser, which performs them inside the selected folder. The project is never uploaded or copied to the server.
Technical Challenges
Passing full histories between sessions added context the next task did not need. I replaced full-history context passing with fresh sessions and compressed handoffs, and added per-agent token-usage monitoring to make the cost of each step visible.
Letting a hosted app work on files that stay on a visitor's computer was the other main challenge. Relaying file operations through the browser keeps the project on the visitor's machine, and per-agent permissions limit what each teammate can change.
Engineering Decisions / Trade-offs
- Make the scripted Demo the first entry, with labeled sample replies and zero model calls.
- Use visitors' own accounts with browser-owned tokens instead of storing credentials on the server.
- Keep the backend request-only. Refreshing the page cancels unfinished work; completed conversations reload from the browser.
- Allow file access only through browser-granted folders and per-agent permissions. Agents cannot run terminal commands, tests, or deployments on the visitor's computer.
- Limit concurrent CLI processes and apply timeouts and context limits to control cost.
- Disable uploads to reduce running costs.
Plan confirmation is a workflow step, not a security boundary.
Screenshots
An actual browser capture of the hosted Demo shows the sample workflow, teammate statuses, and the disabled upload control. Sample replies are labeled throughout the interface.

Results
Replacing full-history context passing with fresh sessions and compressed handoffs reduced AI workflow token usage by 86% (5.3M → 0.73M tokens), with detailed token-usage monitoring across agents.
The app is live at catfly.dev/agent-office. Each release goes through a GitHub Actions workflow that runs 57 Jest tests across 11 suites, syntax, CloudFormation, and ShellCheck validation, an ARM64 Docker build, and smoke checks before publishing to AWS. Release checks covered the scripted Demo, upload rejection, cross-site rejection, and a 70-second WebSocket heartbeat. Real-account sign-in and paid model calls are tested by the owner rather than by the deployment workflow.
Live Demo / GitHub
Not compatible with mobile. Please open the demo on a desktop browser.
Live Demo GitHub for Agents OfficeOpen Live Demo to explore the sample first, then choose Live mode to connect your own Claude or ChatGPT account. The repository includes instructions for running it locally.