feat: add ralph.* placeholders for name, iteration, and max_iterations#37
Merged
Conversation
… max_iterations
Ralphs can now access runtime metadata via {{ context.name }},
{{ context.iteration }}, and {{ context.max_iterations }} placeholders.
These are resolved alongside existing command and arg placeholders in
a single pass to prevent cross-contamination.
Closes #14
Co-authored-by: Ralphify <noreply@ralphify.co>
…ations Co-authored-by: Ralphify <noreply@ralphify.co>
{{ ralph.name }}, {{ ralph.iteration }}, and {{ ralph.max_iterations }}
read more naturally in RALPH.md files than the context.* prefix.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
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.
Summary
Closes #14. Supersedes #25.
{{ ralph.name }},{{ ralph.iteration }}, and{{ ralph.max_iterations }}built-in placeholders so ralphs can access runtime metadata in their promptsralph.nameresolves to the ralph directory name,ralph.iterationto the 1-based iteration number, andralph.max_iterationsto the total if-nwas set (empty otherwise)Based on @malpou's work in #25 (original
context.*implementation), renamed toralph.*for clarity —{{ ralph.name }}is immediately self-documenting in a RALPH.md file.Test plan
mkdocs build --strictpasses with zero warnings🤖 Generated with Claude Code