Skip to content
Merged
2 changes: 1 addition & 1 deletion hooks/claude/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- Returns `updatedInput` JSON for transparent command rewrite (agent doesn't know RTK is involved)
- Exits silently (exit 0) on any failure: jq missing, rtk missing, rtk too old (< 0.23.0), no match
- Version guard checks `rtk --version` against minimum 0.23.0
- `rtk-awareness.md` is a slim 10-line instructions file embedded into CLAUDE.md by `rtk init`
- `../rtk-awareness.md` (shared, agent-neutral) is a slim instructions file embedded into CLAUDE.md by `rtk init`

## Testing

Expand Down
29 changes: 0 additions & 29 deletions hooks/claude/rtk-awareness.md
Comment thread
KuSh marked this conversation as resolved.
Resolved

This file was deleted.

8 changes: 8 additions & 0 deletions hooks/rtk-awareness.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Command output

Command output here is condensed to save tokens, keeping every signal and
dropping costly noise. Treat it as the complete result: run commands
normally, and batch related commands into one call to avoid extra turns.
Truncated results state their recovery path in their own output. Re-run a
command as `rtk proxy <cmd>` only when its result is unusable: empty when
output was clearly expected, contradicting its exit code, or garbled.
2 changes: 1 addition & 1 deletion src/hooks/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const OPENCODE_PLUGIN: &str = include_str!("../../hooks/opencode/rtk.ts");
const PI_PLUGIN: &str = include_str!("../../hooks/pi/rtk.ts");

// Embedded slim RTK awareness instructions
const RTK_SLIM: &str = include_str!("../../hooks/claude/rtk-awareness.md");
const RTK_SLIM: &str = include_str!("../../hooks/rtk-awareness.md");
const RTK_SLIM_CODEX: &str = include_str!("../../hooks/codex/rtk-awareness.md");
Comment thread
KuSh marked this conversation as resolved.
Resolved

/// Template written by `rtk init` when no filters.toml exists yet.
Expand Down
Loading