Borrowing it
Nothing to install: this file belongs to gukosowa/agents-in-the-office. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/gukosowa/agents-in-the-office/main/CLAUDE.mdgit clone --depth 1 https://github.com/gukosowa/agents-in-the-officeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/gukosowa/agents-in-the-office/claude-md)<a href="https://agentmods.dev/instructions/gukosowa/agents-in-the-office/claude-md"><img src="https://agentmods.dev/badge/instructions/gukosowa/agents-in-the-office/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/gukosowa/agents-in-the-office/claude-md"><img src="https://agentmods.dev/badge/instructions/gukosowa/agents-in-the-office/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01366 | $0.01366 |
| Opus 5.5 | $0.00546 | $0.00546 |
| Sonnet 5.5 | $0.00273 | $0.00273 |
| Haiku 4.5 | $0.00137 | $0.00137 |
Grade B, and why
agents-in-the-office CLAUDE.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- `src/components/AgentSetupDialog.vue` — hook installation dialog (writes hook script + merges into `~/.claude/settings.json`; extracts `agentId` and `agentTranscriptPath` from subagent events) How it starts
The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
agents-in-the-office
Pixel-art office simulation where real AI agent sessions control NPC characters.
Stack
- Frontend: Vue 3 + TypeScript + Vite 7 + Pinia + TailwindCSS 4
- Backend: Tauri 2 (Rust) — file watcher via
notifycrate,tauri-plugin-fs,tauri-plugin-dialog,tauri-plugin-window-state - Package manager: bun (use
bun install,bun run <script>— not npm/npx) - Rust edition: 2024
Dev commands
bun run tauri dev # start Tauri dev app (Vite + Rust)
bun run build # frontend-only build (vue-tsc + vite)
bun run tauri build # release build with installer
vue-tsc -b # type-check frontend
cargo clippy --all-targets --all-features -- -D warnings # lint Rust
Architecture
Event pipeline: Claude Code hooks write JSON to ~/.agents-in-the-office/events/ → Tauri Rust watcher picks up files, emits agent-event Tauri events, deletes files → RunView.vue listens → AgentStore routes to driver → driver issues NpcHandle commands → Character executes.
Subagent pipeline: Parent receives subagent_start event → AgentStore.spawnSubagent() derives session ID + transcript path → Rust start_transcript_poll reads JSONL transcript → extracts tool_use/tool_result → emits synthetic events → subagent NPC spawns with badge.
Event persistence: Every event is persisted to IndexedDB (events store). On session reconnect, replayActivityLog() rebuilds the activity panel from stored events. Old events (>24h) are pruned on app mount.
Key source locations:
src/drivers/— agent driver system:types.ts—NpcCommand,AgentEvent,AgentEventType,AgentType,NpcHandle,ActivityMessage,SubagentInfoAgentDriver.ts—AgentDriverinterface +BaseDriverabstract class (tool→object mapping)ClaudeCodeDriver.ts— Claude Code–specific driver (MCP-aware routing, permission wait, subagent handling)agentStore.ts— Pinia store for session lifecycle (spawn/despawn/reconnect, stale cleanup, activity log, subagent management).handleEvent()returnsPromise<HandleEventResult[]>— one event can yield multiple results (e.g., parent update + subagent spawn)npcHandle.ts—createNpcHandle()factory wrappingCharacterintoNpcHandleinterfaceactivityMessages.ts— formatsAgentEventintoActivityMessagefor the activity panel (supports prefix for subagent messages)agentBubbleTexts.ts— localized NPC speech/thought bubble texts per tool (en/de, 20+ variants each)
src/classes/Character.ts— NPC entity: states (idle/walking/interacting/conversing/exited), sprite animation, A* pathfinding, command queue, autonomous + external control modes, conversation system, optionalbadgeoverlaysrc/utils/—pathfinding.ts(A*),db.ts(IndexedDB — map persistence + event persistence withpersistEvent,getSessionEvents,pruneSessionEvents,pruneOldEvents),fileIO.ts(.aito file format),spriteLoader.ts,fill.ts,rmxpAutoTile.ts,vxAutoTile.tssrc/views/RunView.vue— game loop, agent event listener, camera, NPC spawning/despawning, session restore, badge renderingsrc/views/EditorView.vue— tile map editorsrc/components/AgentActivityPanel.vue— floating panel showing agent session activity logsrc/components/AgentSetupDialog.vue— hook installation dialog (writes hook script + merges into~/.claude/settings.json; extractsagentIdandagentTranscriptPathfrom subagent events)src/i18n/bubbleTexts.ts— autonomous NPC bubble texts (en/de)src/stores/mapStore.ts— map state (tile layers, objects, spawn points, collision grid, tileset pool)src-tauri/src/watcher.rs— file watcher (notifycrate,~/.agents-in-the-office/events/)src-tauri/src/transcript.rs— JSONL transcript poller for subagents (background thread per subagent, extracts tool_use/tool_result from assistant/user messages, skips Task tool to avoid recursion)src-tauri/src/lib.rs— Tauri setup, registersset_executable,focus_terminal_window,start_transcript_poll,stop_transcript_pollcommands; managesTranscriptPollersstate; stops all pollers on window destroysrc-tauri/src/macos_focus.rs— macOS Accessibility API for raising terminal windows
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 70 lines · 1,366 tokens per session scan B f6f12a25dfc1
agents-in-the-office CLAUDE.md is an instructions file published in the GitHub repository gukosowa/agents-in-the-office (3 stars, last pushed 8mo ago), licensed MIT. It adds 1,366 tokens to every session, about $0.0055 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
agents-in-the-office CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agents-in-the-office CLAUDE.mdgukosowa/agents-in-the-office | Instructions file | 3 | 8mo ago | MIT | B | 1,366 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,086 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 281k | today | MIT | A | 4,335 | Codex, OpenCode |