No. 026 Lower the entropy

Optimize {target} to bring {metric} from {current} down to…

Optimize {target} to bring {metric} from {.

  • Claude Code
  • Codex
  • Cursor
  • Lower the entropy

Prompt

optimize {target} to bring {metric} from {current} down to under {goal}

When to use

“Optimize {target} to bring {metric} from {current} down to…” fits when the code works but the structure is harder than the behavior, because it says “optimize {target} to bring {metric} from {current} down to under {goal}”, after you replace {target}, {metric}, {current} with names from the repo.

One filled message for “Optimize {target} to bring {metric} from {current} down to…” is: optimize src/cart.js to bring the time spent in total() from the current timing down to under keep the same totals

When not to use

Leave “Optimize {target} to bring {metric} from {current} down to…” unused when the change is a one-line typo or a red build you have not read, because “optimize {target} to bring {metric} from {current} down to under {goal}” points the other way

How to run it

Claude Code

Claude Code takes “Optimize {target} to bring {metric} from {current} down to…” as one paste at the repo root. Do not also save .claude/commands, or “optimize {target} to bring {metric} from {current} down to under {goal}” replays on the next task.

Codex

Codex takes “Optimize {target} to bring {metric} from {current} down to…” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “optimize {target} to bring {metric} from {current} down to under {goal}”.

Cursor

Cursor should see “Optimize {target} to bring {metric} from {current} down to…” only as a chat paste of “optimize {target} to bring {metric} from {current} down to under {goal}” for this turn. A file at .cursor/rules would keep applying after the turn ends.

Comparison

对比待补

This before-and-after was not run on this machine.

Related

来源:Anthropic · https://code.claude.com/docs/en/prompt-library · 2026-12-01