8000 feat(hub): agent office easter egg by kevmtt · Pull Request #206 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

feat(hub): agent office easter egg - #206

Merged
amirlehmam merged 17 commits into
amirlehmam:masterfrom
kevmtt:feat/agent-office-hub
Aug 26, 2026
Merged

amirlehmam merged 17 commits into
amirlehmam:masterfrom
kevmtt:feat/agent-office-hub

Conversation

@kevmtt
@kevmtt kevmtt commented Aug 26, 2026 •
Copy link
Copy Markdown
Contributor

This adds a hidden easter egg: an "agent office" overlay that renders every agent in the window as a small pixel character working in a tiny office. The idea (inspired by the pixel-agents VS Code extension) is that the office doubles as a fun hub: you see at a glance which agent needs you, and you can watch the rest work. Every workspace gets a desk table with its name on it. Characters walk in through the door, sit down and type while working, stop and show a pulsing "!" speech bubble when blocked on you, take a coffee break when idle, and walk out when their pane closes. When an agent goes idle right as a colleague in the same workspace starts working, the idler walks over for a short chat first (a purely cosmetic "handoff" - wmux has no real signal for that).

Because it is mostly for fun, it ships hidden: no CLI command, nothing visible by default. A toggle at the bottom of Settings, General ("Easter eggs") enables it; only then does a pixel-invader button appear in the titlebar next to the settings gear, and Ctrl+Shift+O starts working.

It is not only decoration though:

  • hovering a character shows its model, token usage, context percentage and how long it has been waiting (declared metadata, issue grow wmux grow ;) #128)
  • clicking a blocked character opens its declared answer choices as buttons, relayed through the existing pane.answer_agent back-channel; answering never clears blocked, the agent confirms
  • clicking a working character jumps to its pane; hovering a table highlights it and clicking switches to that workspace
  • mouse wheel zooms (pixel scale 2 to 6, cursor-anchored), dragging pans when the office outgrows the window

Implementation notes:

  • data comes exclusively from the existing rollupAgents / declared-state plumbing; no new state sources, no screen scraping
  • the pure parts (layout generator, character state machines, camera math, sprite data) live in src/renderer/components/Hub/ and are unit tested (sprites, layout, sim, camera, rollup metadata passthrough)
  • sprites are string pixel maps in TS rasterized once at mount: no binary assets, no release-process changes, all artwork original
  • one Canvas 2D, fixed-timestep sim at 10 Hz with interpolated rendering at display rate
  • closed means unmounted: no timers, no rAF, zero cost while the overlay is not open
  • desks wrap at 6 per table row; up to 128 characters, beyond that a "+N" sign near the door
  • design spec and plan are in docs/superpowers/

Screenshots

(dragged in below: office overview, hover stats, answer popover, table highlight, zoom, settings toggle, titlebar button)

🤖 Generated with Claude Code

@kevmtt
kevmtt commented Aug 26, 2026 •
Copy link
Copy Markdown
Contributor Author

The agent office

Full hub
hub-v2b

Hover details
02-hover-stats

Direct answer (this might need some more work)
03-answer-popover

Settings to enable it

06-settings-toggle

Button to show the hub

07-titlebar-button

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought committing these files might be usefull for review and extending it further. We should delete it before merge though

@amirlehmam
amirlehmam merged commit 619bef5 into amirlehmam:master Aug 26, 2026
@amirlehmam
Copy link
Copy Markdown
Owner

Merged — this is sick. Shipping in v2.2.0.

The thing that made it an easy yes is that it adds no new machinery: it reads rollupAgents and the declared-state plumbing from #128, and answers blocked panes through the same pane.answer_agent back-channel WorkspaceRow already calls. No screen scraping, no new IPC surface, no state source that can drift from the sidebar's. And because the sprites are string pixel maps in TS rasterized at mount, there are no binary assets — the release process needed zero changes, which for this repo's packaging is worth more than it sounds.

{hubOpen && <HubView/>} with every timer and rAF cleaned up on unmount is the right call too: closed genuinely costs nothing, which is what lets an easter egg ship in the default build without anyone paying for it.

Verified on the merge result (your branch + master) before merging:

  • tsc --noEmit clean
  • 2191 unit tests pass, +44 from this PR (sprites, layout, sim, camera, rollup metadata passthrough)
  • eslint clean on src/renderer/components/Hub/
  • verify:resources clean

Two notes, neither blocking:

  • Only en.ts carries the new keys, so the other 17 locales fall back to English. That's the documented behaviour and the fallback chain is tested, so nothing renders blank — just flagging it for whoever does the next translation pass.
  • The openHub default of Ctrl+Shift+O is inert until the toggle is on, which is the right shape for an easter egg. Worth remembering it's now taken if something else wants that combo.

Thanks for the care in the follow-up commits — the pointer-capture, focus-stealing and answer-guard fixes are exactly the parts that would have been reported as bugs later.

Release: https://github.com/amirlehmam/wmux/releases/tag/v2.2.0

@kevmtt
kevmtt deleted the feat/agent-office-hub branch August 26, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0