Claude Delegate
Only delegate when the user explicitly asks. The operator sets CLAUDE_DELEGATE_BIN to an absolute path to a trusted standalone Claude Code executable and CLAUDE_DELEGATE_SHA256 to its verified lowercase SHA-256. Use a version that supports the wrapper's options.
bash {baseDir}/scripts/claude-delegate.sh --cwd /path/to/repo --prompt "Summarize the selected code"
- Read-only is the default and exposes the
Read,Glob, andGreptools. Only after the user approves edits, pass--sandbox workspace-write --approve-write; this addsEditandWrite. These are Claude Code permission modes, not an operating-system sandbox. For hard filesystem isolation, run Claude Code in an externally isolated environment. - Use
--prompt-fileor--stdin-filefor explicitly approved inputs. Repository context, prompts, and stdin may go to the configured Claude provider. Do not send credentials or private data without authorization. - The wrapper requests no session persistence and disables hooks and project MCP configuration for the invocation. Output is on stdout; it can contain private repository context. Use
--output-formatfor JSON or stream JSON when needed.
Version 0.1.1 removes permission bypass, arbitrary tool overrides, added directories, and wrapper-created logs. Workspace edits now require explicit approval.
