Agent Office 0.2.0 (QingJ01, #551): a real 3D office, the workbench, and the earlier review's fixes. The session scanner now reads growing JSONL logs incrementally. It keeps a saved offset with 128 guard bytes, carries UTF-8 and partial JSON across ticks, applies a record complete at EOF once, and resets on truncation, inode or birthtime change and same-size rewrites. Readers update per kind (Claude response usage replaced, Grok sidecar daily totals replaced, metadata refreshed apart from logs).
Run at the reviewed head 3bf522f, merged on main 622f950, on mote under HOME=$(mktemp -d):
- agent-office bun test: 163 pass, 0 fail. Full bun test: 4310 pass, 9 skip, 0 fail. check.mjs agent-office and stamp-page --check: exit 0.
- 100MB log: append scan ~50ms -> 0.04-0.2ms (4x100MB: ~240ms -> 0.13-0.29ms). Through office.hooks: first scan 82ms, then 0.11-0.24ms per append.
- Fuzz with real Claude, Codex and Grok logs in random appends vs a fresh scanner: 0 mismatches.
- Broken by hand: 9 mutations of the cursor and readers go red. Gaps left as follow-ups: the inode check alone, ExtendedTail, the Codex title cursor and summary.json re-reads. Also follow-up: the first scan of an image-heavy log (336ms vs 42ms, framePart).
The package is new on npm: the owner publishes 0.2.0 by hand the first time.
1.8 KiB
name, description
| name | description |
|---|---|
| agent-office | Open a live office view of every coding agent on this machine — Claude Code, Codex, Copilot CLI, Kimi Code, Grok Build, DeepSeek Harness, Gemini CLI, Qwen Code, Pi, omp, Qoder, WorkBuddy and CodeBuddy — and show who is thinking, running a tool, waiting for you, done or stuck. Use when the user types /agent-office, asks what their agents are doing, or wants a machine-readable snapshot. |
agent-office
The normal install is the magpie plugin. This skill runs the same page without magpie, using Bun 1.2+.
Start the office in the background so it keeps running:
bun "<base directory>/bin/agent-office.mjs" --no-open
Then open the full URL it prints, including its random per-run path. Treat that
URL as private: it grants access to local session data. Keep using that URL
while the process is running. A second run on the same port exits with an
address-in-use error; it does not reuse the server. Use --port 0 to start a
separate server on an available port, or choose a different --port.
For a one-off answer in chat, print a snapshot instead of opening a page:
bun "<base directory>/bin/agent-office.mjs" --json --hours 2
Summarize by status and project; do not paste prompts or replies unless the
user asks for them. Use --private for screen sharing or when the user wants
status only.
Options:
--hours 6— sessions active in the last 6 hours--private— hide prompts, replies and titles; status and tool names only--json— one snapshot, then exit--port 5000— a different local port--no-open— don't open a browser
It reads the agents' own local session files, binds to 127.0.0.1 only, and
writes nothing back. Requires Bun 1.2+ for the local server and compressed DSH
reader; Node alone is not supported.