Borrowing it
Nothing to install: this file belongs to 69gg/Undefined. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/69gg/Undefined/main/CLAUDE.mdgit clone --depth 1 https://github.com/69gg/UndefinedWrote 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.
[](https://agentmods.dev/instructions/69gg/undefined/claude-md)<a href="https://agentmods.dev/instructions/69gg/undefined/claude-md"><img src="https://agentmods.dev/badge/instructions/69gg/undefined/claude-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.
<a href="https://agentmods.dev/instructions/69gg/undefined/claude-md"><img src="https://agentmods.dev/badge/instructions/69gg/undefined/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.04195 | $0.04195 |
| Opus 5.5 | $0.01678 | $0.01678 |
| Sonnet 5.5 | $0.00839 | $0.00839 |
| Haiku 4.5 | $0.00419 | $0.00419 |
Grade A, and why
Undefined CLAUDE.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 1mo 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 — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
项目概述
Undefined 是基于 Python asyncio 的高性能 QQ 机器人平台,通过 OneBot V11 协议(NapCat/Lagrange.Core)与 QQ 通信,搭载认知记忆架构、自研 Skills 系统、本地知识库、全局表情包库,以及 Management-first WebUI / Desktop / Android 管理端。
开发命令
# 依赖安装 / 初始化
uv sync
uv run playwright install # 页面截图等能力依赖的浏览器运行时
# 启动
uv run Undefined-webui # 启动 Management-first WebUI(推荐入口)
uv run Undefined # 直接启动 Bot
# WebUI 自动启动 Bot
# 配置 [webui].autostart_bot = true 后,运行 uv run Undefined-webui 会自动拉起 bot 进程
# 默认为 false,保持传统手动启动行为
# 注意:该配置仅在 WebUI 启动时生效,运行时修改需重启 WebUI
# 代码质量(提交前必须全部通过)
uv run ruff format .
uv run ruff check .
uv run mypy . # strict=true
uv run pytest tests/
uv run pytest tests/test_xxx.py
uv run pytest tests/test_xxx.py::test_func -v
uv build --wheel # 校验打包与资源包含
# 前端 / 桌面端(仅改动 apps/undefined-console/ 或 apps/undefined-chat/ 或 webui/static/js/ 时需要)
cd apps/undefined-console && npm ci && npm run check
cd apps/undefined-console && npm run dev
cd apps/undefined-console && npm run tauri:dev
cd apps/undefined-chat && npm ci && npm run check
cd apps/undefined-chat && npm run tauri:dev
# Git hooks 安装
bash scripts/install_git_hooks.sh
# pre-commit 自动执行:ruff format --check + ruff check + mypy
# 含 JS/Tauri 改动时额外执行:Biome + TypeScript + cargo fmt/check
代码规范
- 类型注释:所有 Python 代码必须有完整类型注释,mypy strict 模式
- 异步 IO:磁盘读写必须走
utils/io.py(asyncio.to_thread+ 跨平台文件锁 + 原子写入),禁止在事件循环中直接阻塞 IO - Python 版本:
>=3.11, <3.14(推荐 3.12) - 测试:pytest + pytest-asyncio,
asyncio_mode = "auto" - 前端格式化:
src/Undefined/webui/static/js/由根目录biome.json管理;apps/undefined-console/和apps/undefined-chat/走 Biome + TypeScript + Cargo 检查 - 版本号同步:发布版本时优先使用
uv run python scripts/bump_version.py <version>,统一同步 Python 包、console、chat 与 Tauri 版本号 - Git hooks:优先通过
scripts/install_git_hooks.sh安装,不要手动维护core.hooksPath
架构分层
核心源码位于 src/Undefined/,主要模块如下(目录级事实来源是 docs/development.md 的目录树,本表只做职责概览):
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.
- 1mo ago Changed · +1 lines · +41 tokens per session f6a26fe625ba
- 1mo ago Changed · +2 lines · +292 tokens per session 5cbca8f75126
- 1mo ago Changed · +1 lines · +152 tokens per session 5ad8ec6bf311
- 1mo ago Changed · +139 tokens per session d7bf6296bbb6
- 2mo ago First seen · 172 lines · 3,571 tokens per session scan A 323997fd5c3c
Undefined CLAUDE.md is an instructions file published in the GitHub repository 69gg/Undefined (256 stars, last pushed 13d ago), licensed MIT. It adds 4,195 tokens to every session, about $0.0168 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.
Undefined CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Undefined CLAUDE.md69gg/Undefined | Instructions file | 256 | 13d ago | MIT | A | 4,195 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |