Skip to content

About

Realtime 2D Virtual Office visualizer & role orchestrator for Antigravity CLI (agy)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Virtual Office AI Logo

MIT License Node.js 20+ TypeScript SQLite Local 0 Extra Tokens

Virtual Office AI

English | Bahasa Indonesia | 简体中文

A local-first, realtime 2D Pixel Art Virtual Office & Multi-Agent Role Orchestrator for Antigravity CLI (agy) — with built-in Multi-CLI adapters for Claude Code, Codex, and Gemini CLI.

Watch your AI team (Owner, Project Manager, Frontend, Backend, QA, plus any custom roles you hire) collaborate, walk between desks, hand off task tickets, stream live execution logs, and share context across sessions inside a full-bleed interactive pixel office — with 0 extra LLM tokens in Observer Mode.

Interactive In-App Guide: Click ? in the top-right HUD of the office, or read docs/USER_GUIDE.md.


Screenshots

Virtual Office AI — 2D Pixel Office HQ

Work Timeline, PM Auto-Grouping & Live Logs Settings Modal (Live agy Models & AI Router)
Work Timeline & PM Task Grouping Settings Modal

Key Features (v1.0)

  • 4-Stage Smart Workflow (Prompt → AI Assign → Live Logs → Formatted Output):
    • Type 1 prompt in the bottom Spotlight Command Bar (⌘K / Ctrl+K) using 🧠 AI Auto-Assign (or click any role chip directly).
    • AI Router (agy --mode plan --disable-slash-commands --effort low) analyzes intent & available roles (including custom hired roles), creates a concise PM Task Group Title, and routes cleanly — with automatic 0-token rule-based fallback.
    • PM Auto-Grouped Task Folders: Every prompt groups its routing decision, sequential steps, live execution logs (ROUTE / INFO / TOOL / STDERR / ERROR + Copy Log), and rich Markdown outputs (tables, checklists, code blocks, Copy / Expand ↗) under one collapsible folder.
  • Local SQLite Persistence & Shared Team Context Memory:
    • Zero-dependency local SQLite (.vo-data/office.db via Node's node:sqlite) persists all task groups, logs, outputs, and conversationIds per workspace across restarts.
    • Shared Team Context Memory: Follow-up prompts automatically carry a compact summary (~300 tokens) of recent completed tasks (e.g., QA audit findings → Backend/Frontend fixes) so roles never lose context.
  • Human-in-the-Loop (✋ waiting_input + --conversation Resume):
    • Detects when an agent asks a question or requests confirmation, pauses downstream pipeline steps automatically, shows an alert banner & quick-reply chips, and resumes the exact --conversation session with your answer.
    • Includes ▶ Resume, ↻ Retry, and 💬 Continue Chat on task cards.
  • Full Settings & Role Management (⚙ Settings):
    • Dynamically lists live models from agy models, configures global & per-role models/effort, AI Router toggle & timeout, Task Timeout (0 = unlimited), Sandbox (--sandbox), Auto-Approve (--dangerously-skip-permissions), and persistent --add-dir paths.
    • Hire & Remove Custom Roles: Add custom roles (+ Hire) with SKILL.md SOPs and safely delete custom roles anytime (Core roles remain protected).
  • Fullscreen Living Pixel Office (100vw × 100vh):
    • 3 Interior Themes (Oak, Cyber, Matcha) + Day / Night Mode (warm desk lamps on active workstations, window rain & stars, animated ... thinking dots, pulsing ✋ emote, anti-overlap speech bubbles, A* pathfinding, flying TASK tickets, coffee breaks, Mochi the office cat, and Lo-Fi Synth + local MP3 audio).
  • Local-First Security:
    • Strict 127.0.0.1 binding, WebSocket Origin validation (anti-CSWSH), path-traversal guards, automatic Secret Redaction (API_KEY, Bearer, sk-*, ghp_* → [REDACTED]), and .git/info/exclude auto-setup for external workspaces.

Prerequisites

  • Node.js v20+ (v22.5+/v24+ recommended for built-in node:sqlite)
  • Antigravity CLI (agy) v1.5.18+ in PATH

Setup & Quick Start

git clone https://github.com/AlulCode45/VirtualOfficeAI.git
cd VirtualOfficeAI
npm install
npm run office

Starts all 3 local services together (press Ctrl+C once to stop cleanly):

Service Local URL
Virtual Office 2D HQ http://127.0.0.1:5173/
Live Task Monitor Server http://127.0.0.1:4174/
Bridge & Orchestrator API http://127.0.0.1:4173

Run Against Any Project (1 Command)

node scripts/start-office.mjs --workspace /path/to/your-project

Automatically creates/installs .agents/hooks.json, copies the 5 project-agnostic vo-role-* skills, isolates .vo-data/office.db inside that project, and adds .vo-data/ to its local .git/info/exclude.

(Multi-CLI hook installer: npm run vo:install -- /path/to/your-project --cli all, or send hooks directly to POST http://127.0.0.1:4173/api/v1/hooks/:cli.)


Development & Tests

npm run typecheck   # TypeScript check across shared, server, and web
npm run build       # Production build for all workspaces
npm run test:m1     # Integration, SQLite persistence, Smart Router & security tests

License

This project is licensed under the MIT License.

  • Excluded third-party & local files: Local audio files (assets/audio/*.mp3|wav|ogg), runtime SQLite/logs (.vo-data/), and optional commercial sprite packs (assets/ModernOffice2DProps_v1.0/) are excluded via .gitignore and are not covered by the repository's MIT License.

About

Realtime 2D Virtual Office visualizer & role orchestrator for Antigravity CLI (agy)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages