How the Office works

Morrow reads the files Claude Code writes on your computer, sums up each session as one of three states (waiting for you, working or stopped) and draws that state on a pixel-art canvas. Nothing leaves the computer and no Claude file is changed. Below, a sample session moves forward one record at a time.

Em português

Record

state
activity
helpers

Sample session and records, shortened. The format is what Claude Code really writes to ~/.claude/projects/<folder>/<session>.jsonl, one JSON line per event.

From a record to a character

Five pieces, each in its own place in the code, following Morrow’s layout: pure, tested logic lives in src/core, what touches files in src/integrations and the window in src/renderer.

1. FilesClaude Code writes each session to a .jsonl that only grows. Morrow only reads it.
2. Readersrc/core/claude-sessions.js. Reads from where it stopped, folds the records and sums up the session.
3. Watchersrc/integrations/claude-sessions.js. Notices changes in the folder, checks every minute, keeps the read position.
4. Main processsrc/main/integrations.js. Sends the summary to the window on the csessions:changed channel.
5. ScreensToday, the session panel and the Office (views/office.js) draw the same summary.

How a session becomes a state

The reader doesn’t keep the conversation. It goes through the records and keeps only the current “turn”: what was asked, the last tool used, the tools still waiting for a result and the helpers still open. At the end one function (summarize) decides the state, in this order:

StateWhen
waitingThere is an open question (AskUserQuestion), a plan to approve (ExitPlanMode) or the question in the desktop app’s next-step box (wrap_up with ask). Or the turn ended and the last paragraph of the reply ends in “?”.
workingThe turn hasn’t ended and the file changed in the last 15 minutes.
stoppedEverything else: the turn ended without a question, or went 15 minutes without news in the middle of it.

Left out: automated messages (isMeta), tool results, subagent records (isSidechain) and the compaction summary, which only fills the “summary” field.

What the bubble says

While it works, the session shows the last tool it called. Morrow keeps only the kind of tool and the file name, never the command or the code.

ToolBubble
Edit, WriteEditing login.js
ReadReading login.js
Grep, GlobSearching the code
Bash, PowerShellRunning a command
WebSearch, browserSearching the web
AgentWith a helper / With 3 helpers
none yetThinking

Reading without stalling

On a machine in daily use the session files added up to about 4 GB, some of them hundreds of megabytes. Reading everything on every change would be slow, so the reader works with byte offsets into each file:

first readlater reads, from the saved position
  • The first time it reads only the end (1 MB). If there is no title there, the window grows up to 16 MB and, last, it looks at the start of the file.
  • The first line cut by the window is dropped; the last one, if it is still being written, waits for the next read.
  • Huge lines (pasted images, over 32 MB) are skipped without being read.
  • Each file’s read position is kept in .morrow/claude-sessions-cache.json. If the file shrinks, it starts over.

Measured on a real machine

110files changed in the last 30 days
0.6 sfirst read of all of them
6 mslater reads

The watcher uses the operating system’s change notices on the folder (fs.watch), waits 1.5 s to group several changes and, to be safe, checks everything every minute. The window is told only when something visible changed.

Privacy

  • Off until you turn it on; turning it off deletes the cache.
  • Read-only: Morrow never writes to Claude’s folder.
  • Passwords, tokens, keys and connection strings are replaced with “•••” before anything is shown or saved.
  • The “Where I left off” note has only the extracted fields, never the conversation.

The room’s floor plan

Each room is a grid of 14 × 8 tiles of 16 pixels. Desks, sofa and door have fixed places, and each state has its spot: behind a desk when working, in front of it when waiting, on the sofa when stopped. To walk, a character looks for the shortest path over free tiles (a breadth-first search), and leaves through the door when the session goes away.

workingwaitingstoppeddesksofadoor and path

Desks hold 6 sessions and the lounge 5; anything beyond that shows on the sign as “out of the room”.

A character is text

Morrow ships no image for this. Each part of a character (head, body, legs) is a list of 16-letter lines, and each letter is a colour. The first time, the code paints those letters on a small canvas and keeps the result; after that it only copies it. Facing left is mirroring the lines.

Colours come from the design system’s --px-* tokens. Skin, hair and shirt are picked from a hash of the session id, so the same session always looks the same.


  

Three layers, drawn at different paces

  • The set (floor, walls, a rug in the client’s colour, desks, plants) is drawn once into a kept image and redone only when the size or the rooms change.
  • Characters and laptops are drawn on top every frame, back to front, so whoever is lower on screen stands in front.
  • Text (names, bubbles, signs) is drawn at screen resolution, not scaled up, so it stays sharp at any zoom.

The size is picked so each art pixel becomes a whole number of screen pixels, taking display scaling into account. Nothing gets blurry, and two rooms fit side by side in a normal window.

When it animates

SituationPace
Someone walkingevery display frame
Only typing or waitingabout 8 a second
Everyone stillnothing, until something changes
Another screen opennothing
Reduced motion turned onstill scene, characters already in place

Click a character: Morrow keeps where each one was drawn and opens the panel of the session under the mouse.

What changed in the code

FileWhat it does
src/core/claude-sessions.jsReader: reads by offsets, folds the records, decides the state, hides secrets, maps folders to clients, builds the “Where I left off” note. It also keeps the last tool and the open helpers.
src/integrations/claude-sessions.jsFolder watcher, a check every minute, cache and folder rules in .morrow/.
src/renderer/views/office.jsThe Office: rooms, characters, paths, bubbles, clicks. New, 530 lines.
src/renderer/connections/sessions.jsRows on Today, the session panel, the folders dialog and the sidebar badge.
src/renderer/styles/tokens.cssSection 4, the scene’s --px-* palette, documented in design-tokens.md.
view.js, index.html, toolbar.js, shortcuts.jsNew office view, “Office” item in the sidebar, Ctrl+Shift+O shortcut.
test/core/claude-sessions.test.js18 reader tests, including activity, helpers and that commands and code don’t leak.
en.js, CHANGELOG.md, READMEsEnglish strings, the 0.18.0 entry and the shortcut.

Checked: 52 tests passing, translations 690/690, build, and the app opened with real sessions and with sample data, in Portuguese and English. Shipped in 0.18.0.