Computaco Documentation#
Computaco provides a unified platform for running computers, driving them with agents or simulated humans, and measuring what happens — from a single local desktop to a deterministic multi-OS world of hundreds of devices.
The four core abstractions#
Everything in Computaco composes across four orthogonal layers:
| Layer | Abstraction | Choices |
|---|---|---|
| 01 · Computers | Where software runs (Computers & Runtimes) | Your own desktop, deterministic ComputerWorld multi-OS simulations, WebAssembly Browser VMs (Linux, Windows, macOS), or containerized Linux. |
| 02 · Harnesses | What decides each action (Harnesses) | Operator harnesses (deterministic sight + local/hosted models), frontier VLMs, scripted procedures, or Persona psychometric & energy-based harnesses. |
| 03 · Observation & Analysis | What you inspect and verify (Agent API, Persona, Checking) | Accessibility trees and exact RGBA frames, deterministic forks and state checks, cognitive mindstream & red/green traction spots, gaze scanpaths, and non-commercial cortical estimators. |
| 04 · Interfaces | How people and pipelines interact (Console, Computatrum, Hosted API) | Computatrum desktop app, ComputerWorld web console, Persona workspace, Python / JavaScript / Rust SDKs, and coding-agent CLI CI gates. |
Multi-agent simulations (often called societies when modeling crowds of users or buyers) are not a separate engine: they are simply multiple computers in one shared world, each driven by a Persona or operator harness (Multi-Agent Simulations).
Four ways to start#
- Boot a computer in the ConsoleLaunch a deterministic world or a real WebAssembly Linux browser VM with nothing to install.
- Drive worlds over the Hosted APIBoot, step, observe, fork, and verify environments from Python, JavaScript, or plain HTTP.
- Simulate users & enforce CI gatesModel user mindstream, red/green conversion traps, and hold conversion & clarity thresholds in CI.
- Run the engine locallyInstall the MIT-licensed local engine in Python or Node for microsecond forks and byte-exact replay.
Connect your own agent#
Drive a hosted desktop from Python: launch an app, interact through semantic targets or pixels, render a screenshot, and fork the world to verify an outcome cleanly.
- Create an account and generate a key under API keys.
- Install the client (Python 3.9+):
pip install computerworld-cloud - Configure your key and API base URL:
export COMPUTERWORLD_API_KEY=cw_live_... export COMPUTERWORLD_API_BASE=https://computaco.ai/v1 - Run a first episode:
from computerworld_cloud import Client client = Client() with client.create_environment("agent-desktop", seed=1) as sim: agent = sim.agent() agent.click(interaction="shell:launch:editor") agent.click(role="textbox") agent.type_text("Hello from my agent") agent.render().save("screen.png") branch = sim.fork() run = branch.run("agent-desktop/legal-engagement", seed=1) print("verified:", run["verification"]["passed"]) branch.delete()
See Cloud Clients for JavaScript and retry patterns, and Hosted API for the full HTTP specification.
Enforce Persona CI gates#
Use Persona to simulate a five-persona user cohort across a product journey, surface the #1 top-of-mind question and red/green traction spots, and fail CI (exit 2) if conversion, 5-second clarity, worst-persona equity, or anti-dark-pattern thresholds regress:
# Inspect user mindstream, expectation spectrum, and red/green scroll spots
node cloud/persona/cli.mjs simulate --journey landing-scroll
# Hold hard CI gates (<50% conversion, >0.20 dark-pattern contamination, >5s clarity)
node cloud/persona/cli.mjs gate --journey landing-scroll --min-conversion 50 --max-contam 0.20 --json
Run the engine locally#
The open core runs locally under the MIT License in Python and JavaScript:
pip install computerworld==0.3.0 --find-links https://github.com/ComputaCo/computerworld/releases/expanded_assets/engine-v0.3.0
npm install https://github.com/ComputaCo/computerworld/releases/download/engine-v0.3.0/computerworld-0.3.0.tgz
A first local episode#
import json, urllib.request
from computerworld import World
URL = "https://github.com/ComputaCo/computerworld/releases/download/engine-v0.3.0/company-2026-world.json"
with urllib.request.urlopen(URL) as f:
world = World(json.load(f), seed=7)
env = world.environment({
"actor": "alice", "machines": ["alice-mac"],
"actions": ["terminal.v1", "application.v1", "pointer.v1", "keyboard.v1"],
"observations": ["semantic.v1"],
})
result = env.step([{"family": "terminal.v1", "op": "execute",
"machine": "alice-mac", "payload": {"command": "cat launch.txt"}}])
print(result["outcomes"][0]["value"]["stdout"])
scene = env.scene(1440, 900) # structured roles, names, text, and bounds
frame = env.render(1440, 900) # exact RGBA pixels
checkpoint = world.snapshot()
branch = world.fork(checkpoint) # independent deterministic branch
Three design principles apply across every runtime and SDK:
- Explicit outcomes, never silent failures.
stepaccepts a batch and returns one typed outcome per action. - Least-privilege actor sessions. Agents receive a scoped
Environmentgrant (specific machines, action families, and observations); only the host holdsWorldinspection and snapshotting. - Structured scenes alongside pixels. Read
scene(w, h)when structured UI trees are available, andrender(w, h)whenever visual grounding, gaze prediction, or pixel verification is required.