Skip to content

v0.3.23 - Simplify Prompt Instructions

Choose a tag to compare

@mmcky mmcky released this 11 Oct 00:33
· 37 commits to main since this release

Simplification ✨

Removes a redundant and confusing CRITICAL instruction from the writing prompt.

What Changed

  • Removed: "CRITICAL: The 'Current text' and 'Suggested fix' MUST be different (fixes must change something). Even if the visual difference is subtle (like whitespace changes), ensure the suggested fix actually corrects the violation."

Why

  1. Redundant: Obviously fixes should change something - that's what "fix" means!
  2. Confusing: Was causing LLM to second-guess valid fixes, especially whitespace changes
  3. Already handled: The validate_fix_quality() function already checks if current_text == suggested_fix
  4. Simpler is better: Following "simplicity above all" principle

Result

  • ✅ Cleaner, more focused prompt
  • ✅ Less confusion for the LLM
  • ✅ Relies on existing validation logic instead of pre-warning
  • ✅ Updated writing prompt version to 0.3.23

Full Changelog: https://github.com/QuantEcon/action-style-guide/blob/main/CHANGELOG.md