Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add echoVic/blade-code --skill tool-execution-pipelinegit clone --depth 1 https://github.com/echoVic/blade-codeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/echovic/blade-code/tool-execution-pipeline)<a href="https://agentmods.dev/skills/echovic/blade-code/tool-execution-pipeline"><img src="https://agentmods.dev/badge/skills/echovic/blade-code/tool-execution-pipeline/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/echovic/blade-code/tool-execution-pipeline"><img src="https://agentmods.dev/badge/skills/echovic/blade-code/tool-execution-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00165 | $0.03121 |
| Opus 5.5 | $0.00066 | $0.01248 |
| Sonnet 5.5 | $0.00033 | $0.00624 |
| Haiku 4.5 | $0.00016 | $0.00312 |
Grade A, and why
knowledge-tool-execution-pipeline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
88% identical to knowledge-tool-and-automation-platform — 133 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Module Structure
该组件把已注册工具调用变成受控副作用。执行器本身无 Session 持久状态,但通过
ExecutionContext 接收 Session 身份、工作区、权限、取消和交互处理器,并协调多个
进程级与 Session 级资源门。
Directory Layout
packages/cli/src/tools/execution/ToolExecutor.ts— 当前平铺执行流程与历史记录packages/cli/src/tools/execution/ToolInvocationRunner.ts— 调用计时与显式安全重试packages/cli/src/tools/execution/PermissionResolver.ts— 规则、模式、Session 批准与敏感路径合并packages/cli/src/tools/execution/ToolExecutionHooks.ts— Pre/Post Hook 适配及参数重建packages/cli/src/tools/execution/ToolConcurrencyGate.ts— 单执行器 shared/exclusive FIFO 屏障packages/cli/src/tools/execution/ConcurrencyScheduler.ts— 全局、Session、ToolKind 多维容量调度packages/cli/src/tools/execution/FileLockManager.ts— canonical 路径锁与稳定顺序多锁packages/cli/src/tools/execution/AutoVerify.ts— 受信任本地编辑后的 Session-owned 类型诊断packages/cli/src/agent/loop/StreamingToolExecutor.ts— 流式预启动、持久化和结果有序交付packages/cli/src/tools/display/ToolResultProjector.ts— durable 结果恢复与表面裁剪
Key Entry Points
ToolExecutor.execute()inpackages/cli/src/tools/execution/ToolExecutor.ts— 创建 execution identity 并运行完整流程executeToolInvocation()inpackages/cli/src/tools/execution/ToolInvocationRunner.ts— 执行 invocation、记录耗时并实施重试策略StreamingToolExecutor.addTool()inpackages/cli/src/agent/loop/StreamingToolExecutor.ts— 决定预启动、排队或拒绝一次流式调用AutoVerifyRuntime.verify()inpackages/cli/src/tools/execution/AutoVerify.ts— 对成功文件写入追加相关类型错误
API Surface
ToolExecutor
execute(toolName, params, context)— 合并默认上下文并执行一次完整受控调用executeAll()/executeParallel()— 保序收集批量结果,底层仍通过相同 gate 与 schedulergetExecutionHistory()/getStats()— 读取有界内存执行历史与聚合统计dispose()— 关闭本执行器 gate、取消该 owner 的排队任务并释放注入资源
Execution Coordination
ToolConcurrencyGate.run()— 在一个 executor 内提供 shared 并行和 exclusive FIFO 屏障ConcurrencyScheduler.schedule()— 在进程与 Session 两级按ToolKind公平准入FileLockManager.acquireLock()/acquireLocks()— 按 canonical 路径串行写入并避免多锁死锁ToolTurnAdmission.admit()— 将单轮 tool call 数限制为 64
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 111 lines · 165 tokens per session scan A 24e4549be9c9
knowledge-tool-execution-pipeline is a skill published in the GitHub repository echoVic/blade-code (181 stars, last pushed 3d ago), licensed MIT. It adds 165 tokens to every session and 3,121 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to knowledge-tool-and-automation-platform, differing in 133 lines, and is treated as a copy.
Other skills, from other repositories
smiles-validation
Strict SMILES validation, structural comparison, and modification verification. Catches invalid LLM-generated molecules.
tricorder-cli
Full CLI reference for the tricorder daemon (build diagnostics, test results, source lookup, eval comments, logs). This is the fallback invoked by the tricorder skill when the tricorder-mcp MCP tools aren't available or aren't working — invoke tricorder first; it decides whether this is needed.
tricorder-mcp
Check GHCi build status, diagnostics, and test results for this Haskell project via the tricorder MCP server. Use when asked to check the build, see compiler errors/warnings, or run tricorder.
tricorder
Check GHCi build status, compiler errors/warnings, or test results for this Haskell project. Use when asked to check the build, see errors/warnings, or run tricorder.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.