Skip to main content
The Process Manager is a Rust-native background runtime that lets agents run long commands without blocking their thread, while keeping humans and agents fully informed about what is happening.

High-level flow

  1. An agent starts a background command.
  2. The runtime launches and tracks that process with ownership metadata, timeout rules, and bounded log capture.
  3. Humans can watch process activity in the app and intervene when needed.
  4. Agents can query process state during execution.
  5. When the process exits, the runtime injects a structured result back into the owning thread.
  6. If that owner is idle, the runtime resumes it so the result is not missed.

Observability for humans and agents

  • Humans get process visibility in the desktop Process Monitor: command, pid, owner, status, start/end time, and log tails.
  • Agents can inspect live background work from tools, including running process lists and status snapshots.
  • In team contexts, members can inspect currently running team processes started by other members, so work is visible across the team instead of isolated to one thread.

Control and safety

  • Humans can stop processes directly from the app when a command is stuck, unsafe, or no longer useful.
  • Agents can request process termination through process tools.
  • Runtime limits (timeouts, log caps, ownership checks, and permission policy) keep background execution predictable and fail-closed.

Auto-injection and wake-up behavior

When a background command completes, its final state and output are injected into the owner thread as a synthetic tool result. This means:
  • The thread keeps full context without manual copy/paste.
  • Follow-up reasoning can use the real command output immediately.
  • Idle agents are resumed so the completion signal is acted on.

Why this matters

The Process Manager gives long-running automation the reliability of a job system with the usability of chat:
  • commands keep running even when a turn should continue,
  • everyone can observe what is running,
  • and results reliably flow back into the right place.
For permission policy and file format details, see Configure: Process Manager.