Agent Office Features: Live Map, Activity Feed and Agent Directory

Agent Office has three views (Office, Activity and Directory) and one local service that feeds them. This page lists every feature and, for each group, what it cannot do.

Office map

The Office view shows your agents and skills as staff in an isometric pixel-art office. It has two maps you can switch between.

Departments map (campus)

  • One room per department. Every agent file and skill is assigned to a department by keywords in its name and description. Departments include Engineering, Security & Compliance, SEO & AI Search, Video & Animation Studio, Marketing & Growth, Data & Research, Docs & Office and others. Core Staff holds the built-in agent types and the Executive Suite holds the CEO.
  • Each room label shows "N working" and the project, or the agent and skill counts when idle. Rooms glow while someone works.
  • Click a room for its panel with three tabs: Agents, Skills and Activity. Each item expands to show its description, current task, project, elapsed time, task tokens, call count and all-time tokens. The Activity tab shows running tasks and up to 15 recent results.
  • Agents you have no file for, such as built-in skills seen in live calls, appear as Contractors with a "New hire" notice.

Commons map

  • CEO Cabin: one manager character per open session (up to 12), active or idle. The panel lists each session with its title, project, current activity, running agent tasks and session tokens.
  • Meeting Room: managers beyond the first four, plus your loops (scheduled wake-ups and recurring tasks) with kind, interval and reason.
  • Lounge, Cafeteria and Pantry are decor and are not tracked.

Map controls

Drag to pan, scroll to zoom, use +, -, 0 and the arrow keys when the map has focus, or press Fit. The Follow action checkbox jumps the map to the department that just got work. Global search (press /) finds departments, agents and skills.

Live handoffs

When a session hands work to a subagent or uses a skill, the Office shows it as it happens:

  1. The calling manager appears in the lobby and a dashed glowing line links the lobby to the target department.
  2. A character walks there (about 2.6 seconds) and sits at a desk with a working icon.
  3. When the task ends, a done or error mark shows for 3 seconds and the character walks back.

Hover or tap a character to see its name, department, task, project, who assigned it, elapsed time, task tokens and a short "Now:" activity such as "Editing app.js" or "Searching the code".

What it detects:

EventDetected as
A call to the Agent or Task toolA handoff to the agent named in subagent_type
A call to the Skill toolA skill task
An agent started with run_in_backgroundStays running until its completion notice arrives
A subagent log with no matching call, such as a Workflow stepA "synthetic" handoff from the CEO
ScheduleWakeup, CronCreate, CronDelete, and the loop and schedule skillsLoops in the Meeting Room

A running task that has been silent for 15 minutes ends with status stale.

Activity

  • Missions: one card per Claude Code session active in the last 3 hours, with its title, project, Active or Idle state, current owner and activity, a progress bar ("X of Y handoffs done"), session tokens and chips for running tasks.
  • Recent handoffs: up to 40, shown as "caller to agent or skill" with status (running, completed, error or stale), description, project and time ago.

Handoffs and per-session figures live in memory, so they reset when you restart the service.

Directory

  • Search by name and description. Filter by type (All, Agents, Skills), department and status (Any, Working, Ready).
  • Up to 400 rows, working items first, then A to Z. Each row shows name, a Working badge, type, department, a plugin mark, all-time tokens and description. Click a row to open it in the Office.
  • Org chart toggle: the CEO, then departments, then agents, with skills in a collapsible list.
  • Plugin skills from ~/.claude/plugins are included and labelled plugin:skill.

Tokens

  • Counted per assistant message: input, cache creation, cache read and output tokens. Duplicate messages are skipped.
  • Shown per task, per session and per agent, in compact form (k, M, B).
  • Per-task and per-session figures start when the service starts. Per-agent totals are all time on this PC; on first run the service reads your older subagent logs once, in the background, to build them.
  • Main-session (CEO) tokens count toward the session total but not toward any agent.

Limits: these are token counts, not money. The tool does not know your prices or plan, and the figures are approximate.

Connection states

The indicator in the top bar tells you whether the page can see your service:

StateMeaning
ConnectingFirst attempt to reach the service
LiveEvents are arriving; shows "updated Ns ago"
ReconnectingThe stream failed, or no event arrived for over 50 seconds. The service pings every 20 seconds and the browser retries automatically
OfflineNot live after 15 seconds. The service is not running, or the browser blocked local network access

If you see Offline, follow the troubleshooting steps.

Privacy

  • Listens only on 127.0.0.1, default port 4517. Not reachable from other machines.
  • Reads agent and skill file names and descriptions, session transcripts under ~/.claude/projects, and tool names, task titles, status, token counts, timestamps and the last folder of the working directory.
  • Never stores or sends message text, prompts, tool output or file contents.
  • Makes no outbound network request. Writes only data/stats.json next to server.js.
  • Only https://agency.ecomhutsy.com and localhost or 127.0.0.1 on the service port may read the feed. Other origins get 403.
  • Read-only: only GET and HEAD requests are accepted.

One honest note: the token counter scans raw assistant lines in memory to find the four token numbers. It keeps only those numbers and the message id. The live feed also contains derived data such as agent names, task titles and project folder names, which is why the origin allowlist exists.

Performance

  • The service runs at below-normal priority so Claude Code gets the CPU first.
  • It watches your transcript folder for changes and also checks recently active files every 2 seconds as a safety net.
  • The page draws about 30 frames per second while something moves, redraws slowly when idle, and does not draw while the tab is hidden or when you are not on the Office view.
  • We have not published CPU or memory measurements, so this page quotes none.

Limitations

  • Outputs are not shown. You see names, titles, status and token numbers only.
  • It runs only while node server.js runs, and only shows the PC it runs on. It is not a team or cloud dashboard, and it does not cover remote machines or containers unless the service runs where ~/.claude lives.
  • Detection depends on the Claude Code transcript format. If Claude Code changes it, detection may break.
  • The server lists only the last 20 sessions active within one hour. The Commons map shows up to 12 managers.
  • The project name is the working folder name, so two projects with the same folder name look the same.
  • The hosted page reads http://localhost:4517, so it works only on the default port.

Ready to try it? Follow the setup guide.

Frequently asked questions

Can Agent Office start, stop or edit my agents?

No. It is read-only. Its endpoints only answer GET and HEAD requests, so nothing you do in the page can change an agent, a session or a file.

Does it show dollar cost?

No. It shows token counts (input, cache creation, cache read and output) and no prices. For a cost estimate, use the usage commands built into Claude Code.

Why is a department wrong for one of my agents?

Departments are assigned by keyword match on the agent or skill name and the first 400 characters of its description. The first match wins, and unmatched items go to General Office. Clearer names and descriptions give better placement.

Why are the Lounge, Cafeteria and Pantry empty?

They are decor. No data source reports breaks, so these rooms are not tracked.