A Claude Code PreToolUse hook on Bash execs `rtk hook claude` when rtk is on PATH and passes its answer through unchanged; without rtk it exits 0 silently. It acts only from .claude/hooks/, like git's push guard. Refs: #179 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
30 lines
928 B
YAML
30 lines
928 B
YAML
name: rtk
|
|
version: 0.1.0
|
|
description: A Claude Code hook that routes Bash tool calls through rtk, the token-saving command wrapper, when rtk is installed.
|
|
author:
|
|
name: Mortis
|
|
url: https://git.rkdr.net/Mortis/
|
|
license: MIT
|
|
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/rtk
|
|
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/rtk
|
|
keywords:
|
|
- rtk
|
|
- hooks
|
|
- tokens
|
|
# Which agent platforms to deploy to.
|
|
# Resolution order: --target flag > this field > auto-detect from filesystem.
|
|
# Accepted values: agent-skills, antigravity, claude, codex, copilot, cursor, gemini, grok-build, kiro, opencode, windsurf
|
|
# Claude only: the hook speaks `rtk hook claude`. The script also refuses to act
|
|
# outside .claude/hooks/, in case a consumer forces another target.
|
|
targets:
|
|
- claude
|
|
type: hybrid
|
|
|
|
dependencies:
|
|
apm: []
|
|
mcp: []
|
|
includes: auto
|
|
devDependencies:
|
|
apm: []
|
|
scripts: {}
|