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.2.tar.gz (14.5 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.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: panopticon_cli-1.1.2.tar.gz
  • Upload date:
  • Size: 14.5 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.2.tar.gz
Algorithm Hash digest
SHA256 f00cb5dde1419d6fade36125e624db420a4b8ae6fc6ab9ddcb85d80d1d55f638
MD5 af8e3fa141f0abf39bb126af3af6f270
BLAKE2b-256 c1e98e2c648f9c83a19613e36b0ba944f7c6a9713ecf57cd094317f8e5566d02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: panopticon_cli-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2418ef4bb115dd7e498d9b053b14fc1fd3ad9475060618752ba94e32f86cb8e
MD5 1d613098327b9ccfbd5d06713f5f84a1
BLAKE2b-256 11a54c82817eacf59c1f684eca01f82e8a5a7a7ad3f0b25964345f61163bc498

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.6

2 files

1.1.5

2 files

1.1.3

2 files

This release

1.1.2 This release

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