panopticon-cli
v0.1.3
Published
Multi-agent orchestration for AI coding assistants (Claude Code, Codex, Cursor, Gemini CLI)
Maintainers
Readme
Panopticon CLI
Multi-agent orchestration for AI coding assistants.
"The Panopticon had six sides, one for each of the Founders of Gallifrey..."
Overview
Panopticon is a unified orchestration layer for AI coding assistants. It works with:
| Tool | Support | |------|---------| | Claude Code | Full support | | Codex | Skills sync | | Cursor | Skills sync | | Gemini CLI | Skills sync | | Google Antigravity | Skills sync |
Features
- Multi-agent orchestration - Spawn and manage multiple AI agents in tmux sessions
- Universal skills - One SKILL.md format works across all supported tools
- GUPP Hooks - Self-propelling agents that auto-resume work
- Health Monitoring - Deacon-style stuck detection with auto-recovery
- Context Engineering - Structured state management (STATE.md, WORKSPACE.md)
- Agent CVs - Work history tracking for capability-based routing
Quick Start
# Install Panopticon
npm install -g panopticon-cli
# Initialize configuration
pan init
# Sync skills to all AI tools
pan sync
# Check system health
pan doctorRequirements
- Node.js 18+
- tmux (for agent sessions)
- Git (for worktree-based workspaces)
- Linear API key (for issue tracking)
Configuration
Create ~/.panopticon.env:
LINEAR_API_KEY=lin_api_xxxxx
GITHUB_TOKEN=ghp_xxxxx # Optional: for secondary trackerCommands
Core Commands
pan init # Initialize ~/.panopticon/
pan sync # Sync skills to all AI tools
pan doctor # Check system health
pan skills # List available skills
pan status # Show running agentsAgent Management
# Spawn an agent for a Linear issue
pan work issue MIN-123
# List all running agents
pan work status
# Send a message to an agent
pan work tell min-123 "Please also add tests"
# Kill an agent
pan work kill min-123Health Monitoring
# Run a health check
pan work health check
# Show health status of all agents
pan work health status
# Start the health daemon (background monitoring)
pan work health daemon --interval 30GUPP Hooks
# Check for pending work on hook
pan work hook check
# Push work to an agent's hook
pan work hook push agent-min-123 "Continue with tests"
# Send mail to an agent
pan work hook mail agent-min-123 "Review feedback received"Project Management
# Register a project
pan project add /path/to/project --name myproject
# List managed projects
pan project list
# Remove a project
pan project remove myprojectContext Management
# Show agent state
pan work context state agent-min-123
# Set a checkpoint
pan work context checkpoint "Completed auth module"
# Search history
pan work context history "test"Agent CVs
# View an agent's CV (work history)
pan work cv agent-min-123
# Show agent rankings by success rate
pan work cv --rankingsCrash Recovery
# Recover a specific crashed agent
pan work recover min-123
# Auto-recover all crashed agents
pan work recover --allDashboard
Start the monitoring dashboard:
pan up- Frontend: http://localhost:3001
- API: http://localhost:3002
Stop with pan down.
Skills
Panopticon ships with 10+ high-value skills:
| Skill | Description |
|-------|-------------|
| feature-work | Standard feature development workflow |
| bug-fix | Systematic bug investigation and fix |
| code-review | Comprehensive code review checklist |
| code-review-security | OWASP Top 10 security analysis |
| code-review-performance | Algorithm and resource optimization |
| refactor | Safe refactoring with test coverage |
| release | Step-by-step release process |
| incident-response | Production incident handling |
| dependency-update | Safe dependency updates |
| onboard-codebase | Understanding new codebases |
Skills are synced to all supported AI tools via symlinks:
~/.panopticon/skills/ # Canonical source
↓ pan sync
~/.claude/skills/ # Claude Code + Cursor
~/.codex/skills/ # Codex
~/.gemini/skills/ # Gemini CLIArchitecture
~/.panopticon/
skills/ # Shared skills (SKILL.md format)
commands/ # Slash commands
agents/ # Per-agent state
agent-min-123/
state.json # Agent state
health.json # Health status
hook.json # GUPP work queue
cv.json # Work history
mail/ # Incoming messages
projects.json # Managed projects
backups/ # Sync backupsHealth Monitoring (Deacon Pattern)
Panopticon implements the Deacon pattern for stuck agent detection:
- Ping timeout: 30 seconds
- Consecutive failures: 3 before recovery
- Cooldown: 5 minutes between force-kills
When an agent is stuck (no activity for 30+ minutes), Panopticon will:
- Force kill the tmux session
- Record the kill in health.json
- Respawn with crash recovery context
GUPP (Give Up Push Pop)
"If there is work on your Hook, YOU MUST RUN IT."
GUPP ensures agents are self-propelling:
- Work items are pushed to the agent's hook
- On spawn/recovery, the hook is checked
- Pending work is injected into the agent's prompt
- Completed work is popped from the hook
License
MIT
