dotfiles / rtk
AGENTS.md16 starsChanged 4 months agoMITView on GitHub
RTK is a CLI proxy that filters/compacts command output before it reaches the LLM context (60–90% token savings on dev ops). Installed via Homebrew. Both are symlinked by the Makefile into ~/Library/Application Support/rtk/.
In this repository105 other files it gives its agents.
- ableton/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- aichat/AGENTS.mdAGENTS.md
- aider/AGENTS.mdAGENTS.md
- annepro2/AGENTS.mdAGENTS.md
- atuin/AGENTS.mdAGENTS.md
- btop/AGENTS.mdAGENTS.md
- chromium-vimium-extension/AGENTS.mdAGENTS.md
- claude-code/AGENTS.mdAGENTS.md
- codex/AGENTS.mdAGENTS.md
- contextMenu/AGENTS.mdAGENTS.md
- cron/AGENTS.mdAGENTS.md
- crush/AGENTS.mdAGENTS.md
- docker/AGENTS.mdAGENTS.md
- docker-logger/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- eqmac/AGENTS.mdAGENTS.md
- eza/AGENTS.mdAGENTS.md
- firefox-vimium-addon/AGENTS.mdAGENTS.md
- fork/AGENTS.mdAGENTS.md
- hammerspoon/AGENTS.mdAGENTS.md
- hermes/AGENTS.mdAGENTS.md
- heroic/AGENTS.mdAGENTS.md
- homebrew/AGENTS.mdAGENTS.md
- iina/AGENTS.mdAGENTS.md
- immich/AGENTS.mdAGENTS.md
- install/AGENTS.mdAGENTS.md
- iterm/AGENTS.mdAGENTS.md
- karabiner/AGENTS.mdAGENTS.md
- keyboard-layout/AGENTS.mdAGENTS.md
- lazydocker/AGENTS.mdAGENTS.md
- lazygit/AGENTS.mdAGENTS.md
- litellm/AGENTS.mdAGENTS.md
- macos/AGENTS.mdAGENTS.md
- macos_cleanup/AGENTS.mdAGENTS.md
- macos_update/AGENTS.mdAGENTS.md
- marta/AGENTS.mdAGENTS.md
- mistral-vibe/AGENTS.mdAGENTS.md
- noti/AGENTS.mdAGENTS.md
- npm/AGENTS.mdAGENTS.md
- opencode/AGENTS.mdAGENTS.md
- python/AGENTS.mdAGENTS.md
- qdrant/AGENTS.mdAGENTS.md
- qwen-code/AGENTS.mdAGENTS.md
- rag/AGENTS.mdAGENTS.md
- tmux/AGENTS.mdAGENTS.md
- uv/AGENTS.mdAGENTS.md
- voiceink/AGENTS.mdAGENTS.md
- vscode/AGENTS.mdAGENTS.md
- xcode/AGENTS.mdAGENTS.md
- zap/AGENTS.mdAGENTS.md
- zsh/AGENTS.mdAGENTS.md
- ableton/CLAUDE.mdCLAUDE.md
- aichat/CLAUDE.mdCLAUDE.md
- aider/CLAUDE.mdCLAUDE.md
- annepro2/CLAUDE.mdCLAUDE.md
- atuin/CLAUDE.mdCLAUDE.md
- btop/CLAUDE.mdCLAUDE.md
- chromium-vimium-extension/CLAUDE.mdCLAUDE.md
- claude-code/CLAUDE.mdCLAUDE.md
- The first 60 shown.
The file
Files
rtk/ — Rust Token Killer config
RTK is a CLI proxy that filters/compacts command output before it reaches the LLM context (60–90% token savings on dev ops). Installed via Homebrew.
What lives here (version-controlled)
config.toml— global RTK config (mirrors built-in defaults; tune here).filters.toml— custom per-command output filters (python3, hammerspoon, launchctl, docker-compose, git ls-files, …). Add new noisy commands here.
Both are symlinked by the Makefile into ~/Library/Application Support/rtk/.
What is NOT tracked (runtime data, lives only in Application Support)
history.db— per-command savings analytics (large, ephemeral).tee/— captured stdout/stderr of failed commands..DS_Store,.hook_warn_last.
How RTK is wired
- Auto-rewrite: a Claude Code PreToolUse hook (
rtk hook claude, seeclaude-code/settings.json) rewrites Bash commands transparently (git status→rtk git status), including&&-chains. No manual prefixing. - Docs for the AI:
claude-code/RTK.md(imported into the global CLAUDE.md).
Adding a filter
Edit filters.toml, then rtk config to confirm it loads. A filter matches a
command by regex (match_command) and strips/caps its output. Find candidates
with rtk discover (missed savings) — the top "unhandled" commands are the ones
worth a filter.
Useful meta commands
rtk gain— token savings so far (global).rtk discover— commands still bypassing RTK + est. savings.rtk learn— recurring CLI corrections from history (see note below).
Note on rtk learn
For this user it currently yields 0 recurring rules — corrections are
overwhelmingly unique one-off heredocs, not repeated mistakes. The real lever is
turning recurring inline heredocs into named scripts in zsh/bin/ (see
docs/commands.md), so they stop being opaque one-liners RTK can't compact.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

