[OneDev #21] ghst skill: add wait_for_text helper (semantic blocking on PTY output) #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from OneDev issue #21 (id 35426)
Original project: internal-joseph
Original state: Closed
Original submitterId: 5
Original submitDate: 2026-04-18T13:37:16.967+00:00
Original lastActivity: {'date': '2026-04-22T18:45:48.836+00:00', 'description': "changed state to 'Closed'", 'userId': 5}
Original fields:
Background
From the ghst vs tui-use eval (internal-joseph#13): tui-use's
wait --text "pattern"is the one genuine advantage — it blocks until a text pattern appears in the terminal, with no polling guesswork. ghst currently relies on a 400ms settle heuristic aftersend, which is fragile for slow-starting programs.Task
Add a
wait_for_textpolling pattern to the ghst skill (SKILL.md) so agents have a reliable way to block until a prompt or output appears.Implementation
In the ghst skill, document a reusable loop:
Keep it in the skill as a documented pattern (not a new MCP tool). The agent loops using Bash + ghst__read until the pattern matches or a deadline is exceeded.
Acceptance criteria
SKILL.mdunder a "Semantic waiting" or "Waiting for output" section$) and waiting for program-specific text~/git/internal-joseph/skills/ghst-subagent-dispatch/SKILL.md), not~/.claude/skills/Imported from OneDev comment id 400 on issue #21
Original userId: 5
Original date: 2026-04-22T18:45:47.836+00:00
Already implemented:
ghst-subagent-dispatch/SKILL.mdhas a "## Waiting for output (semantic)" section (lines 32–54) with the full Bash deadline loop, timeout error path, and examples for shell prompt ($/PS >) and program-specific text. All acceptance criteria met.