Use XML tags for long context prompting using Claude's multi-document structure.
See notes and examples here: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/long-context-tips
📝 See my blog post, I released files-to-claude-xml and new development workflows for more details.
# to install:
$ uv pip install files-to-claude-xml
# to run
$ files-to-claude-xml \
filename1.py \
filename2.py \
filename3.py
# to run via uv tool (with or without installing):
$ uv tool run files-to-claude-xml \
filename1.py \
filename2.py \
filename3.py
Now create a new Claude Project and drag and drop the generated _claude.xml
file into your "Project knowledge" section.
👤 Jeff Triplett
- Website: https://jefftriplett.com
- Micro Blog: https://micro.webology.dev
- Mastodon: @[email protected]
- Xwitter: @webology
- GitHub: @jefftriplett
- Hire me: revsys
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!