feat(prompts): strengthen post-task reminders with actionable guidance

- Rewrite VERIFICATION_REMINDER with 3-step action flow (verify → determine QA → add to todo)
- Add explicit BLOCKING directive to prevent premature task progression
- Enhance buildOrchestratorReminder with clear post-verification actions
- Improve capture-pane block message with concrete Bash examples
This commit is contained in:
justsisyphus
2026-01-15 19:40:50 +09:00
parent 4ccc0b3f26
commit b76816e9f7
2 changed files with 76 additions and 25 deletions
+23 -1
View File
@@ -64,7 +64,29 @@ export const interactive_bash: ToolDefinition = tool({
const subcommand = parts[0].toLowerCase()
if (BLOCKED_TMUX_SUBCOMMANDS.includes(subcommand)) {
return `Error: '${parts[0]}' is blocked. Use bash tool instead for capturing/printing terminal output.`
const sessionIdx = parts.findIndex(p => p === "-t" || p.startsWith("-t"))
let sessionName = "omo-session"
if (sessionIdx !== -1) {
if (parts[sessionIdx] === "-t" && parts[sessionIdx + 1]) {
sessionName = parts[sessionIdx + 1]
} else if (parts[sessionIdx].startsWith("-t")) {
sessionName = parts[sessionIdx].slice(2)
}
}
return `Error: '${parts[0]}' is blocked in interactive_bash.
**USE BASH TOOL INSTEAD:**
\`\`\`bash
# Capture terminal output
tmux capture-pane -p -t ${sessionName}
# Or capture with history (last 1000 lines)
tmux capture-pane -p -t ${sessionName} -S -1000
\`\`\`
The Bash tool can execute these commands directly. Do NOT retry with interactive_bash.`
}
const proc = Bun.spawn([tmuxPath, ...parts], {