/session-tools:approve-actionfrom session-tools
Detect and handle permission prompts in a Claude Code tmux session
Ships in session-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Detect permission prompts and approve or deny them.
$ARGUMENTS: <session-name> [approve|deny]
Parse arguments:
approve, deny, or none (interactive)Capture session output:
"$PLUGIN_DIR/bin/capture-session" "<session_name>" 30
Look for permission prompts:
Bash command: followed by commandAllow ... to ...Grant accessUse skill "..."If no permission prompt found:
No pending permission request in session '<session_name>'.
If permission prompt found, show details:
## Permission Request: <session_name>
**Type:** <Bash/Edit/Skill/etc>
**Details:** <what is being requested>
Options:
- approve: Allow this action
- deny: Reject this action
If action specified (approve/deny):
Send the appropriate response:
# For approve:
tmux send-keys -t "<session>" "y" && tmux send-keys -t "<session>" Enter
# For deny:
tmux send-keys -t "<session>" "n" && tmux send-keys -t "<session>" Enter
Report:
Sent '<action>' to session '<session_name>'.
Interactive:
/session-tools:approve-action ai-worker-001
## Permission Request: ai-worker-001
**Type:** Bash
**Details:** npm install express
Options:
- /session-tools:approve-action ai-worker-001 approve
- /session-tools:approve-action ai-worker-001 deny
Direct:
/session-tools:approve-action ai-worker-001 approve
Sent 'approve' to session 'ai-worker-001'.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub shsym/claude-session-tools --plugin session-tools5 skills in this plugin
Other plugins' skills for the same job
/unstick-sessionDetect stuck states in a Claude Code tmux session and resolve them