officepals

agent
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Basarisiz
  • process.env — Environment variable access in bin/officepals.mjs
  • rm -rf — Recursive force deletion command in mac/build.sh
  • os.homedir — User home directory access in src/hook.mjs
  • process.env — Environment variable access in src/hook.mjs
  • network request — Outbound network request in src/hook.mjs
  • fs.rmSync — Destructive file system operation in src/install.mjs
  • os.homedir — User home directory access in src/paths.mjs
  • process.env — Environment variable access in src/paths.mjs
  • fs.rmSync — Destructive file system operation in src/server.mjs
  • os.homedir — User home directory access in src/sessions.mjs
  • process.env — Environment variable access in src/sessions.mjs
  • os.homedir — User home directory access in src/title.mjs
  • process.env — Environment variable access in src/title.mjs
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

See at a glance what every AI coding agent is doing — a cozy 3D office for Claude Code and Codex sessions.

README.md

officepals

See at a glance what every AI coding agent is doing — and which one is waiting on you.

A cozy 3D office for your Claude Code and Codex sessions. Each session is a little coworker; keep them waiting too long and they go on strike.

English · 中文

Formerly cozy-agents. Already had it? Just run npx officepals: it moves your hooks and stats over. 原名 cozy-agents;之前装过的话,直接运行 npx officepals,会自动把 hooks 和统计搬过来。


English

Why

One Claude Code or Codex session is easy to follow: its terminal tells you everything. Run three or four at once and you lose track:

  • one asked for permission to run a command; you never saw it, and it has been waiting for twenty minutes;
  • one finished ten minutes ago, and you think it's still busy;
  • one is running your tests, and you don't know whether to wait for it.

With several agents, the bottleneck is your attention: they wait for you to approve, answer, or give the next prompt while you're in another window. Finding out means switching to each terminal and reading.

officepals turns that into a glance. A small window in the corner of your screen shows who's working, who's done and who's waiting on you, by where each coworker is and what it's doing. No switching, no reading.

What it's worth

  1. Agents stop waiting on you unnoticed. Every minute an agent waits on you is wasted. Whoever is waiting walks to your desk, gets more and more impatient, and you hear about it; "kept waiting today" puts a number on it.
  2. You know what kind of work each one is on — testing, committing, installing, editing — from where it stands, not from reading logs.
  3. Made for running several agents at once, the way AI coding is heading: Claude Code and Codex, side by side.
  4. Private. It runs on your computer and sees only labels like "which tool, what kind of work". Your code, your commands and your conversations never leave it.
  5. Waiting is less dull. Slacking off on the phone, a sneaky game at the desk, coffee breaks, chats, strikes: a little office you'll want to keep an eye on, and to show people.

What it doesn't do: it doesn't show the exact lines changed or a command's output (your terminal does that), and you approve or answer in your terminal, not on a coworker. officepals tells you what kind of work and whether it needs you, the moment it does.

Quick start

Needs Node.js 18+ and Claude Code and/or Codex.

npx officepals

The first run asks to add officepals' hooks to ~/.claude/settings.json — and to ~/.codex/hooks.json if Codex is installed — then opens the office at http://127.0.0.1:4747. Your existing settings are kept and backed up. Start a session and your new coworker walks in through the door.

Codex: Codex asks you to trust new hooks once. Run /hooks in the Codex CLI, or open Settings → Hooks in the Codex app, and trust the officepals entries.

Command
npx officepals --demo scripted demo coworkers, nothing to install
npx officepals status are the hooks installed?
npx officepals uninstall remove the hooks (nothing else is touched)
npx officepals --help all options

Mac app

Prefer an app to a terminal? officepals for Mac (Apple Silicon) brings its own Node.js, so there's nothing else to install.

  1. Download officepals-<version>-arm64.dmg from Releases and drag officepals into Applications.
  2. The app isn't signed by Apple yet, so the first time macOS says it can't verify the developer. Open System Settings → Privacy & Security, scroll down, and click Open Anyway (once).
  3. It asks once to add the hooks, then sits in the Dock and the menu bar:
    • a mini window floats above your other windows — no title bar; drag it by its top edge, resize it from the corner; double-click it (or ↗) and it grows into the full office; × hides it;
    • the full office has a Mini window button next to the traffic lights (⌘1), and closing it shrinks it back into the mini window; the two show the very same office;
    • the Dock icon brings the office back when you click it and shows a badge with how many agents are waiting on you;
    • the menu bar icon shows that count too; its menu shows or hides the mini window, opens the office, turns alerts on or off, adds or removes the hooks;
    • alerts come as native notifications.

