Skip to content

Add use-pi-in-pane skill#48

Merged
hockeybuggy merged 1 commit into
mainfrom
add-use-pi-in-pane-skill
Jul 18, 2026
Merged

Add use-pi-in-pane skill#48
hockeybuggy merged 1 commit into
mainfrom
add-use-pi-in-pane-skill

Conversation

@hockeybuggy

@hockeybuggy hockeybuggy commented Jul 18, 2026

Copy link
Copy Markdown
Owner

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.

🤖 Generated with Claude Code

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
hockeybuggy force-pushed the add-use-pi-in-pane-skill branch from ee93466 to 9e4c3e9 Compare July 18, 2026 02:28
@hockeybuggy
hockeybuggy merged commit f2c12d4 into main Jul 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant