Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

panopticon-cli

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

panopticon-cli

Multi-agent orchestration for AI coding assistants (Claude Code, Codex, Cursor, Gemini CLI)

Source
npmnpm
Version
0.4.26
Version published
Weekly downloads
297
-86.41%
Maintainers
1
Weekly downloads
 
Created
Source

Panopticon CLI

Multi-agent orchestration for AI coding assistants

npm version License: MIT Node.js Version PRs Welcome

"The Panopticon had six sides, one for each of the Founders of Gallifrey..."

Panopticon Dashboard

What is Panopticon?

Without PanopticonWith Panopticon
Manually juggle multiple AI agentsAutomatic orchestration - spawn, monitor, and coordinate agents from a dashboard
Agents start fresh every sessionPersistent context - skills, state files, and beads track work across sessions
Simple tasks eat Opus creditsSmart model routing - Haiku for simple, Sonnet for medium, Opus for complex
Stuck agents waste your timeAutomatic recovery - detect stuck agents and hand off to specialists
AI tools have separate configsUniversal skills - one SKILL.md works across Claude, Codex, Cursor, Gemini

Screenshots

Planning DialogDiscovery PhaseActive Session
Start planningDiscovery phaseActive session

Key Features

FeatureDescription
Multi-Agent OrchestrationSpawn and manage AI agents in tmux sessions via dashboard or CLI
Cloister Lifecycle ManagerAutomatic model routing, stuck detection, and specialist handoffs
Universal SkillsOne SKILL.md format works across all supported AI tools
WorkspacesGit worktree-based feature branches with Docker isolation
ConvoysRun parallel agents on related issues with auto-synthesis
SpecialistsDedicated review, test, and merge agents for quality control
Heartbeat MonitoringReal-time agent activity tracking via Claude Code hooks
Mission ControlUnified monitoring view — see all active features, agent activity, and planning artifacts at a glance
Shadow EngineeringMonitor existing workflows before transitioning to AI-driven development
Real-Time DashboardSocket.io push with multi-layer caching (in-memory + SQLite) for instant loads
Legacy Codebase SupportAI self-monitoring skills that learn from your codebase

Supported Tools

ToolSupport
Claude CodeFull support
CodexSkills sync
CursorSkills sync
Gemini CLISkills sync
Google AntigravitySkills sync

Legacy Codebase Support

"AI works great on greenfield projects, but it's hopeless on our legacy code."

Sound familiar? Your developers aren't wrong. But they're not stuck, either.

The Problem Every Enterprise Faces

AI coding assistants are trained on modern, well-documented open-source code. When they encounter your 15-year-old monolith with:

  • Mixed naming conventions (some snake_case, some camelCase, some SCREAMING_CASE)
  • Undocumented tribal knowledge ("we never touch the processUser() function directly")
  • Schemas that don't match the ORM ("the accounts table is actually users")
  • Three different async patterns in the same codebase
  • Build systems that require arcane incantations

...they stumble. Repeatedly. Every session starts from zero.

Panopticon's Unique Solution: Adaptive Learning

Panopticon includes two AI self-monitoring skills that no other orchestration framework provides:

SkillWhat It DoesBusiness Impact
Knowledge CaptureDetects when AI makes mistakes or gets corrected, prompts to document the learningAI gets smarter about YOUR codebase over time
Refactor RadarIdentifies systemic code issues causing repeated AI confusion, creates actionable proposalsSurfaces technical debt that's costing you AI productivity

How It Works

Session 1: AI queries users.created_at → Error (column is "createdAt")
           → Knowledge Capture prompts: "Document this convention?"
           → User: "Yes, create skill"
           → Creates project-specific skill documenting naming conventions

Session 2: AI knows to use camelCase for this project
           No more mistakes on column names

Session 5: Refactor Radar detects: "Same entity called 'user', 'account', 'member'
           across layers - this is causing repeated confusion"
           → Offers to create issue with refactoring proposal
           → Tech lead reviews and schedules cleanup sprint

The Compound Effect

WeekWithout PanopticonWith Panopticon
1AI makes 20 mistakes/day on conventionsAI makes 20 mistakes, captures 8 learnings
2AI makes 20 mistakes/day (no memory)AI makes 12 mistakes, captures 5 more
4AI makes 20 mistakes/day (still no memory)AI makes 3 mistakes, codebase improving
8Developers give up on AI for legacy codeAI is productive, tech debt proposals in backlog

Shared Team Knowledge

When one developer learns, everyone benefits.

Captured skills live in your project's .claude/skills/ directory - they're version-controlled alongside your code. When Sarah documents that "we use camelCase columns" after hitting that error, every developer on the team - and every AI session from that point forward - inherits that knowledge automatically.

myproject/
├── .claude/skills/
│   └── project-knowledge/     # ← Git-tracked, shared by entire team
│       └── SKILL.md           # "Database uses camelCase, not snake_case"
├── src/
└── ...

No more repeating the same corrections to AI across 10 different developers. No more tribal knowledge locked in one person's head. The team's collective understanding of your codebase becomes permanent, searchable, and automatically applied.

New hire onboarding? The AI already knows your conventions from day one.

For Technical Leaders

