Skip to main content

PANOPTICON 👁️

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

PyPI version License: MIT CI Python 3.9+

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.

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.1.6.tar.gz (17.2 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.1.6-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: panopticon_cli-1.1.6.tar.gz
  • Upload date:
  • Size: 17.2 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.1.6.tar.gz
Algorithm Hash digest
SHA256 38f4e4676786f2c6a07a9e5a3c659577a8145b20d40f566c8d2476c96e4687e3
MD5 ad7615aa34c57e99e2998c05603f0f40
BLAKE2b-256 7f8e1971142fab2643a65a2a3a31b8be175dc2990c75774612e68283856a1492

See more details on using hashes here.

File details

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

File metadata

  • Download URL: panopticon_cli-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 14.9 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.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3249c542956b31b3f35b1523b82d311e97282b49675fd1c2cf7734b843daa113
MD5 e1c260f03e74f222fffcb49e8bff03bb
BLAKE2b-256 aead34fc5965027250930c49e9426c69c01412fc3cbfa05785ccd8417e8103db

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.6 This release

2 files

1.1.5

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page