cocos-extensions AGENTS.md

cocos-extensions AGENTS.md is an instructions file for Codex, OpenCode from hhhh124hhhh/cocos-extensions. It costs 3,213 tokens per session, scanned A, original, MIT.

Installation instructions for a Cocos Creator integration that connects a coding agent to the editor through an HTTP service and adds preset expert roles.

In plain words
What is it for?
Use them to install or troubleshoot the Cocos agent bundle, editor bridge, expert presets, and team setup.
Why use it?
They explain the two-part connection and the setup requirements, so the agent and Cocos editor can communicate correctly.

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/hhhh124hhhh/cocos-extensions/agents-md
Clone the repo
git clone --depth 1 https://github.com/hhhh124hhhh/cocos-extensions

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 cocos-extensions AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hhhh124hhhh/cocos-extensions/agents-md.svg)](https://agentmods.dev/instructions/hhhh124hhhh/cocos-extensions/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/hhhh124hhhh/cocos-extensions/agents-md"><img src="https://agentmods.dev/badge/instructions/hhhh124hhhh/cocos-extensions/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,213 This file is loaded in full into every session.
When invoked 3,213 The same file — it is already loaded in full.
Security scan A 2 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.03213 $0.03213
Opus 5 $0.01606 $0.01606
Sonnet 5 $0.00643 $0.00643
Haiku 4.5 $0.00321 $0.00321

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

Security

Grade A, and why

cocos-extensions AGENTS.md scanned grade A with 2 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -o /dev/null -w "8765 -> %{http_code}\n" http://127.0.0.1:8765/

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

> **为什么默认不走 `dsh plugin add` / 不删旧文件**:WorkBuddy 运行环境注入了 `genie-safe-delete` shim,会把 **node 自身的 `fs.rmSync`** 也路由到「回收站(trash)」,而本机 EDR 拦回收站操作 → 抛 `[safe-delete] 操作失败: Some operations were aborted`。这不只影响 pnpm,**任何在 WorkBu
AGENTS.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cocos MCP Stack — Agent 安装指南

本目录是 Cocos AI 工程助手 的完整可分发单元,包含两套必须同时存在的组件。 任何 agent(dsh / Claude Code / 其他编码 agent)都可以照本指南把整套装好。


1. 这套东西由什么组成

组件 角色 装到哪里 缺了会怎样
cocos-codely dsh 客户端 bundle。告诉 dsh「连 http://127.0.0.1:8765/」并注入 Cocos 方法论预设 dsh web profile dsh 没有 mcp__cocos__* 工具,连不上
cocos-mcp-bridge Cocos Creator 编辑器扩展。在编辑器载入工程时于 8765 自起 HTTP MCP 服务,并内置 Codely 聊天面板 ~/.CocosCreator/extensions/ 8765 没人接,dsh 拨过去空转;编辑器内没有 Codely 面板
agent-presets/ 专家团预设(7 个角色 + Cocos Game Studio 队长)+ AgentTeams 多 agent 协作 ~/.dsh/.agent-presets/ + profile bundles 没有可选的专家角色预设 / 不能拉团队

关键心智模型:dsh 插件是「电话线」,bridge 是「对面接电话的人」。 线装对了但没人接(bridge 没起)= 打不通。两者必须同时在线。


2. 前置条件

  • 已安装 dsh(存在 profile web,默认路径 ~/.dsh/profiles/web)。
  • 已安装 Cocos Creator 3.x(全局扩展目录 ~/.CocosCreator/extensions/ 会自动创建)。
  • 运行环境:Node.js(用于跑安装器);Windows / macOS / Linux 均可。

3. 一键安装(推荐 agent 直接跑)

node install-cocos-stack.mjs

安装器会幂等地完成:

  1. cocos-codely 装进 dsh profile:默认覆盖式手工同步(复制白名单文件到 node_modules/cocos-codely + 校准 profile package.jsondependencies/bundles)。传 --try-dsh 才先尝试官方 dsh plugin add,失败自动回退手工。
  2. cocos-mcp-bridge 装入 ~/.CocosCreator/extensions/:优先 junction(跨卷也可、免管理员、源码实时同步),失败或 --copy-bridge 时回退拷贝。
  3. agent-presets/(8 个专家团预设)同步到 ~/.dsh/.agent-presets/,并激活 @nanmicoder/dsh-agent-teams(AgentTeams 多 agent 协作插件,包在 profile node_modules 时挂 bundle;新机未装会提示装法)。
  4. 打印验证命令与下一步。

参数:

  • --profile <name>:dsh profile 名,默认 web
  • --try-dsh:先试官方 dsh plugin add(本机 EDR 会拦,会自动回退)。
  • --copy-bridge:bridge 强制拷贝而非 junction(分享给别人时用这个)。
  • --dry-run:只打印将要做什么,不落盘。

为什么默认不走 dsh plugin add / 不删旧文件:WorkBuddy 运行环境注入了 genie-safe-delete shim,会把 node 自身的 fs.rmSync 也路由到「回收站(trash)」,而本机 EDR 拦回收站操作 → 抛 [safe-delete] 操作失败: Some operations were aborted。这不只影响 pnpm,任何在 WorkBuddy 里跑的 node 删除操作都会中招。因此安装器 STEP 1 完全不删、只覆盖同步,删除动作(仅 bridge 换链时)走 OS 原生 rmdir(execSync,绕开被劫持的 node fs)。全程不需要关闭/排除任何杀软

Read the full file on GitHub · 152 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. 4d ago First seen · 152 lines · 3,213 tokens per session scan A 6833b5b0f0b7

Subscribe to this mod's changes

cocos-extensions AGENTS.md is an instructions file published in the GitHub repository hhhh124hhhh/cocos-extensions (4 stars, last pushed 14d ago), licensed MIT. It adds 3,213 tokens to every session, about $0.0161 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

godot-mcp AGENTS.md

AGENTS.md instructions for sandraschi/godot-mcp, covering agents.md — godot-mcp context, essential paths, module registration, key dependencies and conventions.

sandraschi/godot-mcp · 838 tokens

godot-mcp CLAUDE.md

Claude Code instructions for sandraschi/godot-mcp, covering godot-mcp — claude code guide, standards and key files.

sandraschi/godot-mcp · 190 tokens

godot-mcp copilot-instructions.md

Copilot instructions for sandraschi/godot-mcp: You have access to a Godot 4 game engine control server with 49 tools across 10 domains: engine control, asset import/export, game building, fleet coordination, itch.io shipping, Steam publishing, animation, particles, HTML5 export, and cross-server MCP bridging.

sandraschi/godot-mcp · 123 tokens

o3de-mcp AGENTS.md

AGENTS.md instructions for nickschuetz/o3de-mcp, covering agent guide — o3de-mcp, quick start decision tree, token efficiency rules, 1. batch over individual calls and 2. query before modifying.

nickschuetz/o3de-mcp · 1,722 tokens

mcp-unity AGENTS.md

Instructions for CoderGamester/mcp-unity, covering mcp unity — ai agent guide (mcp package), purpose (what this repo is), how it works (high-level data flow), key defaults & invariants and repo layout (where to change what).

CoderGamester/mcp-unity · 2,498 tokens

GodotMaker CLAUDE.md

Claude Code instructions for RandallLiuXin/GodotMaker, covering claude.md, project overview, repository structure, shared reference docs (skills/core/shared/) and key commands.

RandallLiuXin/GodotMaker · 1,146 tokens