Borrowing it
Nothing to install: this file belongs to CavinHuang/lume. 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/CavinHuang/lume/main/AGENTS.mdgit clone --depth 1 https://github.com/CavinHuang/lumeWrote 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/cavinhuang/lume/agents-md)<a href="https://agentmods.dev/instructions/cavinhuang/lume/agents-md"><img src="https://agentmods.dev/badge/instructions/cavinhuang/lume/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.
<a href="https://agentmods.dev/instructions/cavinhuang/lume/agents-md"><img src="https://agentmods.dev/badge/instructions/cavinhuang/lume/agents-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.02259 | $0.02259 |
| Opus 5.5 | $0.00904 | $0.00904 |
| Sonnet 5.5 | $0.00452 | $0.00452 |
| Haiku 4.5 | $0.00226 | $0.00226 |
Grade A, and why
lume 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.
How it starts
The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spend time on thinking; you do not need to use the commentary channel to report progress to me.
Working agreements
- Write a cleanup plan before modifying code for cleanup/refactor/deslop work.
- 仅在清理已有测试保护的代码时才锁定行为;新增或无测试的代码不要为了仪式感补写测试。
- Prefer deletion over addition.
- Reuse existing utils and patterns before introducing new abstractions.
- No new dependencies without explicit request.
- Keep diffs small, reviewable, and reversible.
- Web UI 新增或改造交互控件时,优先使用
apps/web/src/components/ui的 shadcn/global 原子组件;不要在业务页面手写 button、input、select、textarea、switch、checkbox、radio 的完整视觉样式。缺少对应组件时,先用 shadcn 安装/生成全局组件,再在页面使用。例外仅限无视觉的隐藏文件输入、窗口控制/拖拽区、第三方编辑器内部,以及全局组件自身实现。 - 仅在改动涉及可测试逻辑时运行相关测试;样式、文案、纯 UI 调整无需运行测试。不要为了"证明完成"而执行全量 lint/typecheck/test,只在改动有风险或涉及公共接口时验证。
- Final reports must include changed files, simplifications made, and remaining risks.
改动工作流
所有改动必须遵循以下顺序(Claude Code / Codex / 人工一律适用):
- 先 pull main —— 开发前确保本地
main与origin/main同步。 - 在 worktree 新分支上开发 —— 基于最新
main为每个能力创建独立 worktree 与新分支,所有改动只在分支上完成;禁止在main工作区直接修改。 - 通过 PR 合并 main —— 改动只能经 PR review 通过后合并回
main,禁止本地直接 merge 到 main。
Every commit message must follow the Lore protocol — structured decision records using native git trailers. Commits are not just labels on diffs; they are the atomic unit of institutional knowledge.
Format
<emoji> <type>(<scope>): <中文描述>
<body: narrative context — constraints, approach rationale>
- scope: 受影响的模块,如
web,sidecar,sdk,shared - 描述: 使用中文,简明扼要说明改了什么
Gitmoji Reference
| Emoji | Type | Example |
|---|---|---|
| ✨ | feat |
✨ feat(web): 添加流式工具执行器 |
| 🐛 | fix |
🐛 fix(sidecar): 修复子代理串行执行问题 |
| ♻️ | refactor |
♻️ refactor(sdk): 重构 provider 类型定义 |
| 📝 | docs |
📝 docs: 更新提交协议文档 |
| ✅ | test |
✅ test(sdk): 添加流式执行测试 |
| 🎨 | style |
🎨 style(web): 统一代码格式 |
| ⚡️ | perf |
⚡️ perf(sidecar): 优化消息解析性能 |
| 🔒 | security |
🔒 fix(sdk): 修复 token 泄露风险 |
| 🔧 | chore |
🔧 chore: 更新依赖版本 |
| ⬆️ | deps |
⬆️ deps: 升级 anthropic sdk |
| ⏪️ | revert |
⏪️ revert(sdk): 回退并行代理改动 |
| 🚀 | release |
🚀 release: v1.2.0 |
| 💄 | ui |
💄 ui(web): 优化模型选择器样式 |
| 🏗️ | arch |
🏗️ arch(sdk): 引入 StreamingToolExecutor 架构 |
| 🔥 | remove |
🔥 remove(web): 移除废弃组件 |
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.
- 2mo ago First seen · 191 lines · 2,259 tokens per session scan A fdf6c726005d
lume AGENTS.md is an instructions file published in the GitHub repository CavinHuang/lume (3 stars, last pushed 1mo ago), licensed MIT. It adds 2,259 tokens to every session, about $0.0090 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-31.
Other instructions, from other repositories
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).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
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.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.