Skip to content

toolgate: add remote tool-call approval via Slack C&C and review TUI - #378

Open
anish749 wants to merge 1 commit into
mainfrom
worktree-toolgate
Open

toolgate: add remote tool-call approval via Slack C&C and review TUI#378
anish749 wants to merge 1 commit into
mainfrom
worktree-toolgate

Conversation

@anish749

Copy link
Copy Markdown
Owner

Problem

Claude Code's PreToolUse hooks require the user to be at the terminal to approve tool calls. When running headless or stepping away, tool calls block indefinitely.

Solution

New toolgate package that acts as a PreToolUse hook endpoint in the pigeon daemon. Tool calls that the local cc-tool-reviewer can't decide on get routed to Slack C&C buttons and the review TUI for remote approval. A wrapper script chains cc-tool-reviewer → pigeon so the fast local path handles most calls and only uncertain ones reach Slack.

The hook blocks on the daemon's HTTP endpoint until a human decision arrives (or timeout falls back to "ask"). pigeon hook pretooluse CLI command bridges Claude Code stdin/stdout to the daemon.

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