pi-cc: Safer Copy-Paste for Shell Commands

A Pi extension that detects code blocks and lets you copy the exact one you want without fighting the terminal.
While tmux copy mode turns a wrapped block into broken lines and stray terminal text, pi-cc copies the original block exactly as written.
Before: tmux copy modePlaying
After: pi-cc
Source Code
https://github.com/chrischo360/pi-cc
What is Pi?
Pi is a minimal agent harness. Adapt Pi to your workflows, not the other way around.
What problem does pi-cc solve?
When I tried copying bash scripts, kubectl or docker commands, out of the terminal, there were often broken line wraps, stray prompt characters, or prose from the surrounding response mixed in.
How it works
pi-cc parses the latest assistant message, extracts fenced code blocks, and gives you a compact numbered panel to act on them.
/cc— copy a block; shows a picker if there are multiple, or copies directly if there's one/cc 2— copy block 2 without the picker/vc 2— open block 2 in Pi's editor to review before copying- Widget updates automatically after each assistant response and clears when there's nothing to copy