LLM XML Context Compiler Reference
scripts/llms_txt2ctx.py parses a standard llms.txt file and builds a complete XML-formatted representation of files listed inside, ideal for loading directly into LLM context prompts.
🛠️ CLI Arguments & Syntax
python3 scripts/llms_txt2ctx.py <input_llms.txt> [--optional <True|False>]
Parameters
<input_llms.txt>: Path to the target text index.--optional: Specifies whether sections labeled as “Optional” should be parsed and included in the output XML (defaults to False).
🔒 Exit Codes
0: Success. Printed valid XML tostdout.1: Failure due to file not found or invalid syntax.