No. 025 Lower the entropy
Port {source} to {target}, keeping the same {keep}
Port {source} to {target}, keeping the sam.
- Claude Code
- Codex
- Cursor
- Lower the entropy
port {source} to {target}, keeping the same {keep}
When to use
“Port {source} to {target}, keeping the same {keep}” fits when the code works but the structure is harder than the behavior, because it says “port {source} to {target}, keeping the same {keep}”, after you replace {source}, {target}, {keep} with names from the repo.
One filled message for “Port {source} to {target}, keeping the same {keep}” is: port src/cart.js to src/cart.js, keeping the same the rounding
When not to use
Leave “Port {source} to {target}, keeping the same {keep}” unused when the change is a one-line typo or a red build you have not read, because “port {source} to {target}, keeping the same {keep}” points the other way
How to run it
Claude Code
Claude Code takes “Port {source} to {target}, keeping the same {keep}” as one paste at the repo root. Do not also save .claude/commands, or “port {source} to {target}, keeping the same {keep}” replays on the next task.
Codex
Codex takes “Port {source} to {target}, keeping the same {keep}” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “port {source} to {target}, keeping the same {keep}”.
Cursor
Cursor should see “Port {source} to {target}, keeping the same {keep}” only as a chat paste of “port {source} to {target}, keeping the same {keep}” 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
- Stage: Lower the entropy
- Same stage: Optimize {target} to bring {metric} from {current} down to…
来源:Anthropic · https://code.claude.com/docs/en/prompt-library · 2026-12-01