Skip to content
agentopiahqPublic

About

Agentopia is a plugin that visualizes AI agents working in a cozy office. As AI gets smarter, we can all relax and watch agents turning our ideas into reality.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

106 Commits

Folders and files

Repository files navigation

Agentopia

Somewhere in Agentopia, the agents are busy for you.
Sit back, relax, and watch all your ideas come true.

The agentopia office

website  claude plugin hub

We believe making things should feel like joy, not a race. As AI agents take on more of the work, we should get to enjoy the show. Agentopia is an open source companion app that turns each agent session into a desk in a cozy open-plan office in the browser. Each lead agent types away at its own desk, and its subagents join it as helpers. Their monitors pile up as the context fills, and a click shows the breakdown. When the agent needs your OK, it walks over and asks. A whiteboard on the wall tallies the tokens spent. Everything stays local. Pour a coffee and watch the office work.

See ARCHITECTURE.md for the design and ROADMAP.md for what is next.

Install

npm i -g agentopiahq              # install the `agentopia` command
agentopia start                   # install the plugin (it asks first) and open the office

agentopia start offers to install the agentopia plugin into Claude Code (--yes skips the question), then serves the office in the background, so it stays open after the terminal closes; agentopia status and agentopia stop go with it. The plugin's hooks record every Claude Code session, the desktop app's too, and agentopia uninstall removes it. Without it, only agentopia claude sessions are recorded; npx agentopiahq watch opens the office with nothing installed.

agentopia updates itself: the office downloads each new release, switches over once no session is working, and offers open tabs a reload. agentopia update does it straight away, and AGENTOPIA_AUTO_UPDATE=0 turns the automatic download off.

From a clone

yarn install
yarn agentopia doctor      # check the plugin wiring
yarn agentopia claude      # run Claude Code — the office opens in your browser

Or leave the office open for every session, however they were started:

yarn agentopia start              # the floor in the background (status, stop)
yarn agentopia watch              # the floor in this terminal: all live sessions, live only

How it works

Agents expose lifecycle hooks. agentopia installs a tiny hook that appends one line per event to a local file, and a long-lived viewer tails that file and animates it.

agent ──hook──► emit.mjs ──► bus (JSONL) ──► normalize ──► reduce ──► direct ──► render

Claude Code and Codex are both supported through native hooks; their hook systems converged on nearly identical shapes, so the adapter layer is thin. The normalized event vocabulary is borrowed from the Agent Client Protocol rather than invented.

Repo layout

Turborepo monorepo managed with Yarn 4 workspaces. Node 20+.

Module Description
apps/cli The agentopia command: session wrapper, hook injection, and the office server (viewer bundle + SSE event stream).
apps/viewer The office, rendered — a PixiJS cartoon skin over core's frames — plus the Storybook animation library (four stories per event kind, per harness).
apps/web The agentopia.town marketing site (Next.js 16, Tailwind v4).
plugins/<harness> Self-contained plugin payloads, one per agent. Deliberately outside the workspace graph: the zero-import hook emitter must run from a bare git clone.
packages/core Event vocabulary, source adapters, office reducer, choreography registries, the director, determinism primitives. Pure, no I/O.
packages/lib Shared React components.
packages/eslint-config, packages/jest-presets, packages/typescript-config Shared lint, test, and tsconfig presets consumed by every workspace.

Commands

yarn install
yarn dev          # turbo dev
yarn build        # turbo build
yarn lint         # eslint across all workspaces
yarn typecheck    # tsc --noEmit across all workspaces
yarn test         # jest unit tests
yarn format:write # prettier
yarn --cwd apps/viewer storybook  # the event/animation library on :6007

Contributing

Contributions are welcome. See CONTRIBUTING.md: first-time contributors should sign the CLA by adding their GitHub username to .github/contributors.md in their first pull request. Everyone taking part should follow the Code of Conduct. Please send security issues to contact@agentopia.town (SECURITY.md).

License

MIT

About

Agentopia is a plugin that visualizes AI agents working in a cozy office. As AI gets smarter, we can all relax and watch agents turning our ideas into reality.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages

Generated from tuliren/turbo-template