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 rules/movebrickschi/harness-engineering-mcp/16-ai-efficiencygit clone --depth 1 https://github.com/movebrickschi/harness-engineering-mcpWhat 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.00693 | $0.00693 |
| Opus 5 | $0.00347 | $0.00347 |
| Sonnet 5 | $0.00139 | $0.00139 |
| Haiku 4.5 | $0.00069 | $0.00069 |
Grade A, and why
16-ai-efficiency 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.
What it actually says
AI Efficiency · 高效执行 & 省 Token 硬规则
与
assets/spec/AI_EFFICIENCY.md/assets/skills/ai-efficiency/SKILL.md配套。本文件是 Cursor / Claude Code 直接消费的硬规则版本——只列不可违反的最小集。
R1. 检索路径
- ✅ 知道符号名 → 先
Grep,禁止直接 Read 大文件找符号 - ✅ 知道文件名规律 → 先
Glob,再 Read - ❌ 一次 SemanticSearch 命中 ≥ 10 个文件 → 必须收紧查询,不要全读
R2. 读文件切片
- 单次 Read 必须带 offset/limit 当文件 > 500 行
- 永远不要 Read 整个
node_modules//dist//vendor/
R3. 并行调用
- 同一轮里独立的 ≥ 2 个工具调用必须一次性批发
- 顺序串行调用超过 4 次 = 违规
R4. Subagent 边界
- 检索范围 ≥ 3 文件 → 委派 subagent
- 主会话不读完整 fixture / 大日志 / 大 JSON dump,由 subagent 摘要后回报
R5. 修改原子化
- 一次
StrReplace改动 ≤ 100 行 diff - 跨文件大改 → 拆 ≥ N 次小 commit,每次均可独立通过
npm test --runRelatedTests
R6. 验证最小化
- 改完只跑被影响的测试子集(
--runRelatedTests/-pl module/ 单文件 pytest) - 全局
harness check --strict --run-tests仅在收尾跑一次
R7. 输出
- 每段
reply_message/ 主对话回复 < 2000 字符;超过即拆段或表格化 - 禁止重复粘贴 spec / rule 段落;用 URI 引用
R8. 失败处理
- 同一 bug ≥ 3 次尝试未修 → 切
systematic-debuggingskill,禁止「再试一下」式补丁 - 测试红了 → 优先根因,禁止 mock 掉测试断言来过
R9. 计划与执行
-
3 步任务 → 必须先出
writing-plansskill 的明文计划 - 用户拍板后才进入
executing-plans推进
R10. 缓存
- 不在每轮 prompt 里手抄 spec / rule / 项目 README
- 通过 MCP 资源 URI 引用,保持 prompt 前缀稳定以命中 prompt cache
任何项目可以在
.harness/config.json的modules.knowledge.ai_efficiency_strict中关闭部分硬规则,但默认全开。
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 · 56 lines · 693 tokens per session scan A fcf6b8158e42
16-ai-efficiency is a cursor rule published in the GitHub repository movebrickschi/harness-engineering-mcp (2 stars, last pushed 3mo ago), licensed MIT. It adds 693 tokens to every session, about $0.0035 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-31.
Other cursor rules, from other repositories
slushpile
Adversarial job search: pool-anchored fit scoring, adversarial review, channel-conditional verdicts, findings written back to the profile.
feedback-enhanced
Enhanced feedback mechanism with 1-hour timeout - 增强反馈机制,1小时超时.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.