What problem does it solve?
This Skill provides runtime diagnostics for Python applications, enabling real-time observation of function calls, traces, stacks, logs, memory, threads, and hot paths without changing application code.
Core Features & Use Cases
- Non-invasive Observations: Injects observation logic at runtime and restores it on detachment or reset.
- Real-time Streaming: Streams observations over Unix domain sockets with low latency.
- Production-minded: Limits overhead with fixed-size buffers and graceful recovery.
- Safe Filtering: Evaluates conditions with
simpleeval instead of Python eval.
- Dual Interface: Offers JSONL CLI for automation and TUI for human exploration.
- Use Case: Use this Skill to diagnose Python processes, diagnose slow performance, find memory leaks, trace function calls, watch variables at runtime, or analyze thread issues.
Quick Start
To diagnose a Python process using peeka-cli, first run the environment detection script, then check OS compatibility, set permissions, discover the process, and use the appropriate peeka commands like attach, watch, trace, and memory.