Borrowing it
Nothing to install: this file belongs to Walvez/grok-subagent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Walvez/grok-subagent/main/AGENTS.mdgit clone --depth 1 https://github.com/Walvez/grok-subagentWrote 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/instructions/walvez/grok-subagent/agents-md)<a href="https://agentmods.dev/instructions/walvez/grok-subagent/agents-md"><img src="https://agentmods.dev/badge/instructions/walvez/grok-subagent/agents-md/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/instructions/walvez/grok-subagent/agents-md"><img src="https://agentmods.dev/badge/instructions/walvez/grok-subagent/agents-md.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.00591 | $0.00591 |
| Opus 5.5 | $0.00236 | $0.00236 |
| Sonnet 5.5 | $0.00118 | $0.00118 |
| Haiku 4.5 | $0.00059 | $0.00059 |
Grade A, and why
grok-subagent AGENTS.md 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 2mo 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.
What it actually says
AGENTS.md
项目定位
Codex 插件:通过官方 Grok Build CLI,把 Grok 作为受控外部子 Agent,并支持仓库外的 Grok 原生 X/Web 搜索。Codex 负责编排与最终核验。
怎么跑起来
# 依赖:Node.js 22+、已登录的官方 Grok CLI(~/.grok/bin/grok 或 grok)
npm test
codex plugin marketplace add "$PWD"
codex plugin add grok-subagent@walvez-grok
# 安装后必须新建 Codex 任务,旧会话不会热加载 Skill/MCP
搜索 smoke(会消耗 Grok 额度):
python3 plugins/grok-subagent/scripts/run_search.py run --platform x --depth quick --since 3d "..."
技术栈
- 无 npm 运行时依赖
- MCP stdio bridge:
plugins/grok-subagent/mcp-server/server.mjs - 官方
grok agent stdio(ACP)用于只读/写入/交互 - 隔离搜索桥:
plugins/grok-subagent/scripts/run_search.py(改编自 sudoHG/codex-grok-search)
目录与约定
- 插件根:
plugins/grok-subagent/ - Skill:
plugins/grok-subagent/skills/grok-subagent/SKILL.md - 中文 README 是默认入口;英文见
README.en.md;README.zh-CN.md仅为迁移跳转 - 用户可见行为变更时同步更新
README.md、README.en.md、CHANGELOG.md、ARCHITECTURE.md、SECURITY.md - 写入模式只允许 linked Git worktree(
.git为文件),禁止主检出 - 搜索模式禁止进入当前仓库 cwd;结果缓存在
~/.cache/grok-subagent/search-runs - 不要提交
~/.grok/auth.json、token、私有 prompt 或含真实密钥的测试仓
当前状态与下一步
- 现役版本:
0.4.0,main已含隔离搜索工具 - 本地插件缓存:
~/.codex/plugins/cache/walvez-grok/grok-subagent/0.4.0 - 公开 GitHub Release 仍停在
v0.3.1;若要对外安装路径解析到 0.4.0,需要补 tag/Release - 新任务中优先:项目审查用
grok_spawn_readonly;X/Reddit/实时公开研究用grok_search
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.
- 2mo ago First seen · 46 lines · 591 tokens per session scan A 67e356c79db6
grok-subagent AGENTS.md is an instructions file published in the GitHub repository Walvez/grok-subagent (5 stars, last pushed 3mo ago), licensed MIT. It adds 591 tokens to every session, about $0.0024 per session on Opus 5.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-31.
grok-subagent AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| grok-subagent AGENTS.mdWalvez/grok-subagent | Instructions file | 5 | 3mo ago | MIT | A | 591 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 275k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |