Add --cxml flag: write the LLM view straight to a file or stdout#27
Open
Atelier-Nocte wants to merge 1 commit into
Open
Add --cxml flag: write the LLM view straight to a file or stdout#27Atelier-Nocte wants to merge 1 commit into
Atelier-Nocte wants to merge 1 commit into
Conversation
The CXML payload already exists (generate_cxml_text) but was only reachable by opening the HTML page and copying the textarea. --cxml emits it directly for scripting/pipelines; default HTML behavior is unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
The LLM view is the half of rendergit I use most, but the CXML text it builds (
generate_cxml_text) is only reachable by opening the HTML page and copying the textarea. This adds an optional--cxmlflag that emits that same text directly, so it can be scripted:Same UX ask as #10 (
--copy --llm), minus the clipboard dependency.Details:
rendergit.py, no new dependencies. Without the flag, behavior is completely unchanged.--cxmlmode no HTML is built or opened at all. Nice side effect: since READMEs render unsanitized into the auto-openedfile://page, this is also the safer mode for flattening untrusted repos.sys.stdoutto UTF-8 witherrors="replace"— Windows consoles default to cp1252 and would otherwise raiseUnicodeEncodeErroron the first emoji in someone's README.finally.🤖 Generated with Claude Code