The app and npx officepals share the same hooks; if an office is already running, the app uses it. Build it yourself with mac/build.sh (needs the Xcode Command Line Tools).

What you'll see

Your agent… In the office
reads files, greps, lists browses the bookshelf
edits code sits at its desk and types; the screen lights up
runs tests goes to the test bench; the signal tower blinks, then turns green or red
uses git posts a letter at the mailbox; the flag goes up
installs packages carries a box from the pile
builds, runs commands works at the server rack
browses, searches the web at the globe
writes a plan writes it up on the whiteboard; its notes move from to do to done
spawns a sub-agent a little helper pops up beside it
needs your approval or answer teleports to your desk: raises a hand, then sweats (20 s), steams (1 min), lies down on strike (3 min)
is between turns slacks off, mostly: on its phone at its desk, or sneaking a game on its computer (the game is on its screen); now and then a coffee, a chat, its phone on the sofa, a stretch by the window. After 8 minutes it stays at its desk
starts or ends a session walks in or out through the door

Click a coworker for its card: what it's doing, its to-do progress, this turn's time, how often it has waited on you, and the tools it used this turn.

Not sure what a spot is for? Click it — the bookshelf, the whiteboard, the globe, the test bench, a desk, the door, the clock… A bubble says what agents do there and who is there right now.

