Repository navigation
Mission Control
Mission Control is Perci's agent run orchestration dashboard. It is the operational backbone that makes Perci more than a single-chat interface.
- Tracks agent runs — every Cowork session, OpenClaw agent run, and Hermes job is recorded
- Visualizes workflows — the Transit Map shows every run's state transitions as a graph
- Validates outputs — checks that runs completed successfully, flags failures
-
Streams live events —
openclaw logs --follow --jsonandhermes logs -fare tailed in real-time - Records terminal commands — every shell command run through the terminal is logged with output
- Monitors gateway health — optional OpenClaw integration health checks
The Transit Map is a graph visualization of agent missions:
- Each node represents a step or dependency
- Edges show the flow from one step to the next
- Color indicates state: pending (gray), running (amber), done (green), failed (red)
- Hover a node to see details: commands, files, risks, next steps
The transit map is generated by src/lib/transitMap.js from mission run events.
Mission Control is built on a central event bus (appendMissionRunEvent() in src/lib/missionControl.js). Every agent action — starting a run, executing a command, completing a step, failing — emits an event that the UI consumes.
This is the #1 hub in the codebase's knowledge graph (19 edges, highest connectivity).
Each mission run contains:
{
id: 'mission-openclaw-health',
title: 'OpenClaw integration health',
status: 'running' | 'done' | 'failed',
objective: '...',
reason: '...',
commands: ['openclaw gateway status', 'GET http://127.0.0.1:18789/openclaw'],
files: ['~/.openclaw/openclaw.json'],
checkpoints: [
{ label: 'Gateway reachable', state: 'done' },
{ label: 'OpenClaw handoff', state: 'pending' }
],
risks: ['Gateway restart can interrupt active runs.'],
next: 'Use the OpenClaw integration panel only when gateway-backed work is blocked.'
}Mission Control includes a built-in "OpenClaw integration health" mission. This is an optional integration dependency — it only matters if you use OpenClaw-backed features.
The mission:
- Checks
openclaw gateway status --json - Polls the gateway control UI
- Streams live log events
- Reports: agent count, active tasks, failures, gateway version
If OpenClaw is not installed, this mission shows "offline" and does not block any other functionality.
Mission Control records every command run through the terminal:
-
recordTerminalCommand()— command text, timestamp -
recordTerminalCommandOutput()— stdout/stderr -
recordTerminalCommandResult()— exit code, duration
This gives you a full audit trail of what happened during a run.