A living pixel art office for your Cursor AI agent โ watch it work, click things, discover easter eggs
by ofershapTypeScript
3 of 6 standards met
Problem On Windows, the hooks mode was completely broken for two separate reasons: 1. Bash script not executable on Windows The hook script requires bash. On Windows there is no bash in PATH by default, so produces a command that fails silently. The hooks are registered in but do nothing. 2. Hardcoded path hardcodes . On Windows does not exist, so polls a file that can never be created. The result: hooks mode appears active (the marker is present in ) but the office character never reacts to any agent activity. Solution (new) PowerShell equivalent of . Reads the hook event JSON from (stdin), maps tool names to activity strings using a switch, writes JSON state to . Supports the same events: , , , , . : , exported for use in the watcher. : uses on Windows, on Unix (unchanged). : returns on Windows, on Unix. : uses on Windows, on Unix. On Windows, is extremely busy โ on that directory fires hundreds of events per second and would cause CPU spikes. The method already starts a 1-second polling interval, which is sufficient. The call is now skipped on Windows. Testing Tested on Windows 10 (22H2) with Cursor 0.47. After: 1. Copying into the extension's folder 2. Adding the hook entries to 3. Reloading Cursor The office character reacts correctly in real time: sitting at desk and typing when the agent is thinking, reading icon when using Read/Grep/Glob, running icon for Shell, editing for StrReplace/Write, phone call for Task (subagent delegation), and celebrating on task completion.
Repository: ofershap/cursor-office. Description: A living pixel art office for your Cursor AI agent โ watch it work, click things, discover easter eggs Stars: 32, Forks: 2. Primary language: TypeScript. Languages: TypeScript (93.2%), Python (2.6%), HTML (2%), Shell (1.2%), JavaScript (0.9%). License: MIT. Homepage: https://open-vsx.org/extension/ofershap/cursor-office Open PRs: 2, open issues: 0. Last activity: 1d ago. Community health: 57%. Top contributors: ofershap.
Last 12 weeks ยท 34 commits
Problem On Windows with recent versions of Cursor (>= 0.47), agent transcripts are stored as plain-text files placed directly inside : user: ... assistant: [Thinking] ... [Tool call] Read path: src/app/... [Tool result] ... ``ReadGlobGrepSemanticSearchreadingShellrunningStrReplaceWriteEditNotebookDeleteeditingTaskphoningtyping[Thinking]inferActivityFromText()` heuristics. Testing Tested on Windows 10 (22H2) with Cursor 0.47. After reload, the office character correctly reacts to agent tool calls in real time.