Skip to main content

The Cognitive Immune System for Autonomous CLI Agents.

Project description

PANOPTICON 👁️

The Cognitive Immune System (and glorified babysitter) for Autonomous CLI Agents.

PyPI version PyPI Downloads License: MIT Python 3.9+ CI

Autonomous CLI agents (like Claude Code, AutoGPT, and Antigravity) are amazing... right until they hallucinate, burn through $50 of your API credits, or confidently try to rm -rf / your hard drive.

Panopticon is a zero-latency, non-blocking wrapper that silently watches your agent's terminal output. When the AI inevitably tries to do something incredibly stupid, Panopticon's State Guillotine drops.

It intercepts the rogue process, uses a Meta-Agent to figure out why your AI is crying, and forcefully injects the correction directly into the agent's live stdin stream like a disappointed senior developer taking over the keyboard. Oh, and it saves that failure to a SQLite database so the agent never makes the exact same mistake twice.

Why you need this

  • Native TTY Wrapping: Slap it in front of any CLI. Loading spinners, ANSI colors, and interactive prompts still work perfectly. We just spy on them natively.
  • The Policy Cascade (Iron Dome):
    • Level 1 (Blacklist): Instant, zero-cost kills for destructive actions. Because your AI will try to drop your production database eventually.
    • Level 2 (Fuzzy Heuristics): Zero-cost math thresholds that catch repetitive loops. Stops the agent from running cat missing_file.py 300 times in a row.
    • Level 3 (Universal Semantic Logic): Streams a sliding-window of the terminal to a Meta-Agent (Claude, GPT, or Gemini) to judge your sub-agent's poor life choices.
  • True Live Injection: We don't just kill the agent and leave you hanging. Panopticon literally types the course-correction prompt into the interactive terminal for you, saving the session.
  • Persistent Semantic Memory: AI agents have goldfish memory. We use SQLite and Jaccard keyword routing to permanently scar them with their past failures so they actually learn.

Quick Start

# Install globally from PyPI
pip install panopticon-cli

# Export your preferred API Key (Panopticon dynamically routes to whatever you actually pay for)
export OPENAI_API_KEY="sk-..."
# OR export ANTHROPIC_API_KEY="..."
# OR export GEMINI_API_KEY="..."

# Slap it in front of your agent!
panopticon claude
# OR
panopticon agy

See USAGE.md for deeper configuration so you can start dropping the Guillotine.

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

panopticon_cli-1.0.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

panopticon_cli-1.0.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file panopticon_cli-1.0.0.tar.gz.

File metadata

  • Download URL: panopticon_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for panopticon_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a30d83af2a4acb7054b09416d8ecf48017f221365027b8fd4d3b29787c1e58ae
MD5 ffc56f654f1ba8a623dc5e3f50c05547
BLAKE2b-256 627f32f7de7653cca731593d0d1b57c56c0f9fc6c86f278610a950b8e0bc9b87

See more details on using hashes here.

File details

Details for the file panopticon_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: panopticon_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for panopticon_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ffd7fb0d88d3cd24647dd9a6b3c238a04c23610d1e4bd19e4ec82c30d93003
MD5 de5fc22f332aacc38fa25e3332ddd9e6
BLAKE2b-256 a4ebe03fb3943cf26146c12e82ecd989422cd14a0a8eaeca572d28bced5a5e5b

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