<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Harpreet</title>
    <description>The latest articles on DEV Community by Harpreet (@harpreetkbadhan).</description>
    <link>https://dev.to/harpreetkbadhan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4196041%2F2ab3ddb6-8b09-487a-a255-c75ead75b315.jpg</url>
      <title>DEV Community: Harpreet</title>
      <link>https://dev.to/harpreetkbadhan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harpreetkbadhan"/>
    <language>en</language>
    <item>
      <title>I built a pixel office for my Claude Code agents</title>
      <dc:creator>Harpreet</dc:creator>
      <pubDate>Mon, 30 Nov 2026 18:55:56 +0000</pubDate>
      <link>https://dev.to/harpreetkbadhan/i-built-a-pixel-office-for-my-claude-code-agents-1583</link>
      <guid>https://dev.to/harpreetkbadhan/i-built-a-pixel-office-for-my-claude-code-agents-1583</guid>
      <description>&lt;p&gt;I usually have three or four Claude Code sessions running at once. One fixes a test, one writes docs, one refactors something I'll regret. And one of them is &lt;strong&gt;always&lt;/strong&gt; quietly sitting on a permission prompt in a terminal tab I'm not looking at.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Claude Room&lt;/strong&gt;: a little pixel-art office where every Claude Code session is a worker at a desk. When an agent edits a file, it types. When it runs a command, it walks to the server rack. When it needs your permission, it &lt;strong&gt;walks to your desk and waits in line&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsmiru9ei7pn05ig1040t.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsmiru9ei7pn05ig1040t.gif" alt="Claude Room: tests pass and confetti falls, a commit rings a bell, a push launches a rocket" width="600" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Nothing in it is faked. Every movement comes from a real Claude Code hook event. Here's how it works.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx claude-room
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The whole thing in one picture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Claude Code ──hook──▶ emit.mjs ──HTTP POST──▶ local server ──WebSocket──▶ browser (PixiJS)
 (any session)        (tiny, silent)          localhost:4777               the office
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four parts, each with one job:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Hooks&lt;/strong&gt;: Claude Code runs a command on every event.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A tiny emitter script&lt;/strong&gt;: forwards the event and gets out of the way.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A local server&lt;/strong&gt;: turns raw events into "what is this worker doing", stores history, and pushes updates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A PixiJS page&lt;/strong&gt;: draws the office and animates the workers.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  1. Hooks: Claude Code already tells you everything
&lt;/h2&gt;

&lt;p&gt;Claude Code has &lt;a href="https://docs.claude.com/en/docs/claude-code/hooks" rel="noopener noreferrer"&gt;hooks&lt;/a&gt;: commands it runs on events like &lt;code&gt;SessionStart&lt;/code&gt;, &lt;code&gt;PreToolUse&lt;/code&gt;, &lt;code&gt;PostToolUse&lt;/code&gt;, &lt;code&gt;PermissionRequest&lt;/code&gt;, &lt;code&gt;SubagentStart&lt;/code&gt; and &lt;code&gt;Stop&lt;/code&gt;. Each hook gets the event as JSON on stdin: the session id, the working folder, the tool name and its input.&lt;/p&gt;

&lt;p&gt;Claude Room listens to 13 of them, all pointing at the same script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"PreToolUse"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"matcher"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"node ~/.claude-room/emit.mjs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"timeout"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. No API keys, no wrapping Claude Code, no screen scraping.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The emitter: the one rule is "Claude must not notice"
&lt;/h2&gt;

&lt;p&gt;This was the most important design rule. A visualizer that slows down or breaks your coding agent is worse than useless. So the emitter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;never prints to stdout (hook output can be read by Claude Code),&lt;/li&gt;
&lt;li&gt;never throws,&lt;/li&gt;
&lt;li&gt;gives up after about a second,&lt;/li&gt;
&lt;li&gt;exits 0 no matter what.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's the core of it, trimmed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;readStdin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;           &lt;span class="c1"&gt;// the hook event, with a 2 s cap&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;shrinkPayload&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                         &lt;span class="c1"&gt;// POST to 127.0.0.1:4777/event, 1 s timeout&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Intentionally silent: a visualizer must never disturb Claude Code.&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;finally&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;shrinkPayload&lt;/code&gt; cuts huge tool inputs (think a 5,000-line file write) down before sending. If the office isn't running, the POST fails, and nothing happens: the session carries on exactly as before.&lt;/p&gt;

&lt;p&gt;It's also bundled as a single standalone &lt;code&gt;.mjs&lt;/code&gt; file with no dependencies, so starting it is as cheap as Node allows.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The server: from raw events to "what is this worker doing?"
&lt;/h2&gt;

