Part of
hooks/— see alsosrc/hooks/for installation code
- Uses the
rtk hook qoderRust binary (not a shell script) — nojqdependency - Qoder CLI uses the same
PreToolUseJSON protocol as Claude Code (tool_name/tool_input+updatedInput) - Hook config written to
~/.qoder/settings.json(global) or.qoder/settings.json(project) - Transparent rewrite via
updatedInput— no denial, no retry
- Agent runs
git status→rtk hook qoderintercepts viaPreToolUse rtk hookreads JSON from stdin, matches tool_nameBash- Returns
hookSpecificOutput.updatedInput.command = "rtk git status" - Qoder CLI rewrites the command transparently — agent sees the filtered output directly
# Simulate Qoder CLI PreToolUse input
echo '{"tool_name":"Bash","tool_input":{"command":"git status"}}' | rtk hook qoder
# Should output JSON with updatedInput.command = "rtk git status"