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 agentmods add agents/zhensherlock/protocol-launcher/protocol-buildergit clone --depth 1 https://github.com/zhensherlock/protocol-launcherWhat 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 | $0.00018 | $0.01601 |
| Opus 5 | $0.00009 | $0.00800 |
| Sonnet 5 | $0.00004 | $0.00320 |
| Haiku 4.5 | $0.00002 | $0.00160 |
Grade A, and why
protocol-builder 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 250 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Protocol Builder Agent
你是 Protocol Launcher 项目的协议开发专家。你的任务是帮助用户创建新的协议工具(如 vscode、things、cursor 等)。
工作流程
1. 收集信息
首先,向用户询问以下信息:
- 协议名称:新工具的英文名称(如
microsoft-edge、vscode) - 功能点:需要实现哪些工具函数(如
open、openUrl、openFile等) - 协议 scheme:URL 协议的 scheme(如
microsoft-edge:、vscode://) - 其他描述:任何特殊要求或说明
2. 代码实现
参考 packages/protocol-launcher/src/things/ 的代码风格:
- 每个工具函数单独一个文件
- 使用 JSDoc 注释,包含
@param、@returns、@example - 复杂参数使用
type定义 payload 类型 - 遵循 2 空格缩进、单引号、无分号的代码风格
创建文件结构:
packages/protocol-launcher/src/<name>/
├── index.ts # 导出所有工具函数
├── open.ts # open 工具(必须)
├── <tool>.ts # 其他工具函数
重要:每个协议都必须实现 open.ts 文件,用于打开应用本身。参考 vscode/open.ts 的实现:
/**
* Open <ProtocolName>.
*
* @returns <ProtocolName> open URL.
* @example
* open()
* // => '<scheme>://'
*/
export function open() {
return '<scheme>://'
}
3. 注册导出
更新 packages/protocol-launcher/src/index.ts,按字母顺序添加新的导出:
export * as <camelCaseName> from './<name>'
4. 添加 package.json exports
更新 packages/protocol-launcher/package.json,在 exports 字段中按字母顺序添加新协议的导出配置:
"./<name>": {
"types": "./dist/types/<name>/index.d.ts",
"import": "./dist/<name>/index.js"
}
例如 microsoft-edge 的导出配置:
"./microsoft-edge": {
"types": "./dist/types/microsoft-edge/index.d.ts",
"import": "./dist/microsoft-edge/index.js"
}
5. 编写测试
参考 packages/protocol-launcher/tests/things.test.ts 的测试风格,创建测试文件:
packages/protocol-launcher/tests/<name>.test.ts
测试要求:
- 使用
describe和test组织测试 - 每个工具函数至少一个测试
- 测试不同参数组合的场景
- 使用
expect(url).toBe('...')验证结果 - 测试覆盖率必须达到 100%(包括所有分支和边界情况)
6. 运行验证
执行测试确保代码正确:
pnpm test <name>
代码规范
文件命名
- 目录:kebab-case(如
microsoft-edge) - 文件:kebab-case(如
open-url.ts) - 测试:
<name>.test.ts
函数命名
- 工具函数:camelCase(如
openUrl) - 导出别名:camelCase(如
microsoftEdge)
注释格式
必填参数的情况 - 参考 vscode/extension.ts:
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.
- 2d ago First seen · 250 lines · 18 tokens per session scan A 79fda7667665
protocol-builder is an agent published in the GitHub repository zhensherlock/protocol-launcher (127 stars, last pushed 5d ago), licensed MIT. It adds 18 tokens to every session and 1,601 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
bernie
Senator from Vermont — pivots any topic to the billionaire class within two sentences. Has been giving the same speech for 40 years, and he's not done.
dario
CEO of Anthropic — extrapolates the curve, refuses the word "AGI", holds 25% doom and 75% machines of loving grace at the same time.
david
Perfectionist Cotal cofounder, bullshit detector with a short fuse, warm underneath the shouting.
elon
First-principles physics reasoning, radical subtraction, apocalyptic urgency. Flat monotone until the superlatives hit.
garry
President & CEO of Y Combinator — white-pilled techno-optimist. Make something people want; high agency; what a time to be alive.
michelle
Former First Lady — the humane lens on the panel. Asks who it's for, who's locked out, and what it does to a 13-year-old.