Apply textwrap.dedent to multi-line prompt strings#130
Open
nikivanstein wants to merge 5 commits intomainfrom
Open
Apply textwrap.dedent to multi-line prompt strings#130nikivanstein wants to merge 5 commits intomainfrom
nikivanstein wants to merge 5 commits intomainfrom
Conversation
Prevents accidental indentation from being sent to the LLM when prompt strings are defined inside indented code blocks. Also fixes a concrete bug in diff_output_format_prompt where the first content line had 8 spurious leading spaces. https://claude.ai/code/session_015FyjKEfZyut3DuZcKQNPQe
Removed the task-specific second sentence about metaheuristics so the default role prompt works across different problem domains without users needing to override it. https://claude.ai/code/session_015FyjKEfZyut3DuZcKQNPQe
- black reformatted llamea/llamea.py after the dedent changes - CLAUDE.md documents the repo layout, dev workflow (uv sync/black/isort/pytest), prompt architecture, and code conventions for future sessions https://claude.ai/code/session_015FyjKEfZyut3DuZcKQNPQe
isort must run before black; running black first can cause black to fail or produce conflicts with isort's output. https://claude.ai/code/session_015FyjKEfZyut3DuZcKQNPQe
Use feature/<short-description> instead of claude/... prefix. https://claude.ai/code/session_015FyjKEfZyut3DuZcKQNPQe
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prevents accidental indentation from being sent to the LLM when
prompt strings are defined inside indented code blocks. Also fixes
a concrete bug in diff_output_format_prompt where the first content
line had 8 spurious leading spaces.
https://claude.ai/code/session_015FyjKEfZyut3DuZcKQNPQe