Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
docs(counts,ports,install): align quoted figures with the tree
trohitg31a75296a81f
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 5d1c1888..324b88ff 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -17,11 +17,11 @@ See [SETUP.md](docs-internal/SETUP.md) for environment setup and [SCRIPTS.md](doAt a glance:-- **132 workflow nodes** across 27 populated palette groups (live count: `len(services.node_registry.NODE_METADATA)` *after* importing `nodes` — a bare `server/nodes/**/__init__.py` glob both over-counts helper packages and under-counts groups that hold several node types in one package; group list: `server/nodes/groups.py`)+- **148 workflow nodes** across 33 populated palette groups (34 registered in `server/nodes/groups.py`) (live count: `len(services.node_registry.NODE_METADATA)` *after* importing `nodes` — a bare `server/nodes/**/__init__.py` glob both over-counts helper packages and under-counts groups that hold several node types in one package)- **13 native LLM providers** (11 cloud providers plus Ollama and LM Studio; 12 standalone chat-model nodes because xAI is selected directly by agent nodes)- **Specialized AI agents** with the Agent Teams delegation pattern — SSOT is the `AI_AGENT_TYPES` frozenset in `server/constants.py`, which spans the base/specialized/team-lead agents plus the CLI-backed (`claude_code_agent`, `rlm_agent`) and Vertex-hosted (`vertex_managed_agent`) variants; `codex_agent` is a sibling CLI-agent plugin- **WebSocket-first API** replacing most REST endpoints (live handler count = `MESSAGE_HANDLERS` + plugin registries)-- **73 built-in skills** across 18 folders, editable in-UI with SKILL.md defaults on disk (live count: glob `server/skills/**/SKILL.md`)+- **78 built-in skills** across 18 folders, editable in-UI with SKILL.md defaults on disk (live count: `find server/skills -name SKILL.md | wc -l`)- **Two execution modes** with automatic fallback: Temporal distributed, sequential## How Workflows Execute@@ -141,7 +141,7 @@ uv run pytest # run backend tests (from server/, uv-managed venv)- **No strict-peer-dependencies equivalent.** bun never errors on peer conflicts, so the check that kept client `typescript` inside typescript-eslint's peer range is gone from install time — the CLI test locking client `typescript` to `^5` (`cli/tests/test_release_pipeline_config.py`) is now the only guard.- **Dependabot's `bun` ecosystem does version updates only — no security-update PRs.** Alerts still fire; remediation goes through the top-level `overrides` block in the root `package.json` (the pins formerly under `pnpm.overrides`).-- **`--bun` is not enabled anywhere.** Node 22 remains the runtime for vite/vitest/eslint/the sidecar. A trial of `--bun` for `vite dev` only is a documented follow-up once the package-manager migration proves stable — never for vitest/eslint (known bun-runtime breakage: oven-sh/bun#20762, #13346).+- **`--bun` is not enabled anywhere.** Node (18+; CI builds on 22) remains the runtime for vite/vitest/eslint/the sidecar. A trial of `--bun` for `vite dev` only is a documented follow-up once the package-manager migration proves stable — never for vitest/eslint (known bun-runtime breakage: oven-sh/bun#20762, #13346).Full setup and scripts reference: [SETUP.md](docs-internal/SETUP.md) - [SCRIPTS.md](docs-internal/SCRIPTS.md)@@ -151,7 +151,7 @@ Full setup and scripts reference: [SETUP.md](docs-internal/SETUP.md) - [SCRIPTS.|---|---|| [DESIGN.md](docs-internal/DESIGN.md) | Execution engine architecture, design patterns, execution modes || [TEMPORAL_ARCHITECTURE.md](docs-internal/TEMPORAL_ARCHITECTURE.md) | Distributed execution via Temporal activities |-| [workflow-schema.md](docs-internal/workflow-schema.md) | Workflow JSON schema and node catalog (live count = glob `server/nodes/**/__init__.py`) |+| [workflow-schema.md](docs-internal/workflow-schema.md) | Workflow JSON schema and node catalog (live count = `len(services.node_registry.NODE_METADATA)` after importing `nodes`) || [ROADMAP.md](docs-internal/ARCHIVE/ROADMAP.md) | *Archived* status snapshot; current state is in DESIGN.md and the Temporal docs || [SETUP.md](docs-internal/SETUP.md) | Development environment setup || [SCRIPTS.md](docs-internal/SCRIPTS.md) | bun/shell scripts and CLI verbs reference |diff --git a/README.md b/README.mdindex 3b260f69..ac24d2f4 100644--- a/README.md+++ b/README.md@@ -9,7 +9,7 @@**Your own AI workforce, running on your own machine.**-OpenCompany is an open-source, self-hosted canvas for AI agent workflows — think n8n, built agent-first. Drag, drop, and connect AI agents to your email, calendar, messages, browser, phone, and 30 other services, with 146 nodes across 31 categories to build from. No code required. No subscription. No usage limits. Bring your own API keys, or run models locally with Ollama / LM Studio for free.+OpenCompany is an open-source, self-hosted canvas for AI agent workflows — think n8n, built agent-first. Drag, drop, and connect AI agents to your email, calendar, messages, browser, phone, and 30 other services, with 148 nodes across 33 categories to build from. No code required. No subscription. No usage limits. Bring your own API keys, or run models locally with Ollama / LM Studio for free.**[Read the docs →](https://docs.opencompany.sh)**@@ -22,7 +22,7 @@ npm install -g @zeenie-ai/opencompanycompany start```-Open http://localhost:5678 and click the key icon (**API Credentials**) in the toolbar to connect your first AI provider.+Open http://localhost:5678 (default `PYTHON_BACKEND_PORT`) and click the key icon (**API Credentials**) in the toolbar to connect your first AI provider.<details><summary><b>Run from source (for contributors)</b></summary>@@ -35,7 +35,7 @@ bun run buildbun run dev```-The `dev` task starts the Vite client (with HMR) at http://localhost:5678 — the same URL as production — proxying API/WebSocket traffic to the Python backend on :5679; optional daemons (WhatsApp, Temporal) are spawned by the backend on demand. Every port is declared in `.env.template` and overridable in `.env`; nothing is hardcoded. See [SETUP.md](docs-internal/SETUP.md) and [SCRIPTS.md](docs-internal/SCRIPTS.md) for details, and [CONTRIBUTING.md](CONTRIBUTING.md) for the codebase map and contribution recipes.+The `dev` task starts the Vite client (with HMR) at `http://localhost:$VITE_CLIENT_PORT` — the same URL as production — proxying API/WebSocket traffic to the Python backend on `$PYTHON_BACKEND_PORT` (re-pointed in `.env.dev` so the two can coexist); optional daemons (WhatsApp, Temporal) are spawned by the backend on demand. Every port is declared in `.env.template` and overridable in `.env`; nothing is hardcoded. See [SETUP.md](docs-internal/SETUP.md) and [SCRIPTS.md](docs-internal/SCRIPTS.md) for details, and [CONTRIBUTING.md](CONTRIBUTING.md) for the codebase map and contribution recipes.**Upgrading from MachinaOS?** Existing `~/.machina` and checkout-local `.machina` state is detected when the new `.opencompany` location does not yet exist, so databases and deployment state are not stranded. The `machina` command remains available as a deprecated legacy alias; new scripts should use `company`.@@ -130,7 +130,7 @@ The Claude Code agent keeps warm interactive sessions in a pool (same session ac### Skills you can edit yourself-Skills are short markdown files that teach an agent how to do something well — when to use which tool, what arguments to pass, common mistakes to avoid. Edit them in the UI; changes apply immediately. 77 ship built in across 19 folders, covering Android control, Google Workspace, social messaging, web research, local data and vision, coding, terminal use (Bash, PowerShell, WSL, Nushell), payments, deployment, and more — and you can drop your own into `.opencompany/skills/`, where they override the built-ins of the same name.+Skills are short markdown files that teach an agent how to do something well — when to use which tool, what arguments to pass, common mistakes to avoid. Edit them in the UI; changes apply immediately. 78 ship built in across 18 folders, covering Android control, Google Workspace, social messaging, web research, local data and vision, coding, terminal use (Bash, PowerShell, WSL, Nushell), payments, deployment, and more — and you can drop your own into `.opencompany/skills/`, where they override the built-ins of the same name.### Conversations that survive, memory that scalesdiff --git a/docs-internal/SETUP.md b/docs-internal/SETUP.mdindex 66949883..9b64691a 100644--- a/docs-internal/SETUP.md+++ b/docs-internal/SETUP.md@@ -26,7 +26,7 @@ npm install -g @zeenie-ai/opencompanycompany start```-Open http://localhost:5678 — `company start` is single-port (API ++Open `http://localhost:$PYTHON_BACKEND_PORT` — `company start` is single-port (API +WebSocket + built SPA on the backend port).Notes for Linux servers:@@ -170,7 +170,7 @@ When `VITE_AUTH_ENABLED=false` (the default):## Troubleshooting### Port already in use-Change the port in `.env`:+Change the port in `.env` (the values below are illustrative; the defaults live in `.env.template`):```bashVITE_CLIENT_PORT=6679PYTHON_BACKEND_PORT=6678diff --git a/docs-internal/gcp_vm_deploy_runbook.md b/docs-internal/gcp_vm_deploy_runbook.mdindex a9dbab5d..3863db0c 100644--- a/docs-internal/gcp_vm_deploy_runbook.md+++ b/docs-internal/gcp_vm_deploy_runbook.md@@ -63,11 +63,11 @@ print('ENC='+secrets.token_hex(24))"on **:3010**) plus an nginx reverse proxy on :80/:443 — it works on every release.**Releases after 0.0.95**: `company start` became single-port itself (uvicornserves the SPA; no :3000 static server) AND the default ports moved to the- serial 5678 block (backend :5678, Temporal UI :5680, Temporal gRPC :5681,- Node.js executor :5682, WhatsApp :5683).+ ports named in `.env.template`: `PYTHON_BACKEND_PORT` (backend), `TEMPORAL_UI_PORT`,+ `TEMPORAL_FRONTEND_GRPC_PORT`, `NODEJS_EXECUTOR_PORT`, `WHATSAPP_RPC_PORT`.When upgrading a VM past 0.0.95, point EVERY nginx `proxy_pass` in step 2(`/api/`, `/ws/`, `/webhook/`, `/health`, and `location /`) at- `http://127.0.0.1:5678;` and reload nginx.+ `http://127.0.0.1:$PYTHON_BACKEND_PORT;` and reload nginx.3. **Owner env seeding requires `>= 0.0.95`.** 0.0.88 ignored `MACHINA_OWNER_*`entirely. Since 0.0.95 the backend seeds the owner at startup from`OPENCOMPANY_OWNER_EMAIL` + `OPENCOMPANY_OWNER_PASSWORD` (>= 8 chars;diff --git a/docs-internal/performance.md b/docs-internal/performance.mdindex d07fb1ae..f890c5a5 100644--- a/docs-internal/performance.md+++ b/docs-internal/performance.md@@ -14,7 +14,7 @@ warm OS file cache, with bytecode pre-compile applied:| Metric | Value | Source ||---|---|---|| Application startup complete | **2.90 s** | `start.log` 14:38 (post-`e77215c`, May 6 2026) |-| HTTP `ready on port 5678` | **3.17 s** | same |+| HTTP `ready on port $PYTHON_BACKEND_PORT` | **3.17 s** | same || First WebSocket client connected | **8.29 s** | same || Status broadcasters fully settled | **12.27 s** | same || AIService import (warm) | **703 ms** | same — was ~31 s on v0.0.75 |@@ -42,7 +42,7 @@ timestamped console output right after the switch to [email protected]:| Metric | Pre-bun (table above) | Post-bun ||---|---|---|| `company start` — Application startup complete | 2.90 s | ~3.6 s |-| `company start` — `ready on port 5678` | 3.17 s | 4.56 s |+| `company start` — `ready on port $PYTHON_BACKEND_PORT` | 3.17 s | 4.56 s || `company dev` — Vite `ready in` | — | 8.4 s || `company dev` — backend Application startup complete | — | 12.4 s |@@ -129,7 +129,7 @@ T+2.25 — Lifespan startup├── Compaction service (0.12 s)└── All services initialized (2.63 s)T+2.90 — Application startup complete ◀ HTTP-ready point-T+3.17 — `ready on port 5678` (uvicorn accepting)+T+3.17 — `ready on port $PYTHON_BACKEND_PORT` (uvicorn accepting)T+3.85 — Temporal worker started (background)├── ... (auth state propagates to FE; React mounts; queries fire)T+8.29 — First WebSocket client connected ◀ UI-interactive point@@ -153,7 +153,7 @@ T+8.7 — 152 node plugins loaded (was 10.8 s → 4.7 s segment)T+11.9 — Lifespan startup begin (3.2 s gap: CLI-agent MCP mount)T+21.5 — Application startup complete (lifespan 9.6 s: fresh-DB init 4.4 s,salt/PBKDF2 + encryption ~3 s — see follow-ups)-T+22.2 — ready on port 5678 (pre-fix: probe timed out at 30 s,+T+22.2 — ready on port $PYTHON_BACKEND_PORT (pre-fix: probe timed out at 30 s,line never printed)T+27 — Temporal worker registered; worker_start span 7.6 s wall but OFF-LOOP:broadcaster refreshes + WhatsApp RPC handshake interleave mid-hash@@ -166,7 +166,7 @@ T+51 — example workflows imported (still inline — see follow-ups)## The remaining +5 s gap (HTTP-ready → first WS connect)-`ready on port 5678` at +3.17 s, first WS connect at +8.29 s. Backend+`ready on port $PYTHON_BACKEND_PORT` at +3.17 s, first WS connect at +8.29 s. Backendis idle in this window; the cost lives on the frontend. Likelycontributors:@@ -258,7 +258,7 @@ company start > start.log 2>&1Then extract phase markers:```bash-grep -E "Freeing ports|Importing FastAPI|AIService imported|All imports complete|Lifespan startup begin|Application startup complete|ready on port 5678|StatusBroadcaster\] Client connected|broadcaster.refresh_all_services" start.log+grep -E "Freeing ports|Importing FastAPI|AIService imported|All imports complete|Lifespan startup begin|Application startup complete|ready on port ${PYTHON_BACKEND_PORT}|StatusBroadcaster\] Client connected|broadcaster.refresh_all_services" start.log```### Bundle size + chunk shape@@ -309,7 +309,7 @@ Tracked but explicitly **not** in any active plan.| Plugin walker lazy-loading | ~0.5-0.8 s on server-ready | Would need to defer registration until first NodeSpec request rather than at module-import time. Touches every `BaseNode` subclass — biggest blast radius of the candidates. || Retire legacy Temporal history adapters after the rollback / retention window | negligible startup impact | New executions already use native messages and the compatibility imports are lazy. This is dependency and maintenance cleanup, not a measured cold-start win. || `+5 s` HTTP-ready → first-WS-connect gap | up to 5 s | Diagnostics needed (see "remaining +5 s gap"). May reveal nothing actionable. |-| Supervisor backend `ready_timeout` (default 30 s, shortest of the three services) | cosmetic | The probe is inert (one-shot, no restart/gating) but a >30 s boot prints an alarming "timed out waiting for port 5678" and skips the ready line. Post-fix boots fit the window; revisit only if cold boots regress past 30 s. |+| Supervisor backend `ready_timeout` (default 30 s, shortest of the three services) | cosmetic | The probe is inert (one-shot, no restart/gating) but a >30 s boot prints an alarming "timed out waiting for port $PYTHON_BACKEND_PORT" and skips the ready line. Post-fix boots fit the window; revisit only if cold boots regress past 30 s. || Standalone Nuitka / PyOxidizer release binary | full Python interpreter init (~0.4 s) + `.pyc` regeneration on cold disk | User explicitly declined when scoping the build pipeline; revisit if "ship a single binary" becomes a product requirement. |## Referencesdiff --git a/install.ps1 b/install.ps1index 2bea9ccb..49fdd1dd 100644--- a/install.ps1+++ b/install.ps1@@ -2,13 +2,13 @@# Usage: iwr -useb https://raw.githubusercontent.com/zeenie-ai/OpenCompany/main/install.ps1 | iex## This script installs OpenCompany and its dependencies:-# - Node.js 22+ (via winget/choco)+# - Node.js 18+ (installs 22 LTS via winget/choco when absent)# - Python 3.12+ (via winget/choco)# - uv (Python package manager)$ErrorActionPreference = "Stop"-$MIN_NODE_VERSION = 22+$MIN_NODE_VERSION = 18$MIN_PYTHON_VERSION = "3.12"# Colors@@ -65,7 +65,7 @@ function Check-Node {}function Install-Node {- Info "Installing Node.js $MIN_NODE_VERSION..."+ Info "Installing Node.js LTS (need v$MIN_NODE_VERSION+)..."$pm = Get-PackageManagerswitch ($pm) {diff --git a/server/skills/GUIDE.md b/server/skills/GUIDE.mdindex 537d9a2d..588fb926 100644--- a/server/skills/GUIDE.md+++ b/server/skills/GUIDE.md@@ -11,7 +11,8 @@ server/skills/├── GUIDE.md # This file├── assistant/ # General-purpose assistant skills│ advisor, agent-builder-skill, assistant-personality, compaction-skill,-│ humanify-skill, memory-skill, subagent-skill, task-manager, write-todos-skill+│ data-skill, humanify-skill, memory-skill, skill, subagent-skill,+│ task-manager, vision-skill, write-todos-skill├── android_agent/ # Android device control skills│ personality + one skill per Android service node (battery, wifi,│ bluetooth, location, app-launcher, app-list, audio, screen-control,@@ -25,10 +26,12 @@ server/skills/│ file-modify-skill, fs-search-skill├── gcloud/ # gcloud-skill (Google Cloud CLI)├── github/ # github-skill (gh CLI)+├── language_agent/ # speech-skill, translation-skill├── payments_agent/ # stripe-skill-├── productivity_agent/ # Google Workspace skills+├── productivity_agent/ # Google Workspace + Microsoft 365 skills│ google-gmail-skill, google-calendar-skill, google-drive-skill,-│ google-sheets-skill, google-tasks-skill, google-contacts-skill+│ google-sheets-skill, google-tasks-skill, google-contacts-skill,+│ ms-mail-skill, ms-calendar-skill├── rlm_agent/ # rlm-reasoning-skill├── social_agent/ # Social messaging skills│ whatsapp-send-skill, whatsapp-db-skill, twitter-send-skill,