Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use when running verbose CLI commands — wraps them with rtk (Rust Token Killer, third-party Apache-2.0; upstream reports 60-90% token savings). Covers installation, configuration, and usage patterns.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
High-performance CLI proxy that reduces LLM token consumption on common dev commands through intelligent output filtering (whitespace, boilerplate, comments, duplicate log messages). Single Rust binary, <10ms startup overhead. Third-party Apache-2.0 tool (rtk-ai upstream — an external project, not part of this package).
Savings — STALE, and scoped. Do not quote the number without this label.
Upstream reports 60-90% (their estimate — "actual savings vary").
agent-config's own figure is 33% overall, 0-57% per command, and it is a
single spot-measurement from 2026-07-28: one repo, one macOS machine, an
8-command corpus. It has not been superseded by a wider run, and the
widened re-bench is deferred — road-to-terminal-token-economy steps
3.2-3.4. The reason changed on 2026-08-23 and the label is updated with it: the
original deferral was ordering (Phase 2 had not chosen the wrapper mechanism, so a
re-bench would measure the wrong subject). Phase 2 has now chosen — the existing
warn-only nudge — so that objection is discharged. What defers it now is the
re-bench's own registered design, which requires at least two machines, and only
one is reachable. A one-machine re-bench would reproduce exactly the narrowness the
widening exists to fix. AI council 2026-08-23, 2/2 convergent, on both readings.
Treat it as an order of magnitude for that corpus, never as this package's
general claim. Verbose commands (git status, git log, ls -la) save ~55%;
already-compact output (--oneline, --stat) passes through at ~0%, which is
why an overall percentage is meaningless without the corpus that produced it.
See internal/bench/rtk-savings/RESULTS.md.
Docs: https://www.mintlify.com/rtk-ai/rtk Repo: https://github.com/rtk-ai/rtk
Wrap any CLI command with rtk:
rtk git status # verbose status → compact (measured ~55% here)
rtk git log # compact log output (measured ~55% here)
rtk cargo test # upstream: only failures shown
rtk npm test # same for JS/TS
rtk docker compose ps # compact container status
personal.rtk_installed from .agent-settings.yml..rtk/filters.toml.personal.rtk_installed: true → prefix commands with rtk
when output >30 lines expected.false or missing → use plain commands. Do not prompt the user.Installation and one-time setup are owned by
the setup wizard (agent-config setup). If the user asks to install rtk
outside onboarding, follow the Installation section below and set
personal.rtk_installed: true on success.
rtk prefixInvoked when rtk is not on PATH and the user explicitly asks to install
it. Never fire unsolicited.
src/install/rtkDetection.ts / docs/contracts/rtk-detection.md):
brew install rtk (official homebrew-core formula)curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/master/install.sh | sh
(installs to ~/.local/bin)winget install rtk-ai.rtk (plus the documented ripgrep
dependency: winget install BurntSushi.ripgrep.MSVC); winget-less
images use the upstream rtk-x86_64-pc-windows-msvc.zip release.
NEVER cargo install rtk — the bare crates.io rtk crate is the
unrelated Rust Type Kit, not Rust Token Killer.rtk gain to verify IDENTITY (the savings dashboard prints "RTK
Token Savings" only on Rust Token Killer — rtk --version cannot
distinguish the two same-name tools).rtk init --global to enable auto-rewrite hooks.personal.rtk_installed: true to .agent-settings.yml.After installation, always apply these steps before any rtk usage:
rtk ships with telemetry enabled by default (opt-out). Sends anonymous usage data daily.
# Add BOTH — env var (immediate) + config (persistent)
echo 'export RTK_TELEMETRY_DISABLED=1' >> ~/.zshrc
mkdir -p ~/.config/rtk
# In ~/.config/rtk/config.toml:
# [telemetry]
# enabled = false
Saves raw unfiltered output on command failures. Auto-cleans (max 20 files, oldest deleted). Prevents re-running commands just to see full output.
# In ~/.config/rtk/config.toml:
[tee]
enabled = true
mode = "failures"
max_files = 20
max_file_size = 1048576
Logs all hook-rewritten commands so you can trace what rtk intercepted.
echo 'export RTK_HOOK_AUDIT=1' >> ~/.zshrc
~/.config/rtk/config.toml)[telemetry]
enabled = false
[tracking]
enabled = true
history_days = 30
[tee]
enabled = true
mode = "failures"
max_files = 20
max_file_size = 1048576
[display]
colors = true
emoji = true
max_width = 120
| Command | Use rtk? |
|---|---|
git status/log | ✅ Always |
git push/pull | ✅ Always |
Test runners (cargo test, npm test, phpunit) | ✅ Always |
Linters (phpstan, eslint, tsc) | ✅ Always |
docker compose ps/logs | ✅ Always |
| Short commands (< 5 lines expected) | ❌ No overhead benefit |
Commands piped to grep/tail already | ❌ Already filtered |
| Command | Why |
|---|---|
git diff | ⛔ Silent truncation at ~50 changes — LLM decides on incomplete data (Issue #827) |
rtk read | ⛔ Same truncation risk — use cat/view instead |
| Any command where completeness matters | ⛔ rtk may strip context needed for correct decisions |
When debugging or reviewing diffs, always run the raw command without rtk.
Project-local custom filters live in .rtk/filters.toml (project root, versioned in Git). These override global filters for matching commands. Add entries for whatever tools the project actually runs.
Coverage shipped with this package (extend per project):
go test, go build, go vet, golangci-lintcargo build, cargo test, cargo clippy, cargo fmtTo generate or update project-local filters → use the /optimize-rtk-filters command.
rtk git diff silently truncates at ~50 changes — you'll make decisions on incomplete datartk read has the same truncation risk — always use cat/view insteadmode = "failures") is your safety net — without it, re-run is the only optionrtk for git diff or any command where completeness mattersgrep/tail아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.