How epool86/ai-office works
AI Office is a local Claude Code-powered virtual office: the user chats with a manager, who delegates tasks to configured staff; results, status and requests for approval appear in a browser dashboard. The map follows the documented setup, chat, staff-task, approval, project/inbox, document, usage and safety capabilities. Source excerpts establish the CLI, server, chat/task orchestration, file-backed office model and command guard; several dashboard and service internals are unsampled, so uncertain links are omitted.
Main entry points: server.js Local API server · app.js Office dashboard · chat.js Manager and staff chat · office.js Office file model
Components 24
Entry and setup
- Office CLI
bin/ai-office.js - Setup wizard
lib/wizard.js - Office generator
lib/generate.js - Local API server
lib/server.js
Work orchestration
- Manager and staff chat
lib/chat.js - Staff task runner
lib/tasks.js
Office data and safety
- Office file model
lib/office.js - Office instructions
lib/templates.js - Staff and model defaults
lib/defaults.js - Markdown file helpers
lib/md.js - Command and action guard
office-files/guard.js - Office folders and records
Dashboard experience
- Office dashboard
dashboard/app.js - Staff avatars
dashboard/avatar.js - Dashboard icons
dashboard/icons.js - Chat markdown
dashboard/markdown.js - 3D office view
dashboard/office3d.js
Runtime services
- Claude Code
- Live status
lib/status.js - Usage tracking
lib/usage.js - Document tools
lib/doctools.js - Document generation engine
office-files/doc-tools/index.cjs - Invois Online
Other components
- Office owner
Connections 37
- Office owner → Office CLI: starts setup
bin/ai-office.js - Office CLI → Setup wizard: runs when unconfigured
bin/ai-office.js - Setup wizard → Office generator: creates office
lib/wizard.js - Office CLI → Local API server: starts office
bin/ai-office.js - Office owner → Office dashboard: chats and manages
README.md - Office dashboard → Local API server: calls local API
dashboard/app.js - Local API server → Office file model: routes office requests
lib/server.js - Local API server → Live status: reads live status
lib/server.js - Local API server → Manager and staff chat: serves chat API
lib/server.js - Local API server → Staff task runner: serves task API
lib/server.js - Local API server → Usage tracking: serves usage API
lib/server.js - Local API server → Document tools: serves tools API
lib/server.js - Local API server → Office dashboard: serves dashboard
- Manager and staff chat → Claude Code: runs prompts
lib/chat.js - Manager and staff chat → Staff task runner: reports task activity
lib/tasks.js - Staff task runner → Claude Code: runs staff work
lib/tasks.js - Manager and staff chat → Office folders and records: saves conversations
lib/chat.js - Staff task runner → Office folders and records: writes task files
lib/tasks.js - Office file model → Office folders and records: reads and writes
lib/office.js - Office generator → Office instructions: renders office files
lib/generate.js - Office generator → Staff and model defaults: uses defaults
lib/generate.js - Office file model → Office instructions: generates staff files
lib/office.js - Office file model → Staff and model defaults: uses defaults
lib/office.js - Office file model → Markdown file helpers: parses office records
lib/office.js - Staff task runner → Markdown file helpers: formats task records
lib/tasks.js - Manager and staff chat → Office instructions: loads chat guidance
lib/chat.js - Manager and staff chat → Command and action guard: configures command safety
lib/chat.js - Command and action guard → Office folders and records: checks rules and approvals
- Document tools → Document generation engine: prepares document tools
- Office dashboard → Staff avatars: renders portraits
dashboard/app.js - Office dashboard → Dashboard icons: renders icons
dashboard/app.js - Office dashboard → Chat markdown: renders markdown
dashboard/app.js - Office dashboard → 3D office view: shows office view
dashboard/app.js - Live status → Office folders and records: reads events and approvals
- Usage tracking → Office folders and records: reads usage records
- Office file model → Invois Online: supports optional add-on
README.md - Office owner → Office folders and records: approves actions
README.md