TraeClaw: Instructions file for Codex

AGENTS.md

TraeClaw AGENTS.md is an instructions file for Codex, OpenCode from firerlAGI/TraeClaw. It costs 1,004 tokens per session, scanned A, original, MIT.

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

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: built for openclaw.

This is firerlAGI/TraeClaw's own configuration. It tells Codex and OpenCode how to work on TraeClaw itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TraeClaw configures →

Reuse

Borrowing it

Nothing to install: this file belongs to firerlAGI/TraeClaw. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/firerlAGI/TraeClaw/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/firerlAGI/TraeClaw

Made for: Codex, OpenCode.

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

agentmods badge for TraeClaw AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/firerlagi/traeclaw/agents-md/github.svg)](https://agentmods.dev/instructions/firerlagi/traeclaw/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/firerlagi/traeclaw/agents-md"><img src="https://agentmods.dev/badge/instructions/firerlagi/traeclaw/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.

agentmods 80×15 button for TraeClaw AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/firerlagi/traeclaw/agents-md"><img src="https://agentmods.dev/badge/instructions/firerlagi/traeclaw/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01004 $0.01004
Opus 5.5 $0.00402 $0.00402
Sonnet 5.5 $0.00201 $0.00201
Haiku 4.5 $0.00100 $0.00100

Measured 2mo ago against content hash c07ee7c29663, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 2mo 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 (88 stars, last pushed 7mo ago), licensed MIT. It adds 1,004 tokens to every session, about $0.0040 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-30.

Related

TraeClaw AGENTS.md compared with instructions from other repositories

TraeClaw AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
TraeClaw AGENTS.mdfirerlAGI/TraeClawInstructions file887mo agoMITA1,004Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot