Skip to main content

Autonomous CLI supervisor for staged AI workflows

Project description

cybervisor

cybervisor is an autonomous CLI supervisor for development runs. It executes a customizable multi-stage pipeline with Gemini CLI, Claude Code, or Codex, installs runtime hooks for non-interactive execution, and enforces structured stage-result contracts.

What it does

  • Runs a customizable multi-stage pipeline defined in cybervisor.yaml
  • Enforces structured stage-result contracts with artifact-driven routing
  • Installs runtime hooks for fully non-interactive agent execution
  • Streams live agent output and persists per-stage logs
  • Snapshots and restores agent settings automatically
  • Enforces single-instance execution with a daemon-aware lock
  • Daemon mode: Long-running WebSocket server for headless execution
  • Daemon client commands: status, submit, attach, cancel, logs, end

Requirements

  • Python 3.11+
  • uv
  • One of:
    • gemini on PATH
    • claude on PATH
    • codex on PATH
  • ~/.cybervisor/config.yaml with verifier settings

Installation

Install the CLI onto your PATH:

uv tool install cybervisor

After installation, verify:

cybervisor --version

To update an existing installation later:

uv tool upgrade cybervisor
cybervisor --version

For the full update guide, run:

cybervisor docs updating

Quick Start

Initialize the cybervisor scaffold in your project:

cybervisor init

Set your global default agent:

cybervisor use claude

Configure your verifier settings in ~/.cybervisor/config.yaml (created with 0o600 permissions):

agent_tool: claude
llm:
  api_key: your-api-key
  # Optional overrides
  # base_url: https://api.openai.com/v1
  # model: gpt-4o

# Per-stage agent tool model overrides (top-level, not under llm)
# stage_models:
#   Spec: claude-sonnet-4-6
#   "Review Code": claude-opus-4-6

Verify everything is ready:

cybervisor doctor

Run the supervisor:

cybervisor "Create a 360 feedback system"
printf "Create a 360 feedback system" | cybervisor run

Usage

# Run with a prompt
cybervisor "Your task description"
cybervisor run "Your task description"
printf "Your task description" | cybervisor run

# Specify a custom config
cybervisor run "Your task" --config custom.yaml

# Control execution flow
cybervisor run "Your task" --start-stage "Implement"
cybervisor run "Your task" --end-after "Review Code"    # Run up to and including this stage, then stop
cybervisor run "Your task" --end-before "Verify"        # Stop before executing this stage

# Set default agent
cybervisor use gemini

# Validate your configuration
cybervisor validate
cybervisor validate --show-guidance

Treat cybervisor validate as the local readiness gate before merge or execution. A passing result means the config is not only parseable, but also satisfies the stricter contract-authoring checks for route safety, complete routed examples, and authored prompt/guidance synchronization.

For advanced stage configuration including cleanup paths, max iterations, per-stage model overrides, per-stage write protection (read_only_paths), and contract authoring, see the Pipeline Authoring Guide and Configuration Reference.

Global Flags

Flag Description
--quiet Suppress non-error stderr output for all commands
--help Show help message and exit

Prompt Resolution

When running cybervisor run or cybervisor submit, the task prompt is resolved with the following priority:

  1. Positional argumentcybervisor run "Your task description"
  2. stdinprintf "Your task" \| cybervisor run
  3. Error — If neither is provided, the command exits with an error

If a positional prompt argument is present, stdin is ignored even when piped.

Workspace-Local Config Override

A .cybervisor/config.yaml file in the current working directory takes precedence over ~/.cybervisor/config.yaml for global verifier settings (llm.api_key, llm.base_url, llm.model, agent_tool, stage_models). Pipeline configuration (cybervisor.yaml) has no CWD override — it is always resolved from the project root.

Daemon Mode

cybervisor serve starts a long-running WebSocket daemon. Once running, use the client subcommands to submit tasks, monitor progress, and manage the pipeline remotely.

# Start the daemon server (WebSocket on ws://127.0.0.1:8765)
cybervisor serve
cybervisor serve --host 0.0.0.0 --port 9000
cybervisor serve --background   # Run in background via double-fork

# Check daemon connectivity and active tasks (exits 0 when reachable, 1 when not)
cybervisor status
cybervisor status --host 127.0.0.1 --port 8765
# Example output when a task is running:
#   Running task: abc123def456 (stage: Spec, cwd: /workspace/project, bounds: end_stage=Verify)
#   Daemon reachable at ws://127.0.0.1:8765
# Example output when no task is running:
#   No active tasks.
#   Daemon reachable at ws://127.0.0.1:8765
# Example output when daemon is down:
#   Daemon not reachable at ws://127.0.0.1:8765

# Check status of a specific task by ID (matches across all directories)
cybervisor status abc123def456

# Submit a task and stream events until completion
cybervisor submit "Your task description" --config cybervisor.yaml --start-stage Implement
cybervisor submit "Your task" --end-after "Review Code"
cybervisor submit "Your task" --end-before Verify
printf "Your task description" | cybervisor submit          # read prompt from stdin
cat task_prompt.txt | cybervisor submit                     # multi-line prompts preserved
cybervisor submit "Your task" --task-id my-task-123   # explicit task ID
# On submit, the task ID is printed to stderr (e.g. "Task created: abc123def456")
# Use this ID with attach, cancel, logs, or end

# Reconnect to a running or completed task (auto-detects task in current directory)
cybervisor attach

# Reconnect to a specific task by ID to replay buffered events
cybervisor attach my-task-123

# Cancel an active task (auto-detects task in current directory; errors if zero tasks)
cybervisor cancel

# Cancel a specific task by ID (works from any directory)
cybervisor cancel my-task-123

# Dump all buffered events (non-blocking)
cybervisor logs my-task-123

# Update the end stage of a running task
cybervisor end --after Verify                   # auto-detect task in current directory; stop after Verify executes
cybervisor end --before Verify                  # auto-detect task in current directory; stop before Verify starts
cybervisor end abc123 --before Verify           # specify task ID explicitly (works from any directory)

# Override daemon address for any client command
cybervisor submit "task" --host 0.0.0.0 --port 9000

Exit codes for client commands:

  • 0 — success
  • 1 — failure (daemon unreachable, task not found, invalid state, etc.)
  • 130 — interrupted (SIGINT during submit or attach)

Documentation

For development and contributing documentation, see docs/development.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cybervisor-0.16.1.tar.gz (153.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cybervisor-0.16.1-py3-none-any.whl (197.1 kB view details)

Uploaded Python 3

File details

Details for the file cybervisor-0.16.1.tar.gz.

File metadata

  • Download URL: cybervisor-0.16.1.tar.gz
  • Upload date:
  • Size: 153.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cybervisor-0.16.1.tar.gz
Algorithm Hash digest
SHA256 b9abc355ed0f653b0a1355dee8bdf9c90cd684000c31e80ab9213269c68f82a0
MD5 0db50587ddc5c498e3e5a5dcfbc9865c
BLAKE2b-256 a9569f2dfcc252ae84a79b2a742b71b36f977717800cd71f4658fc403e8df2b7

See more details on using hashes here.

File details

Details for the file cybervisor-0.16.1-py3-none-any.whl.

File metadata

  • Download URL: cybervisor-0.16.1-py3-none-any.whl
  • Upload date:
  • Size: 197.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cybervisor-0.16.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44032a34f426b6966a34418380c4acb897b4c589d870673c0ca136047c9e604d
MD5 665748cd041d489f4b1191bac8404354
BLAKE2b-256 df003056e972e4287f5c86c245b7c9d3e820c403f2ad27b003fb3f0625dc0ad0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page