TraeClaw AGENTS.md

Repository instructions for installing and operating TraeClaw, an OpenClaw plugin. OpenClaw is a system that runs and manages AI agents and their extensions.

In plain words
What is it for?
Use it when installing the plugin on Windows or macOS, validating its configuration, or checking that it works after a restart.
Why use it?
They provide platform-specific installation steps and checks, avoiding unsupported direct installation methods.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/firerlagi/traeclaw/agents-md
Clone the repo
git clone --depth 1 https://github.com/firerlAGI/TraeClaw

Made for: Codex, OpenCode.

Per session 1,004 This file is loaded in full into every session.
When invoked 1,004 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2d ago against content hash c07ee7c29663, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

AGENTS.md · 83 lines

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 助手应按下面顺序执行,不要自由发挥:

  1. 先判断仓库是否已经在本地。
  2. 再判断用户平台:
    • Windows:优先使用 .ps1 脚本
    • macOS:优先使用 .sh 脚本
  3. 如果仓库不在本地:
    • 优先执行 scripts/bootstrap-openclaw-integration.ps1
    • macOS 上优先执行 scripts/bootstrap-openclaw-integration.sh
    • 或先下载 GitHub 仓库 zip,再执行对应平台的本地安装脚本
  4. 如果仓库已经在本地:
    • 直接执行 scripts/install-openclaw-integration.ps1
    • macOS 上直接执行 scripts/install-openclaw-integration.sh
  5. 安装完成后必须验证:
    • openclaw plugins info traeclaw
    • openclaw config validate
  6. 验证通过后提醒用户:
    • 重启 OpenClaw Gateway
    • 再调用一次 trae_status

如果用户要求“安装 Trae 插件到 OpenClaw”,AI 助手应优先使用下面的路径:

  1. 如果仓库还不在本地:
    • 优先执行 scripts/bootstrap-openclaw-integration.ps1
    • macOS 上优先执行 scripts/bootstrap-openclaw-integration.sh
    • 或先下载 GitHub 仓库 zip,再执行 scripts/install-openclaw-integration.ps1
  2. 如果仓库已经在本地:
    • 直接执行 scripts/install-openclaw-integration.ps1
    • macOS 上直接执行 scripts/install-openclaw-integration.sh
  3. 不要尝试直接执行:
    • openclaw plugins install <github-url>
    • openclaw plugins install <git-spec> 因为 OpenClaw 不支持直接从 GitHub URL / git spec 安装插件
  4. 配置写入优先使用官方 CLI:
    • openclaw plugins install
    • openclaw config set
    • openclaw config validate
  5. 安装完成后至少验证:
    • openclaw plugins info traeclaw
    • openclaw config validate
    • 用户重启 OpenClaw Gateway 后可调用 trae_status
  6. 如果用户已经明确给出本地仓库路径:
    • 不要再要求用户提供 GitHub 地址
    • 不要再介绍手工安装路径
    • 直接进入该路径并执行 scripts/install-openclaw-integration.ps1

OpenClaw 建议输出风格

为了让 OpenClaw 更容易执行,优先使用下面这种结构:

  1. 先说明当前判断:
    • “仓库已经在本地”
    • 或“仓库还不在本地”
  2. 再给出将要执行的唯一主命令:
    • 本地仓库: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
  3. 最后报告验证结果:
    • openclaw plugins info traeclaw
    • openclaw config validate
    • 是否需要用户重启 OpenClaw Gateway

Read the full file on GitHub · 83 lines

Changes

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.

  1. 2d ago First seen · 83 lines · 1,004 tokens per session scan A c07ee7c29663

Subscribe to this mod's changes

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.

Related

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.

openai/codex · 5,182 tokens

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).

microsoft/vscode · 6,785 tokens

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.

vercel/next.js · 7,296 tokens

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).

microsoft/vscode · 5,001 tokens

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.

github/spec-kit · 7,104 tokens

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.

langchain-ai/langchain · 4,345 tokens