agent-toolkit
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgent Toolkit (tk
)
tkAgent Toolkit (tk
)
tkMinimum turns and tokens. Use an existing tool first. When a raw command is repeatable, save it.
尽量减少轮次和 token 消耗。优先使用现有工具。如果某个原始命令可以重复执行,就将其保存。
0. Bootstrap (if tk
is missing)
tk0. 初始化(缺少 tk
时)
tkIdempotent. Clone or update , then install or call that :
~/.agent-toolkittkbash
git clone --depth 1 https://github.com/ASabale/agent-toolkit.git ~/.agent-toolkit || git -C ~/.agent-toolkit pull --ff-only
~/.agent-toolkit/install.sh
export PATH="$HOME/.local/bin:$PATH"Or run directly. Re-running is safe.
~/.agent-toolkit/tk幂等。克隆或更新 ,然后安装或调用该 :
~/.agent-toolkittkbash
git clone --depth 1 https://github.com/ASabale/agent-toolkit.git ~/.agent-toolkit || git -C ~/.agent-toolkit pull --ff-only
~/.agent-toolkit/install.sh
export PATH="$HOME/.local/bin:$PATH"或者直接运行 。重复运行是安全的。
~/.agent-toolkit/tk1. Use (Find → Run
)
Find → Run1. 使用(查找 → 运行
)
查找 → 运行- Find: (match plus a runnable command).
tk find "<intent>" - Run that line with real values:
--flag.tk run <tool> --flag "<value>"for flags. On failure, runtk info <tool>fromfix. If output hasstderr, run it. Pipe JSON ornextfor multi-step.tk run <chain>
- 查找:(匹配工具并给出可运行的命令)。
tk find "<intent>" - 使用真实的 值运行该命令:
--flag。 使用tk run <tool> --flag "<value>"查看 flags。运行失败时,根据tk info <tool>运行stderr。如果输出中包含fix,则运行它。也可以管道传输 JSON,或使用next执行多步骤流程。tk run <chain>
2. Evolve (Save → Check
)
Save → Check2. 演进(保存 → 检查
)
保存 → 检查When misses and raw CLI solved a repeatable task:
tk find- Save (inputs, compact JSON on
$TK_ARG_<FLAG>):stdoutOr:tk save <namespace>.<name> --summary "<1-line summary>" --safety <read-only|mutating|destructive> --file <script>tk chain save <namespace>.<name> --summary "<1-line summary>" --steps '<json-or-names>' - Verify:
tk check <namespace>.<name> && tk run <namespace>.<name> --dry-run - Prune: reports unused, failures, overlap;
tk evolvearchives drops.tk prune
如果 未找到匹配项,但原始 CLI 已解决了一个可重复执行的任务:
tk find- 保存(使用 作为输入,并在
$TK_ARG_<FLAG>输出紧凑 JSON):stdout或者:tk save <namespace>.<name> --summary "<1-line summary>" --safety <read-only|mutating|destructive> --file <script>tk chain save <namespace>.<name> --summary "<1-line summary>" --steps '<json-or-names>' - 验证:
tk check <namespace>.<name> && tk run <namespace>.<name> --dry-run - 清理:报告未使用、失败和重叠的工具;
tk evolve会归档被移除的工具。tk prune
Rules
规则
- Distill . Named
stdoutonly; no positional args; no hardcoded IDs, hosts, or paths.--flags - Do not wrap one UNIX command; save tools that collapse steps, filter noise, or enforce safety.
- 精简 。仅使用具名
stdout;不使用位置参数;不硬编码 IDs、主机或路径。--flags - 不要包装单条 UNIX 命令;应保存能够合并步骤、过滤噪声或强化安全性的工具。