agentleFS
TironFoxTironFox/everything-claude-code/.cursor/rules/common-performance.md

everything-claude-code / rules

Cursor rule1 starsChanged 7 months agoMITView on GitHub

Performance: model selection, context management, build troubleshooting

We split this common-performance.md into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Avoid last 20% of context window for:

    line 26
  2. Distinctive:

    Ensure extended thinking is enabled (on by default)

    line 48
  3. Distinctive:

    Use multiple critique rounds for thorough analysis

    line 50
  4. Distinctive:

    Use split role sub-agents for diverse perspectives

    line 51
  5. Distinctive:

    Verify after each fix

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 6,350 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
common-performance.md

Performance Optimization

Model Selection Strategy

Haiku 4.5 (90% of Sonnet capability, 3x cost savings):

  • Lightweight agents with frequent invocation
  • Pair programming and code generation
  • Worker agents in multi-agent systems

Sonnet 4.6 (Best coding model):

  • Main development work
  • Orchestrating multi-agent workflows
  • Complex coding tasks

Opus 4.5 (Deepest reasoning):

  • Complex architectural decisions
  • Maximum reasoning requirements
  • Research and analysis tasks

Context Window Management

Avoid last 20% of context window for:

  • Large-scale refactoring
  • Feature implementation spanning multiple files
  • Debugging complex interactions

Lower context sensitivity tasks:

  • Single-file edits
  • Independent utility creation
  • Documentation updates
  • Simple bug fixes

Extended Thinking + Plan Mode

Extended thinking is enabled by default, reserving up to 31,999 tokens for internal reasoning.

Control extended thinking via:

  • Toggle: Option+T (macOS) / Alt+T (Windows/Linux)
  • Config: Set alwaysThinkingEnabled in ~/.claude/settings.json
  • Budget cap: export MAX_THINKING_TOKENS=10000
  • Verbose mode: Ctrl+O to see thinking output

For complex tasks requiring deep reasoning:

  1. Ensure extended thinking is enabled (on by default)
  2. Enable Plan Mode for structured approach
  3. Use multiple critique rounds for thorough analysis
  4. Use split role sub-agents for diverse perspectives

Build Troubleshooting

If build fails:

  1. Use build-error-resolver agent
  2. Analyze error messages
  3. Fix incrementally
  4. Verify after each fix

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.

Reviews can't be read right now.

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.