Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions hooks/rtk-awareness.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,32 @@ which rtk # Verify correct binary
All other commands are automatically rewritten by the Claude Code hook.
Example: `git status` → `rtk git status` (transparent, 0 tokens overhead)

### Hook Installation

**macOS/Linux (bash):**
```json
{
"hooks": {
"PreToolUse": [{
"matcher": "Bash",
"hooks": [{ "type": "command", "command": "~/.claude/hooks/rtk-rewrite.sh" }]
}]
}
}
```

**Windows (Node.js/Bun):**
```json
{
"hooks": {
"PreToolUse": [{
"matcher": "Bash",
"hooks": [{ "type": "command", "command": "bun C:/Users/YOU/.claude/hooks/rtk-rewrite.js" }]
}]
}
}
```

The JS version also handles chained commands: `cd "..." && git status` → `cd "..." && rtk git status`

Refer to CLAUDE.md for full command reference.
Loading
Loading