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.5.tar.gz (15.3 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.5-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: panopticon_cli-1.1.5.tar.gz
  • Upload date:
  • Size: 15.3 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.5.tar.gz
Algorithm Hash digest
SHA256 df6cd03ad6ae5b892feca09f5ffc3aa98cea3734760411fa9b5d977649fa0c7f
MD5 ae9280f6c1f2bb2cb121694a71d78c9b
BLAKE2b-256 f1af3a33034f6b73e45deef495f51dba8a7a3d99c091d8e51b86c571443cbdfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: panopticon_cli-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 12.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a513dbbb44ef03da5883e7cfb3b622c28c9d1fe0aab1452ea3ae5d58b01ff0ac
MD5 22c128c52be9752498127aaa1a47ab2e
BLAKE2b-256 39dcf63e0f2127d43299cf0b4b27920df7ea93e099e50016b8dd204258dfac83

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.6

2 files

This release

1.1.5 This release

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