RTK开发CLI代理 是 AI Skill Hub 本期精选Agent工作流之一。在 GitHub 上收获超过 49.1k 颗 Star,综合评分 8.8 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
RTK开发CLI代理 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
RTK开发CLI代理 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:cargo install(推荐) cargo install rtk # 方式二:从源码编译 git clone https://github.com/rtk-ai/rtk cd rtk cargo build --release # 二进制在 ./target/release/rtk
# 查看帮助 rtk --help # 基本运行 rtk [options] <input> # 详细使用说明请查阅文档 # https://github.com/rtk-ai/rtk
# rtk 配置说明 # 查看配置选项 rtk --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export RTK_CONFIG="/path/to/config.yml"
<p align="center"> <img src="https://avatars.githubusercontent.com/u/258253854?v=4" alt="RTK - Rust Token Killer" width="500"> </p>
<p align="center"> <strong>High-performance CLI proxy that reduces LLM token consumption by 60-90%</strong> </p>
<p align="center"> <a href="https://github.com/rtk-ai/rtk/actions"><img src="https://github.com/rtk-ai/rtk/workflows/Security%20Check/badge.svg" alt="CI"></a> <a href="https://github.com/rtk-ai/rtk/releases"><img src="https://img.shields.io/github/v/release/rtk-ai/rtk" alt="Release"></a> <a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache 2.0"></a> <a href="https://discord.gg/RySmvNF5kF"><img src="https://img.shields.io/discord/1470188214710046894?label=Discord&logo=discord" alt="Discord"></a> <a href="https://formulae.brew.sh/formula/rtk"><img src="https://img.shields.io/homebrew/v/rtk" alt="Homebrew"></a> </p>
<p align="center"> <a href="https://www.rtk-ai.app">Website</a> • <a href="#installation">Install</a> • <a href="https://www.rtk-ai.app/guide/troubleshooting">Troubleshooting</a> • <a href="docs/contributing/ARCHITECTURE.md">Architecture</a> • <a href="https://discord.gg/RySmvNF5kF">Discord</a> </p>
<p align="center"> <a href="README.md">English</a> • <a href="README_fr.md">Francais</a> • <a href="README_zh.md">中文</a> • <a href="README_ja.md">日本語</a> • <a href="README_ko.md">한국어</a> • <a href="README_es.md">Espanol</a> </p>
---
rtk filters and compresses command outputs before they reach your LLM context. Single Rust binary, 100+ supported commands, <10ms overhead.
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh
Installs to~/.local/bin. Add to PATH if needed:> echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc # or ~/.zshrc >
rtk --version # Should show "rtk 0.28.2"
rtk gain # Should show token savings stats
Name collision warning: Another project named "rtk" (Rust Type Kit) exists on crates.io. Ifrtk gainfails, you have the wrong package. Usecargo install --gitabove instead.
rtk init -g # Claude Code / Copilot (default) rtk init -g --gemini # Gemini CLI rtk init -g --codex # Codex (OpenAI) rtk init -g --agent cursor # Cursor rtk init --agent windsurf # Windsurf rtk init --agent cline # Cline / Roo Code rtk init --agent kilocode # Kilo Code rtk init --agent antigravity # Google Antigravity rtk init --agent hermes # Hermes
rtk lint # ESLint grouped by rule/file
rtk lint biome # Supports other linters
rtk tsc # TypeScript errors grouped by file
rtk next build # Next.js build compact
rtk prettier --check . # Files needing formatting
rtk cargo build # Cargo build (-80%)
rtk cargo clippy # Cargo clippy (-80%)
rtk ruff check # Python linting (JSON, -80%)
rtk golangci-lint run # Go linting (JSON, -85%)
rtk rubocop # Ruby linting (JSON, -60%+)
rtk init -g # Install hook + RTK.md (recommended)
rtk init -g --opencode # OpenCode plugin (instead of Claude Code)
rtk init -g --auto-patch # Non-interactive (CI/CD)
rtk init -g --hook-only # Hook only, no RTK.md
rtk init --show # Verify installation
After install, restart Claude Code.
rtk init -g --uninstall # Remove hook, RTK.md, settings.json entry
cargo uninstall rtk # Remove binary
brew uninstall rtk # If installed via Homebrew
```bash
Directory listing: ```
~/.config/rtk/config.toml (macOS: ~/Library/Application Support/rtk/config.toml):
[hooks]
exclude_commands = ["curl", "playwright"] # skip rewrite for these
[tee]
enabled = true # save raw output on failure (default: true)
mode = "failures" # "failures", "always", or "never"
When a command fails, RTK saves the full unfiltered output so the LLM can read it without re-executing:
FAILED: 2/15 tests
[full output: ~/.local/share/rtk/tee/1707753600_cargo_test.log]
For the full config reference (all sections, env vars, per-project filters), see the Configuration guide.
rtk pnpm list # Compact dependency tree
rtk pip list # Python packages (auto-detect uv)
rtk pip outdated # Outdated packages
rtk bundle install # Ruby gems (strip Using lines)
rtk prisma generate # Schema generation (no ASCII art)
高价值的开发效率工具,通过智能代理机制显著降低LLM成本,Rust实现确保性能稳定,活跃维护和高Star数证明市场认可度强。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,RTK开发CLI代理 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | rtk |
| 原始描述 | 开源AI工作流:CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. S。⭐49.1k · Rust |
| Topics | CLI代理令牌优化AI编码成本控制Rust开发 |
| GitHub | https://github.com/rtk-ai/rtk |
| License | Apache-2.0 |
| 语言 | Rust |
收录时间:2026-05-17 · 更新时间:2026-05-19 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端