What gets measured gets managed. Panopticon's Refactor Radar surfaces the specific patterns that are costing you AI productivity:

  • "Here are the 5 naming inconsistencies causing 40% of AI errors"
  • "These 3 missing FK constraints led to 12 incorrect deletions last month"
  • "Mixed async patterns in payments module caused 8 rollbacks"

Each proposal includes:

  • Evidence: Specific file paths and examples
  • Impact: How this affects AI (and new developers)
  • Migration path: Incremental fix that won't break production

For Executives

ROI is simple:

  • $200K/year senior developer spends 2 hours/day correcting AI on legacy code
  • That's $50K/year in wasted productivity per developer
  • Team of 10 = $500K/year in AI friction

Panopticon's learning system:

  • Captures corrections once, applies them forever
  • Identifies root causes (not just symptoms)
  • Creates actionable improvement proposals
  • Works across your entire AI toolchain (Claude, Codex, Cursor, Gemini)

This isn't "AI for greenfield only." This is AI that learns your business.

Configurable Per Team and Per Developer

Different teams have different ownership boundaries. Individual developers have different preferences. Panopticon respects both:

# In ~/.claude/CLAUDE.md (developer's personal config)

## AI Suggestion Preferences

### refactor-radar
skip: database-migrations, infrastructure  # DBA/Platform team handles these
welcome: naming, code-organization         # Always happy for these

### knowledge-capture
skip: authentication                       # Security team owns this
  • "Skip database migrations" - Your DBA has a change management process
  • "Skip infrastructure" - Platform team owns that
  • "Welcome naming fixes" - Low risk, high value, always appreciated

The AI adapts to your org structure, not the other way around.

🚀 Quick Start

npm install -g panopticon-cli && pan install && pan sync && pan up

That's it! Dashboard runs at https://pan.localhost (or http://localhost:3010 if you skip HTTPS setup).

📖 Full documentation →

📋 Requirements

Required

  • Node.js 18+
  • Git (for worktree-based workspaces)
  • Docker (for Traefik and workspace containers)
  • tmux (for agent sessions)
  • GitHub CLI (gh) or GitLab CLI (glab) for Git operations
  • ttyd - Auto-installed by pan install

Optional

  • mkcert - For HTTPS certificates (recommended)
  • Linear API key - For issue tracking
  • Beads CLI - Auto-installed by pan install

📖 Platform support and detailed requirements →

🔧 Configuration

# Create config file
~/.panopticon.env

# Add API keys
LINEAR_API_KEY=lin_api_xxxxx
GITHUB_TOKEN=ghp_xxxxx  # Optional

Register your projects:

pan project add /path/to/your/project --name myproject

📖 Complete configuration guide → 📖 Work types and model routing → 📖 Detailed usage examples →

🎯 Key Concepts

Mission Control

The default landing view. A two-panel layout with a resizable sidebar showing your project tree (grouped by project, filtered to active features) and a main area displaying agent activity, planning artifacts (PRD, STATE.md, transcripts, discussions), and status reviews.

  • Project Tree: Features grouped by project with live state labels (In Progress, Suspended, In Review, Done, Planning, Idle)
  • Activity View: Chronological agent sessions with tail-anchored scrolling — click a feature and see what the agent is doing right now
  • Badge Bar: Quick access to PRD, STATE.md, discussions, transcripts, status reviews, and file uploads
  • Status Reviews: On-demand AI-generated progress reports comparing code changes against the PRD

Shadow Engineering

A mode for teams adopting AI incrementally. Register existing projects as "shadow" workspaces to monitor ongoing development without AI agents making changes.

  • Create shadow features with pan workspace create --shadow PAN-XXX
  • Upload meeting transcripts and notes via the Badge Bar
  • Sync issue tracker discussions automatically
  • Generate inference documents (INFERENCE.md) analyzing how AI would approach the work
  • Transition from monitoring to AI-driven development when ready

Multi-Agent Orchestration

Spawn and manage AI agents in tmux sessions, monitored by the Cloister lifecycle manager.

Workspaces

Git worktree-based feature branches with optional Docker isolation. Supports both local and remote (exe.dev) execution.

Specialists

Dedicated agents for code review, testing, and merging. Automatically triggered by the Cloister manager.

Skills

Universal SKILL.md format works across Claude Code, Codex, Cursor, and Gemini. Distributed via pan sync.

📖 Architecture overview → 📖 Specialist workflow →

🛠️ Common Commands

# Start dashboard
pan up

# Create workspace and spawn agent
pan workspace create PAN-123

# Check agent status
pan status

# View agent logs
pan logs agent-pan-123

# Stop dashboard
pan down

📖 Complete command reference →

📚 Documentation

DocumentDescription
docs/INDEX.mdMaster documentation index (start here)
docs/USAGE.mdDetailed usage guide, examples, troubleshooting
docs/CONFIGURATION.mdModel routing, API setup, presets
AGENTS.mdAgent architecture
docs/ARCHITECTURE-CACHING.mdDashboard caching and real-time push
CONTRIBUTING.mdContribution guidelines
CLAUDE.mdAgent development guidance
docs/MISSION-CONTROL.mdMission Control and Shadow Engineering guide

🤝 Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

⭐ Star History

Star History Chart

⚖️ License

MIT License - see LICENSE for details.

Made with ❤️ by the Panopticon team

GitHub · npm · Documentation

Keywords

ai-agents

FAQs

Package last updated on 10 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts