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/itq5/openclaw-admin/agents-mdgit clone --depth 1 https://github.com/itq5/OpenClaw-AdminWhat 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.01119 | $0.01119 |
| Opus 5 | $0.00560 | $0.00560 |
| Sonnet 5 | $0.00224 | $0.00224 |
| Haiku 4.5 | $0.00112 | $0.00112 |
Grade A, and why
OpenClaw-Admin 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 — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
仓库协作指南
项目结构与模块组织
src/main.ts:应用入口,注册 Pinia 与 Router。src/views/**:路由级页面,功能页使用*Page.vue命名。src/components/layout:布局壳组件;src/components/common:可复用通用组件。src/stores:Pinia 领域状态(auth、websocket、session、channel、config 等)。src/api:WebSocket/RPC 集成;共享类型位于src/api/types。src/composables与src/utils:可复用逻辑与纯函数工具。src/assets/styles/main.css:全局样式;public/:静态资源。
构建、测试与开发命令
npm install:安装依赖。npm run dev:启动 Vite 开发服务(http://localhost:3001)。npm run build:执行vue-tsc -b类型检查并产出dist/生产包。npm run preview:本地预览生产构建结果。
代码风格与命名规范
- 使用 Vue 3 Composition API +
<script setup lang="ts">。 - 遵循现有格式:2 空格缩进、单引号、尾随逗号、无分号。
src路径优先使用@/别名导入。- 命名约定:
- 组件:
PascalCase.vue - 路由页面:
*Page.vue(例如SessionsPage.vue) - store/composable/utils:简洁的小写或 camelCase 文件名(例如
session.ts、useTheme.ts)
- 组件:
测试要求
- 当前仓库尚未配置自动化测试框架。
- 合并前必须检查:
npm run build通过,无类型与构建错误。- 针对改动流程做手工冒烟测试(登录、WebSocket 连接、相关页面),并连接可用 Gateway(
ws://127.0.0.1:18789)。
- 对于非简单逻辑改动,请在 PR 中附测试计划;后续迭代优先补充 Vitest 单元测试。
提交与 PR 规范
- 提交前缀建议使用 Conventional Commit:
feat:、fix:、refactor:、docs:、chore:。 - 每个提交只关注一个主题,避免占位式提交信息。
- PR 需包含:目标、关键改动、关联任务/Issue、验证步骤,以及 UI 改动截图/GIF。
安全与配置提示
- 禁止提交真实 Gateway Token、凭证或其他敏感信息。
- 运行时配置放在
.env.development/.env.production,新增VITE_变量需同步记录到README.md。
Codex 宪法(本仓库)
- 事实优先:先读现状再改代码;不得基于猜测修改 RPC、类型或页面行为。
- 单一来源:同一能力只保留一个权威入口与实现,避免页面与 store 双重定义。
- 兼容优先:优先适配现有 Gateway RPC 形态,不引入未经验证的新协议分支。
- 渐进改造:先打通最小闭环(可用),再做视觉与体验增强,避免一次性过度重构。
- 安全默认:凭证永不明文回显;未输入新值不得提交凭证 patch。
- 主题一致:样式优先复用全局变量(
--bg-*、--text-*、--border-color),避免硬编码颜色。 - 渲染边界清晰:凡是
v-html注入内容,若页面使用<style scoped>,必须使用:deep(...)(或改为非 scoped 受控样式)覆盖其内部元素;禁止误以为 scoped 选择器可直接命中运行时注入节点。 - 可验证:每次改动后至少保证可构建,并说明影响面与回归点。
实施教训(频道管理改造)
- 组件默认样式有“首项特例”(如
Collapse的 first-child 规则),改间距前必须先核对组件源码。 - 间距系统必须“单机制”管理(统一使用 gap 或 margin),混用会造成首行/后续行视觉不一致。
- 暗色适配不能只改颜色值,应以主题变量驱动并限制选择器作用域,避免污染其他页面。
- 遇到“看起来像 spacing 问题”的异常,通常同时涉及
margin/padding/border叠加,需要逐层排查。 - UI 微调应先保证信息架构不变,再收敛 spacing 与密度,避免视觉改善引发交互回归。
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 · 59 lines · 1,119 tokens per session scan A 0d3dbdea6feb
OpenClaw-Admin AGENTS.md is an instructions file published in the GitHub repository itq5/OpenClaw-Admin (856 stars, last pushed 4mo ago), licensed MIT. It adds 1,119 tokens to every session, about $0.0056 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
Pebble CLAUDE.md
Instructions for skyf0xx/Pebble, covering pebble — claude code context, before you start, what we're building, stack and project structure.
awesome-hermes-agent-zh AGENTS.md
AGENTS.md instructions for zcweah1981/awesome-hermes-agent-zh, covering agents.md, 规范类, 1. 自主工作与安全边界, 2. 代码与变更 and 3. 任务分级与执行强度.
awesome-hermes-agent-zh CLAUDE.md
Claude Code instructions for zcweah1981/awesome-hermes-agent-zh, a project described as: Hermes Agent中文站- 中文实战入口:上手路径、国内落地、OpenClaw 共存迁移、排障参考与可下载方案包。.
hermes-webui AGENTS.md
Instructions for nesquena/hermes-webui, covering agent instructions for hermes webui, read first, onboarding and reinstall support, contribution style and before you open a pr — the change guidelines.
openclaw-dashboard CLAUDE.md
Instructions for mudrii/openclaw-dashboard, covering go development standards, project constraints, internal packages, environment and commands.
clawdi AGENTS.md
Instructions for Clawdi-AI/clawdi, covering clawdi, oss boundary, repository map, local end-to-end and verification.