Repository navigation
feat: add render_prompt function for --format prompt output - #7
Merged
itscloud0 merged 3 commits intoJun 18, 2026
Merged
Conversation
itscloud0
approved these changes
Jun 18, 2026
itscloud0
left a comment
Owner
There was a problem hiding this comment.
Thanks for the contribution. I verified the feature locally, cleaned up whitespace, documented the new format, and CI is green.
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.
PR Summary: Add
--format promptOutput SupportOverview
Introduced a new
render_promptfunction to support the--format promptCLI option. This allows users to output the raw, unformatted prompt directly to the terminal, bypassing the standard Markdown or HTML wrapping.Key Changes
render.py: Added therender_prompt(pack)function, a clean, two-line utility that extracts and returnspack.promptdirectly.cli.py:render_promptfunction."prompt"as a valid option to the--formatargument parser choices.main()to handle the choice and triggerrender_prompt(pack)accordingly.test_issue_to_agent.py:test_cli_writes_prompt_only_output) to ensure the CLI cleanly handles the new flag.Testing & Status