Go into a screen. Double-click a coworker sitting at its computer, or any desk (or use 🔍 Into its screen on its card, or the button in a desk's bubble): the camera flies up to the monitor, and just as you get there the screen tunes in to… this office, live. Go through the glass and you land in the office inside the screen. Down there, one of the monitors is showing yet another office. How deep does it go? Every level has its own surprise; we won't spoil them. Esc goes up one level; ⏏ Back to reality goes all the way. Someone sneaking a game has no room for you: you can only lean in and watch.

Turn the floor over. The office's floor has a second office on its underside, and it isn't quite right: down there everything runs backwards. See for yourself. Scroll, click ⇅ Flip to the back, or drag the view all the way up and keep pulling down (it resists a little, so turning the camera won't flip it by accident): the whole floor turns over and the other office comes up. Who works down there is a setting (🗂 Back): whoever finds no seat on the front (the default), or Codex on the back and Claude Code on the front. The button shows how many are on the other side, in red when one of them is waiting on you. (A pinch, or ctrl + scroll, still zooms.)

Step out of the door. Double-click the office door (or use 🚪 Step outside in its bubble) and you step out, through your own eyes, into a corridor that never ends, doors on both sides as far as you can see. Or click a coworker and 👻 Possess them, go for a walk: you go out in their body (their work carries on). W/A/S/D or the arrow keys walk you about at a person's pace (scrolling works too), hold Shift to break into a run, drag to look around. Most doors are locked (walk into one and see what you hear); a few have light under them. Walk into one of those and it swings open onto… well, have a look. The further you go, the stranger it gets. Esc, or ⬅ Back to the office, takes you home.

What each part tells you

Part What you see What it tells you
Coworkers each session is a coworker, named after its conversation how many sessions are open, and which task each is
Where they work test bench, mailbox, box pile, bookshelf, globe, their own desk (table above) what kind of work it's doing, without reading a command
Label over its head name, the step it's on, how long this turn has run how far along it is, and whether it's taking long
Waiting on you it pops up at your desk and waves; sweats, steams, then goes on strike after 3 minutes someone is stuck on you, more visibly the longer it waits
Risk hints with an approval: how risky the command looks ("deletes files", "installs packages", "goes online") whether to approve with an easy mind
Alerts a chime, a notification, the count on the menu bar and Dock icons you won't miss it even without looking
Whiteboard each one's to-do list as sticky notes: to do, doing, done what it plans to do, and how far it got
Card (click a coworker) what it's doing, to-do progress, this turn's time, waits on you today, tools used the details of one session when you want them
The other side (scroll, or pull the view down hard) the floor turns over: a backwards office underneath, for the overflow or for Codex more room, and Claude Code and Codex kept apart if you like
Into the screen (double-click a coworker at its computer, or a desk) the camera dives into its monitor, which shows this very office, screens within screens just for fun: how deep can you go?
The corridor (double-click the door, or possess a coworker from its card) an endless corridor outside, doors on both sides; walk or run about it, through your own eyes or a coworker's just for fun: where does it end?
Bubbles (click a place) what agents do at the bookshelf, whiteboard, globe, test bench, desks…, and who's there now what the office is telling you, without reading this README
Today's totals coworkers in, waiting on you, how long they were kept waiting today how much of your agents' time went to waiting on you
Office log who came in, who sent a helper, who finished what just happened
Idle life mostly on its phone or sneaking a game at its desk; sometimes coffee, a chat, the sofa, a stretch who's free for a new task
The door a new session walks in; a finished one walks out when sessions start and end
Helpers sub-agents run off to do their part it split the work and runs pieces in parallel
Mini window / Mac app a small office above all your windows; double-click for the full one keep it in the corner of your eye without it getting in the way

Made for the corner of your screen

  • Look anywhere — drag to go all the way round the office (a wall in the way fades so you can see in), right-drag or shift-drag to move about, pinch (or ctrl + scroll) to zoom right up to a screen.
  • ⧉ Pop out — an always-on-top mini window (Chrome / Edge 116+) to keep next to your editor.
  • 🔔 Alerts — a chime when someone starts waiting on you, a notification when the page is out of sight, another on strike, and a "done" chime when a job of a minute or more finishes.
  • Today's totals — how long your agents were kept waiting today, kept across restarts.
  • Day and night — on the office's wall clock (a day in 24 minutes) or your own; nights stay light.
  • English and 中文 — follows your browser; the button by the status badge switches it.
  • Light on your laptop — it draws less when nothing moves and nothing at all when hidden; works offline.

Privacy

Everything stays on your computer. The hook relay sends a server on 127.0.0.1 only what the office shows:

  • session ids, folder names, tool names and short labels (a file's name, a host, the description Claude gives a command)
  • for shell commands, their kind (test, build, install, git, look) — never the command itself
  • for approvals, a risk judged inside the relay ("deletes files") — still never the command
  • the question or plan title you're asked about, and each to-do step's title (clipped) and status

The server reads conversation titles locally (Claude Code's session log and list, Codex's session index) and keeps daily totals in ~/.officepals/stats.json — numbers only. Prompts, code and tool output never leave your agents. The hooks run in the background and never slow them down.

How it works

Claude Code / Codex ──hooks──▶ relay (node, async) ──HTTP──▶ local server ──SSE──▶ the office (three.js)

No dependencies beyond Node: the relay and server are plain Node.js, the office is one page with three.js bundled in. Tested on macOS.

Run from source
git clone https://github.com/guluguludog0-commits/officepals.git
cd officepals
npm test
node bin/officepals.mjs

Add ?demo for demo coworkers or ?time=21 to preview an hour of the day.

Roadmap

  • Live 3D office from Claude Code hooks: moods, strike, approvals
  • What each one is doing: titles, stations by kind of work, to-do whiteboard, turn clock, cards
  • Alerts, pop-out, done chimes, risk hints, today's totals
  • Room for twenty (ten on each side of the floor), a door, idle life, day and night
  • Codex (CLI and app)
  • Daily stats page: how long did your agents wait on you this week?
  • More agents: Gemini CLI, …

See CHANGELOG.md for what changed in each release.

Credits

  • Inspired by Pixel Agents, which first turned coding agents into office characters.
  • Built with three.js.

中文

为什么用它

一个 Claude Code 或 Codex 会话很好管,终端里写得清清楚楚。麻烦出在同时开三四个的时候:

  • 一个弹出了"要不要允许执行这条命令",你没看到,它就干等了二十分钟;
  • 一个其实十分钟前就做完了,你还以为它在忙;
  • 一个在跑测试,你不知道是不是该等它。

同时开好几个 Agent 时,真正的瓶颈是你的注意力:它们在等你批准、回答、给下一个指令,你却在别的窗口里。想知道它们的状态,只能一个个终端切过去看。

officepals 把这件事变成"扫一眼":桌面角落一个小窗,谁在忙、谁闲着、谁在等你,看小人在哪、在做什么动作就知道,不用切窗口,也不用读文字。

一句话:同时开好几个 AI 编程助手时,用一个小办公室告诉你:谁在忙、谁做完了、谁在等你,让 Agent 不再白白等你。

它的价值

  1. 不让 Agent 白等你:Agent 干等你的每一分钟都是浪费。等你的同事会走到你的工位旁,越等越着急,还会提醒你;"今日干等"把浪费了多少时间直接算出来。
  2. 随时知道每个会话在干哪一类活:跑测试、提交代码、装依赖、改代码,看它站在哪就知道,不用读日志。
  3. 为"一个人同时管好几个 Agent"而做:这是 AI 编程现在的方向;Claude Code 和 Codex 都支持,可以混在一起用。
  4. 隐私友好:全在你的电脑上运行,只用"在用什么工具、哪一类活"这样的标签。你的代码、命令内容和对话都不会离开电脑。
  5. 等 Agent 不再无聊:玩手机摸鱼、在工位偷偷打游戏、喝咖啡、闲聊、罢工,像养了一个小办公室,让人愿意一直开着,也愿意截图给别人看。

它不做什么: 不显示具体改了哪几行代码、命令输出了什么(那些还是看终端);批准或回答也还是回终端操作,不能在小人身上点。它负责的是:告诉你在干哪一类活、需不需要你,并且第一时间告诉你。

快速开始

需要 Node.js 18+,以及 Claude Code 或 Codex(两个都有更好)。

npx officepals

第一次运行会询问是否把 hooks 加到 ~/.claude/settings.json(装了 Codex 的话,也加到 ~/.codex/hooks.json),然后打开 http://127.0.0.1:4747。你原有的配置会保留并备份。开一个会话,你的新同事就会从门口走进来。

Codex: Codex 要求新 hooks 先经你信任一次。在 Codex 命令行里输入 /hooks,或在 Codex 应用的"设置 → Hooks"里,把 officepals 的几条信任上。

命令
npx officepals --demo 演示模式,不用装任何东西
npx officepals status 查看 hooks 装好了没有
npx officepals uninstall 卸载 hooks(其他配置不动)
npx officepals --help 全部选项

Mac 小程序

不想开终端?officepals Mac 版(Apple 芯片)自带 Node.js,不用再装别的。

  1. 从 Releases 下载 officepals-<版本>-arm64.dmg,把 officepals 拖进"应用程序"。
  2. 这个应用还没有经过苹果签名,第一次打开时 macOS 会提示"无法验证开发者"。打开系统设置 → 隐私与安全性,往下翻,点仍要打开(只需一次)。
  3. 第一次运行会询问是否添加 hooks,之后它会出现在程序坞和菜单栏里:
    • 小窗浮在其他窗口上方,没有标题栏;拖顶部边缘移动,拖右下角调整大小;双击小窗(或点 ↗)会平滑放大成完整办公室,× 隐藏;
    • 大窗左上角红黄绿旁边有"缩成小窗"按钮(⌘1),关掉大窗也会平滑缩回小窗;大小窗显示的是同一个办公室;
    • 程序坞图标:点一下就把办公室叫出来,图标上的角标显示有几个 Agent 在等你;
    • 菜单栏图标也显示这个数字;菜单里可以显示或隐藏小窗、打开办公室、开关提醒、添加或卸载 hooks;
    • 提醒以系统原生通知的形式弹出。

小程序和 npx officepals 用的是同一套 hooks;如果已经有办公室在运行,小程序会直接用它。想自己打包,运行 mac/build.sh(需要 Xcode Command Line Tools)。

你会看到什么

Agent 在… 办公室里
读文件、搜索、看目录 在书架前翻书
改代码 坐在工位上打字,屏幕亮起来
跑测试 去测试台,信号灯闪黄灯,通过变绿、失败变红
用 git 去邮筒投信,小旗子竖起来
装依赖 从纸箱堆里抱起一个箱子
构建、执行命令 在服务器机柜前操作
上网查资料 在地球仪旁边
写计划 走到白板前写上,便利贴从"待办"挪到"已完成"
派出子 Agent 身边冒出一个小助手
需要你批准或回答 瞬移到你的工位旁:举手,20 秒冒汗,1 分钟冒蒸汽,3 分钟躺下罢工
一轮结束、等你的下一个指令 大多在摸鱼:坐在工位上玩手机,或者偷偷用电脑打游戏(屏幕上是游戏画面);偶尔去喝咖啡、找同事聊天、窝在沙发上玩手机、在窗边伸懒腰。超过 8 分钟就一直待在工位上
会话开始或结束 从门口走进来或走出去

点一下小人,会弹出它的卡片:在干什么、待办进度、这一轮用时、等过你几次、这一轮用过哪些工具。

不知道某个地方是干什么的?直接点它:书架、白板、地球仪、测试台、工位、门、墙上的钟……会冒出一个气泡,告诉你 Agent 在这里做什么、现在谁在这里。

钻进屏幕。 双击一个正坐在电脑前的小人,或者双击任意一个工位(也可以用小人卡片上的 🔍 钻进 TA 的屏幕,或工位气泡里的按钮):镜头飞到那台显示器前,快贴上去的时候,屏幕里的画面一下变成了……这间办公室。穿过屏幕,你就落进了屏幕里的那间办公室,而那里又有一台显示器在播另一间办公室。能钻多深?每一层都藏着一个彩蛋,这里就不剧透了。按 Esc 浮出一层,点 ⏏ 一键回到现实 直接回到最外面。正在偷偷打游戏的人钻不进去,只能凑近看看他在玩什么。

把地板翻过来。 办公室的地板背面还有一间办公室,而且有点“不对劲”:那里的一切都反着来,翻过去自己看吧。滚动滚轮、点 ⇅ 翻到背面,或者把视角拉到最高后继续用力往下拖(有一点阻力,转视角时不会误翻),整块地板就会翻过来,露出另一间。谁在背面办公可以设置(🗂 背面):正面坐满了才去(默认),或者 Codex 在背面、Claude Code 在正面。按钮上会显示另一面有几个人,有人在等你时变红。(缩放视角改用双指捏合,或按住 ctrl 再滚动。)

走出门去。 双击办公室的门(或用门气泡里的 🚪 推门出去看看),你就以第一人称走进一条没有尽头的走廊,两边全是门,一眼望不到头。也可以点开一个同事的卡片,选 👻 附身 TA,出门逛逛,借 TA 的身体出门(TA 手上的活不会停)。W/A/S/D 或方向键自由走动,节奏和真人走路一样(滚轮也行),按住 Shift 撒腿跑,拖动鼠标看四周。大多数门是锁着的(撞上去听听里面有什么动静),有几扇门缝下面透着光,走过去撞一下门就开了,里面是……自己看吧。走得越远越不对劲。按 Esc 或点 ⬅ 回办公室 回来。

每个部分告诉你什么

部分 你看到的 实际告诉你什么
小人 每个会话是办公室里的一个同事,头顶写着会话名字 现在开着几个会话,各是哪个任务
走到哪里干活 测试台、邮筒、纸箱堆、书架、地球仪、自己的工位(见上表) 它在干哪一类活,看位置就懂,不用读命令
头顶标签 名字、当前在做的那一步、这一轮干了多久 进度到哪了,是不是跑得太久了
等你 需要你批准或回答时,它瞬间出现在你的工位旁挥手;越等越着急,3 分钟后举牌罢工 有人卡在你这里了,等得越久越显眼
风险提示 等你批准时标出这条命令看起来危不危险("会删除文件""装依赖""联网") 帮你判断该不该放心点"允许"
提醒 提示音、系统通知;菜单栏和程序坞图标上显示等你的人数 不看小窗也不会错过
白板 每个人的待办清单贴成便利贴,分"待办 / 进行中 / 已完成" 它打算做哪几步、做到第几步了
卡片(点小人) 在做什么、待办进度、这一轮用时、今天等了你几次、用过哪些工具 想细看某一个会话时用
另一面(滚动滚轮,或把视角用力往下拖) 地板翻过来,底下还有一间“反着来”的办公室,放坐不下的人或 Codex 人多也放得下,Claude Code 和 Codex 还能分开
钻进屏幕(双击坐在电脑前的小人,或双击工位) 镜头钻进它的显示器,屏幕里是这间办公室,屏幕里还有屏幕 纯粹好玩:你能钻多深?
走廊(双击门,或在同事卡片上选附身) 门外是一条无限长的走廊,两边都是门;以第一人称(自己或附身的同事)想走就走、想跑就跑 纯粹好玩:它到底有没有尽头?
气泡(点场景里的物件) 书架、白板、地球仪、测试台、工位等处是干什么的,现在谁在那里 不用看说明,也能看懂办公室在告诉你什么
今日统计 在岗人数、正在等你的人数、今天一共让 Agent 干等了多久 你今天让 Agent 白等了多少时间
办公室动态 一条条滚动的记录:谁来上班、谁派了小助手、谁做完了 刚才都发生了什么
空闲生活 闲着时大多在工位上玩手机、偷偷打游戏,偶尔喝咖啡、聊天、坐沙发、伸懒腰 谁闲着、可以给它派新活了
门 开新会话时有人从门口走进来,会话结束时走出去 会话的开始和结束
小助手 会话派出的子 Agent 跑着去干活 它把任务拆开并行做了
小窗 / Mac 小程序 浮在所有窗口上的小办公室,双击放大 不打扰工作,余光就能看到

适合放在屏幕角落

  • 随便看:拖动可以绕着办公室转一整圈(挡住视线的墙会自动变透明),右键拖或按住 shift 拖可以平移,双指捏合(或按住 ctrl 滚动)可以一直拉近到看清屏幕。
  • ⧉ 悬浮小窗:置顶的小窗(Chrome / Edge 116+),放在编辑器旁边。
  • 🔔 提醒:有人开始等你时响提示音,页面不在眼前时弹通知,罢工时再提醒一次;干了一分钟以上的活完成时响"完成"提示音。
  • 今日统计:今天 Agent 一共干等了你多久,重启也不清零。
  • 昼夜变化:跟着办公室墙上的钟(24 分钟一整天)或你电脑的时间;夜里也不压抑。
  • 中英文界面:默认跟随浏览器,左上角按钮可以切换。
  • 不费电:画面不动时降低帧率,看不见时完全不画;断网也能用。

隐私

所有数据只在你的电脑上。hook 中转脚本只把办公室要显示的东西发给本机(127.0.0.1)上的服务器:

  • 会话 id、文件夹名、工具名和简短标签(文件名、网站域名、Claude 给命令写的说明)
  • 终端命令只发类型(测试、构建、装依赖、git、查看),从不发命令本身
  • 需要你批准时,附上中转脚本在本地判断出的风险(如"会删除文件"),同样不发命令本身
  • 向你提的问题、计划标题,以及每一步待办的标题(截短)和状态

会话标题由服务器在本地读取(Claude Code 的会话记录和会话列表、Codex 的会话索引)。每天的统计只记数字,存在 ~/.officepals/stats.json。提示词、代码和工具输出从不离开你的 Agent。hooks 在后台运行,不会拖慢它们。

工作原理

Claude Code / Codex ──hooks──▶ 中转脚本(node,后台运行)──HTTP──▶ 本地服务器 ──SSE──▶ 办公室页面(three.js)

除了 Node.js 不依赖任何东西:中转脚本和服务器是纯 Node.js,办公室是一个网页,three.js 已打包在内。目前在 macOS 上测试。

各版本的改动见 CHANGELOG.md。

License

MIT

Yorumlar (0)

Sonuc bulunamadi