agentleFS
xu-xiangxu-xiang/everything-claude-code-zh/.cursor/rules/common-performance.md

everything-claude-code-zh / rules

Cursor rule2k starsChanged 9 months agoMITView on GitHub

性能优化:模型选择、上下文管理、构建故障排除

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the xu-xiang/everything-claude-code-zh repository that our weekly crawl found: only 1 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about xu-xiang/everything-claude-code-zh

The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.

The file

Files
common-performance.md

性能优化 (Performance Optimization)

模型选择策略 (Model Selection Strategy)

Haiku 4.5 (具备 Sonnet 90% 的能力,成本降低 3 倍):

  • 频繁调用的轻量级智能体 (Agents)
  • 结对编程与代码生成
  • 多智能体系统中的工作智能体 (Worker agents)

Sonnet 4.6 (最佳编程模型):

  • 主要开发工作
  • 编排多智能体工作流 (Orchestrating multi-agent workflows)
  • 复杂的编程任务

Opus 4.5 (最深层的推理能力):

  • 复杂的架构决策
  • 极高的推理需求
  • 研究与分析任务

上下文窗口管理 (Context Window Management)

避免在上下文窗口 (Context Window) 最后 20% 的容量内执行以下操作:

  • 大规模重构
  • 跨越多个文件的功能实现
  • 调试复杂的交互行为

对上下文敏感度较低的任务:

  • 单个文件编辑
  • 独立实用工具的创建
  • 文档更新
  • 简单的 Bug 修复

扩展思考 (Extended Thinking) + 计划模式 (Plan Mode)

扩展思考(Extended Thinking)默认开启,为内部推理预留高达 31,999 个 Token。

通过以下方式控制扩展思考:

  • 切换开关: Option+T (macOS) / Alt+T (Windows/Linux)
  • 配置文件: 在 ~/.claude/settings.json 中设置 alwaysThinkingEnabled
  • 预算上限: export MAX_THINKING_TOKENS=10000
  • 详细模式: Ctrl+O 查看思考过程输出

对于需要深层推理的复杂任务:

  1. 确保扩展思考已开启(默认开启)
  2. 开启 计划模式 (Plan Mode) 以使用结构化方法
  3. 进行多轮审阅以实现透彻分析
  4. 使用分工明确的子智能体 (Sub-agents) 以获得多样化的视角

构建故障排除 (Build Troubleshooting)

如果构建失败:

  1. 使用 build-error-resolver 智能体
  2. 分析错误信息
  3. 进行增量修复
  4. 每次修复后进行验证

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.