Two decorators. Any Python function. From logging every file read to kernel-level isolation where even C extensions can't escape.
Records every file open, network call, subprocess, import, and eval. Full session replay. Add a policy to block what you don't want.
Forks a subprocess. Kernel-level restrictions. macOS Seatbelt, Linux seccomp-bpf. Even ctypes, mmap, inline assembly — the kernel kills it.
@watch(policy="sandbox") lets it run while blocking network, writes, subprocess. Tries to exfiltrate data? Denied.@watch gives you memory timeline, CPU flamegraph, per-line allocations, GC stats. Drop the JSON into the viewer.@watch. See every file it reads, every URL it calls, every subprocess it spawns.@lock — kernel sandbox. The process gets SIGKILL. Nothing escapes.Agent tries to exfiltrate /etc/passwd. Sandbox catches every attempt.
50k-row pandas pipeline. apply() eating 73% of runtime.
Recursive fib with memoization. Watch memory climb then GC.
MIT · Python 3.10+ · One dependency · Everything else is stdlib