CLI Commands
OSTwin provides the ostwin CLI plus a set of shell scripts in .agents/ for lifecycle management.
ostwin CLI
The main binary lives at .agents/bin/ostwin and delegates to Python subcommands.
ostwin run
Start a plan execution. This is the primary entry point.
ostwin run PLAN.mdostwin run PLAN.md --max-rooms 4ostwin run PLAN.md --dry-run| Flag | Default | Description |
|---|---|---|
--max-rooms | 50 | Max concurrent war-rooms |
--dry-run | false | Parse plan, build DAG, but do not execute |
--model | config default | Override default model for all roles |
--timeout | 2400 | Global timeout in seconds |
ostwin status
Show the current state of all war-rooms.
ostwin statusostwin status --room room-003ostwin status --jsonReads status, state_changed_at, and retries from each room directory.
ostwin chat
Interactive chat session with a specified role.
ostwin chat --role engineerostwin chat --role architect --model claude-opus-4-6ostwin skills
Manage skill discovery and installation.
ostwin skills listostwin skills search "web-research"ostwin skills install <skill-name>Utility Shell Scripts
These scripts live under .agents/ and handle system-level operations.
run.sh
The primary orchestration entry point. Invoked by ostwin run.
.agents/run.sh PLAN.mdExecution chain:
- Sources
.agents/config.shfor environment - Validates the plan file exists
- Calls the PowerShell manager loop (
Start-ManagerLoop.ps1) - Monitors child processes
install.sh
First-time setup. Creates directory structure, installs dependencies, and configures the environment.
.agents/install.shActions performed:
- Creates
.agents/war-rooms/,roles/,skills/,logs/,memory/ - Installs Python dependencies for MCP and dashboard
- Validates PowerShell 7+ is available
- Downloads community roles if
auto_discoveris enabled
init.sh
Initializes a new project for OSTwin. Lighter than install.sh — sets up config files without installing dependencies.
.agents/init.shhealth.sh
Runs health checks against all running components.
.agents/health.shChecks:
- PowerShell engine process
- Dashboard API (FastAPI on port 8000)
- Dashboard frontend (Next.js on port 3000)
- Memory daemon (MCP server)
- Active war-room states
dashboard.sh
Start or stop the dashboard stack.
.agents/dashboard.sh start.agents/dashboard.sh stopManages both the FastAPI backend and Next.js frontend. Writes PID to .agents/dashboard.pid.
logs.sh
Tail or search log files.
.agents/logs.sh tail.agents/logs.sh tail --room room-003.agents/logs.sh search "error"sync-skills.sh
Synchronize skills from ClawhHub or a Git repository.
.agents/sync-skills.sh.agents/sync-skills.sh --source githubuninstall.sh
Remove OSTwin from the project. Cleans up .agents/ artifacts but preserves config.json by default.
.agents/uninstall.sh.agents/uninstall.sh --purge # removes config.json tooMemory Scripts
Located under .agents/memory/:
| Script | Purpose |
|---|---|
start-memory-daemon.sh | Launch the MCP memory server |
switch-memory-transport.sh | Toggle between stdio and SSE transport |
Daemon Scripts
Located under .agents/daemons/macos-host/:
| Script | Purpose |
|---|---|
install.sh | Register launchd daemon |
uninstall.sh | Remove launchd daemon |
host-daemon.sh | Main daemon process |
mcp-server.sh | MCP server wrapper |