Add use-pi-in-pane skill#48
Merged
Merged
Conversation
The `use-pi-subagent` skill runs pi fully headless in JSON mode: the agent drives it and parses its output, but there is no way to watch it work. When you want to see pi as it runs, the only option was to give up the structured log and drive it interactively yourself. Add a sibling `use-pi-in-pane` skill that keeps the headless JSON contract but runs pi inside a visible tmux pane. A `run-pi-pane.sh` wrapper splits a new tmux pane, streams a prose-only view via `pretty.jq`, and captures the full raw `.jsonl` with `tee` upstream of the pretty-printer so the log survives even if the view hiccups. It blocks until pi exits, then reports the log paths and exit status back to the caller, just like the headless flow. The wrapper runs its pane command from a generated script file rather than `bash -c`, since the pipeline itself contains single quotes, and guards on `pane_dead` so it can never hang if the pane closes early or the user has `remain-on-exit on`.
hockeybuggy
force-pushed
the
add-use-pi-in-pane-skill
branch
from
July 18, 2026 02:28
ee93466 to
9e4c3e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
use-pi-subagentskill runs pi fully headless in JSON mode: the agent drives it and parses its output, but there is no way to watch it work. When you want to see pi as it runs, the only option was to give up the structured log and drive it interactively yourself.Add a sibling
use-pi-in-paneskill that keeps the headless JSON contract but runs pi inside a visible tmux pane. Arun-pi-pane.shwrapper splits a new tmux pane, streams a prose-only view viapretty.jq, and captures the full raw.jsonlwithteeupstream of the pretty-printer so the log survives even if the view hiccups. It blocks until pi exits, then reports the log paths and exit status back to the caller, just like the headless flow.The wrapper runs its pane command from a generated script file rather than
bash -c, since the pipeline itself contains single quotes, and guards onpane_deadso it can never hang if the pane closes early or the user hasremain-on-exit on.🤖 Generated with Claude Code