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 instructions/firerlagi/traeclaw/agents-mdgit clone --depth 1 https://github.com/firerlAGI/TraeClawWhat 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.01004 | $0.01004 |
| Opus 5 | $0.00502 | $0.00502 |
| Sonnet 5 | $0.00201 | $0.00201 |
| Haiku 4.5 | $0.00100 | $0.00100 |
Grade A, and why
TraeClaw 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 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 — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS
本仓库优先面向中文 OpenClaw 用户。
OpenClaw 快速执行规则
如果用户要求“安装 Trae 插件到 OpenClaw”,AI 助手应按下面顺序执行,不要自由发挥:
- 先判断仓库是否已经在本地。
- 再判断用户平台:
- Windows:优先使用
.ps1脚本 - macOS:优先使用
.sh脚本
- Windows:优先使用
- 如果仓库不在本地:
- 优先执行
scripts/bootstrap-openclaw-integration.ps1 - macOS 上优先执行
scripts/bootstrap-openclaw-integration.sh - 或先下载 GitHub 仓库 zip,再执行对应平台的本地安装脚本
- 优先执行
- 如果仓库已经在本地:
- 直接执行
scripts/install-openclaw-integration.ps1 - macOS 上直接执行
scripts/install-openclaw-integration.sh
- 直接执行
- 安装完成后必须验证:
openclaw plugins info traeclawopenclaw config validate
- 验证通过后提醒用户:
- 重启 OpenClaw Gateway
- 再调用一次
trae_status
如果用户要求“安装 Trae 插件到 OpenClaw”,AI 助手应优先使用下面的路径:
- 如果仓库还不在本地:
- 优先执行
scripts/bootstrap-openclaw-integration.ps1 - macOS 上优先执行
scripts/bootstrap-openclaw-integration.sh - 或先下载 GitHub 仓库 zip,再执行
scripts/install-openclaw-integration.ps1
- 优先执行
- 如果仓库已经在本地:
- 直接执行
scripts/install-openclaw-integration.ps1 - macOS 上直接执行
scripts/install-openclaw-integration.sh
- 直接执行
- 不要尝试直接执行:
openclaw plugins install <github-url>openclaw plugins install <git-spec>因为 OpenClaw 不支持直接从 GitHub URL / git spec 安装插件
- 配置写入优先使用官方 CLI:
openclaw plugins installopenclaw config setopenclaw config validate
- 安装完成后至少验证:
openclaw plugins info traeclawopenclaw config validate- 用户重启 OpenClaw Gateway 后可调用
trae_status
- 如果用户已经明确给出本地仓库路径:
- 不要再要求用户提供 GitHub 地址
- 不要再介绍手工安装路径
- 直接进入该路径并执行
scripts/install-openclaw-integration.ps1
OpenClaw 建议输出风格
为了让 OpenClaw 更容易执行,优先使用下面这种结构:
- 先说明当前判断:
- “仓库已经在本地”
- 或“仓库还不在本地”
- 再给出将要执行的唯一主命令:
- 本地仓库:
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\install-openclaw-integration.ps1 - 远程仓库:
powershell -NoProfile -ExecutionPolicy Bypass -File .\bootstrap-openclaw-integration.ps1 - macOS 本地仓库:
bash ./scripts/install-openclaw-integration.sh - macOS 远程仓库:
bash ./scripts/bootstrap-openclaw-integration.sh
- 本地仓库:
- 最后报告验证结果:
openclaw plugins info traeclawopenclaw config validate- 是否需要用户重启 OpenClaw Gateway
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 · 83 lines · 1,004 tokens per session scan A c07ee7c29663
TraeClaw AGENTS.md is an instructions file published in the GitHub repository firerlAGI/TraeClaw (87 stars, last pushed 5mo ago), licensed MIT. It adds 1,004 tokens to every session, about $0.0050 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 instructions, from other repositories
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.