spike-holdpane

command
v1.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command holdpane makes a tmux pane look — and identify — like a real agent pane, so the Phase 0 spike can exercise the genuine detection stack without spending tokens or needing every provider authenticated on the host.

It prints a captured agent screen and then blocks forever on stdin.

Both halves matter. Painting the screen is the obvious half. The other half is the process name: every provider detector refuses a pane whose #{pane_current_command} is not one of the names it expects — DetectOpenCode wants literally "opencode", DetectClaude wants claude/node/bun/<semver> — so a pane running bash is reported as a process mismatch no matter what is drawn in it. Deploying this binary under the name the fixture recorded is what makes the pane identify correctly.

Three things that look like simpler alternatives are not:

  • Copying /bin/sh to the target name fails on Apple Silicon: the copy loses its code signature and macOS refuses to exec it at all.
  • Ad-hoc re-signing that copy makes it exec, but the pane still reports "bash".
  • Symlinking resolves to the real binary's name for the same reason.

A distinct binary has none of those problems, and it behaves identically on a Linux host, which is what remote hosts will often be.

Blocking on stdin rather than sleeping is also deliberate: a trailing sleep would make the pane's foreground process "sleep", undoing the whole point.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL