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
12 changes: 0 additions & 12 deletions hooks/claude/rtk-awareness.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,7 @@ rtk discover # Analyze Claude Code history for missed opportunities
rtk proxy <cmd> # Execute raw command without filtering (for debugging)
```

## Installation Verification

```bash
rtk --version # Should show: rtk X.Y.Z
rtk gain # Should work (not "command not found")
which rtk # Verify correct binary
```

⚠️ **Name collision**: If `rtk gain` fails, you may have reachingforthejack/rtk (Rust Type Kit) installed instead.

## Hook-Based Usage

All other commands are automatically rewritten by the Claude Code hook.
Example: `git status` → `rtk git status` (transparent, 0 tokens overhead)

Refer to CLAUDE.md for full command reference.
8 changes: 0 additions & 8 deletions hooks/codex/rtk-awareness.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,3 @@ rtk gain # Token savings analytics
rtk gain --history # Recent command savings history
rtk proxy <cmd> # Run raw command without filtering
```

## Verification

```bash
rtk --version
rtk gain
which rtk
```
9 changes: 9 additions & 0 deletions src/hooks/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4871,6 +4871,15 @@ mod tests {
assert_eq!(content, RTK_SLIM);
}

#[test]
fn test_awareness_templates_omit_one_time_setup() {
assert!(!RTK_SLIM.contains("Installation Verification"));
assert!(!RTK_SLIM.contains("which rtk"));
assert!(!RTK_SLIM.contains("Refer to CLAUDE.md for full command reference."));
assert!(!RTK_SLIM_CODEX.contains("## Verification"));
assert!(!RTK_SLIM_CODEX.contains("which rtk"));
}

#[test]
fn test_claude_md_mode_creates_full_injection() {
// Just verify RTK_INSTRUCTIONS constant has the right content
Expand Down
Loading