Combine Code & Documents into XML-Tagged Context for Claude Projects
Bundle entire repositories, docs, and PDFs into Anthropic’s recommended <documents> XML structure to bypass the 20-file attachment cap.
Target Platform
Anthropic Claude / ChatGPT
Requirement
200K Tokens Context Window
Accepted Output
XML-Tagged .MD or .TXT
Compliance Rule
Max 20 files per chat attachment (Solved via 1 XML bundle)
Drop 1 or up to 100+ files here (100% private in-browser execution)
Why Anthropic Claude / ChatGPT Flags or Rejects Standard Files
Claude and ChatGPT restrict each chat message to 10–20 attached files. If you want an LLM to review 45 TypeScript/Python files or 30 contract exhibits, uploading them individually fails immediately.
3-Step Compliance Checklist
Select Your Codebase Files or Documents
Drop `.ts`, `.js`, `.py`, `.md`, `.json`, `.pdf`, or `.docx` files.
Format with Anthropic <documents> XML Schema
Our bundler wraps each file in `<document index="n"><source>filename</source><document_content>...</document_content></document>`.
Attach 1 Master File to Claude or ChatGPT
Get superior multi-file reasoning while using only 1 attachment slot.
- Anthropic’s official prompt engineering documentation specifically recommends wrapping multi-document context in `<documents>` and `<document_content>` XML tags for highest recall.