&lt;p&gt;Raw hook JSON isn't something you can animate. The server turns each event into a small &lt;code&gt;RoomEvent&lt;/code&gt; with a &lt;strong&gt;kind&lt;/strong&gt; (session start, tool start, needs boss…) and an &lt;strong&gt;activity&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The mapping from tools to office activities is just a table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;DESCRIBERS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;Edit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'typing'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;fileLabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Editing'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Write&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;     &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'typing'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;fileLabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Writing'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Read&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'reading'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;fileLabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Reading'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Grep&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'searching'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Searching: ${i.pattern}`&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Bash&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'terminal'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;description&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="sb"&gt;`$ ${i.command}`&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;WebSearch&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'browsing'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Searching web: ${i.query}`&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Task&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'delegating'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Delegating: ${i.description}`&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;typing&lt;/code&gt; means sit at your desk, &lt;code&gt;reading&lt;/code&gt; means walk to the bookshelf, &lt;code&gt;terminal&lt;/code&gt; means the server rack, &lt;code&gt;browsing&lt;/code&gt; means look out of the window. MCP tools (&lt;code&gt;mcp__…&lt;/code&gt;) get a courier who walks in with a parcel.&lt;/p&gt;

&lt;p&gt;Every payload is validated with zod first (&lt;code&gt;safeParse&lt;/code&gt;, never &lt;code&gt;parse&lt;/code&gt;): hook payloads change between Claude Code versions, and a bad event should be dropped, not crash the office.&lt;/p&gt;

&lt;p&gt;A few things I learned here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Projects come from the working folder.&lt;/strong&gt; Agents running in a git worktree (&lt;code&gt;repo/.claude/worktrees/agent-123&lt;/code&gt;) first showed up as their own fake project. Now they're folded back into the real repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Store events, not state.&lt;/strong&gt; Events go into SQLite. The office state is rebuilt from them, which makes replay, "while you were away" and weekly stats almost free.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redact early.&lt;/strong&gt; Commands can contain secrets. &lt;code&gt;API_KEY=…&lt;/code&gt; shows as &lt;code&gt;API_KEY=***&lt;/code&gt; before it ever reaches the page.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. WebSocket: boring on purpose
&lt;/h2&gt;

&lt;p&gt;The browser opens one WebSocket. On connect it gets a "hello" with the current state, then small updates as events arrive.&lt;/p&gt;

&lt;p&gt;The interesting part was keeping it healthy for days in a background tab:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A heartbeat every 25 s.&lt;/strong&gt; A laptop that went to sleep leaves "zombie" connections. A client that didn't answer the last ping gets dropped, and the page reconnects and gets a fresh hello.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A cap on queued bytes.&lt;/strong&gt; A frozen tab that stops reading would otherwise grow the server's memory forever. Over 4 MB queued, that client is dropped.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;deliver&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;readyState&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;OPEN&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bufferedAmount&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="no"&gt;MAX_BUFFERED_BYTES&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;terminate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. PixiJS: a 1080×810 office
&lt;/h2&gt;

&lt;p&gt;The page is a fixed 1080×810 world drawn with PixiJS 8 and scaled to fit, which keeps pixel art crisp at any size. A &lt;code&gt;Director&lt;/code&gt; turns room events into what each &lt;code&gt;Character&lt;/code&gt; should do: walk to a spot, sit, type, wave, queue at the boss desk.&lt;/p&gt;

&lt;p&gt;Some details that made it feel alive:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The boss queue.&lt;/strong&gt; A &lt;code&gt;PermissionRequest&lt;/code&gt; sends the worker to your desk with a speech bubble: "Can I run: &lt;code&gt;npm test&lt;/code&gt;?" Several waiting agents form an actual line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reactions to real events.&lt;/strong&gt; Tests pass: confetti. &lt;code&gt;git commit&lt;/code&gt;: a bell. &lt;code&gt;git push&lt;/code&gt;: a rocket past the window. On a break, two agents chat at the coffee machine about what they really did ("Finally got the tests green").&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A stuck detector.&lt;/strong&gt; If the same command fails three times within ten minutes, the same file keeps getting edited between failures, or a working agent goes quiet for ten minutes, the worker gets a red "!" and the monitor says why.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Worlds drawn in code.&lt;/strong&gt; Besides the painted classic office there's a space station, a snowy cabin and a neon loft. Each is one recipe file (palette, walls, furniture, lighting, outfits) rendered into a pixel buffer. No image files.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Privacy: everything stays on your machine
&lt;/h2&gt;

&lt;p&gt;The server binds to &lt;code&gt;127.0.0.1&lt;/code&gt; by default. Nothing is sent anywhere unless you turn on an opt-in like the GitHub panel. The installer shows exactly what it will add to &lt;code&gt;~/.claude/settings.json&lt;/code&gt;, makes a backup, and asks first. There's also a Claude Code plugin that writes nothing to your settings at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fun part: I built it with Claude Code
&lt;/h2&gt;

&lt;p&gt;Most of Claude Room was written by Claude Code itself, with me reviewing. The best moment: one night I left a multi-agent workflow running (44 agents implementing, reviewing and fixing features one PR at a time) and watched them in Claude Room while they built the next features of Claude Room.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx claude-room
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then start (or restart) Claude Code in any project and your agents walk in. There's also a &lt;a href="https://harpreetkbadhan.github.io/claude-room/" rel="noopener noreferrer"&gt;live demo in the browser&lt;/a&gt; with no install.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/harpreetkbadhan/claude-room" rel="noopener noreferrer"&gt;https://github.com/harpreetkbadhan/claude-room&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;It's MIT-licensed, and there are a few good-first-issues if you want to contribute (pixel artists: a new office world is very welcome).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Claude Room is an unofficial community project, not affiliated with Anthropic.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear what you'd want your agents' office to show. Drop a comment!&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>claude</category>
      <category>showdev</category>
    </item>
    <item>
      <title>---
title: I built a Mac app that makes me exercise while Claude Code works
published: true
description: Exercise Moose is a free, open source Mac menu bar app. When Claude Code works for more than a minute, my own avatar shows me a 30-second desk exercise</title>
      <dc:creator>Harpreet</dc:creator>
      <pubDate>Tue, 20 Oct 2026 11:18:18 +0000</pubDate>
      <link>https://dev.to/harpreetkbadhan/-title-i-built-a-mac-app-that-makes-me-exercise-while-claude-code-works-published-true-3k56</link>
      <guid>https://dev.to/harpreetkbadhan/-title-i-built-a-mac-app-that-makes-me-exercise-while-claude-code-works-published-true-3k56</guid>
      <description></description>
      <category>ai</category>
      <category>claude</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
