Context Assembler
Combine files and folders into one LLM-ready context block — like repomix or files-to-prompt, fully in your browser
Add files
Folder uploads preserve the directory tree. node_modules, .git, dist and build output are skipped automatically and never read.
Limits: up to 500 files, 1.0 MB each, 20.0 MB total. Heavier picks are reported, not lost.
Comma or newline separated. Names match any path segment; * is a glob.
Examples
Assemble a TypeScript project
📁 Pick folder: my-app/
<file path="my-app/src/index.ts">
import { greet } from "./utils";
greet("world");
</file>
<file path="my-app/src/utils.ts">
export const greet = (n: string) => console.log(`Hello, ${n}!`);
</file>
<file path="my-app/package.json">
{ "name": "my-app", "type": "module" }
</file>Each file is wrapped in an XML tag with its relative path. The optional tree header gives the model a map of the project first.
Filter to one extension
Extensions: .ts,.tsx
Ignore: node_modules, *.test.ts, dist
→ Only non-test TypeScript files are included.Combine an extension allow-list with ignore globs to ship just the source files that matter for a code-review prompt.
Right-size the context window
Output: 12,480 chars · ≈3,120 tokens
→ Open Token Cost CalculatorThe token estimate shows how much of the context window the assembly uses before you paste it.
Examples
Assembling a small project
Files: src/index.ts, src/utils.ts, README.md
Ignore: node_modules/**, *.lockProject structure:
src/index.ts
src/utils.ts
README.md
<file path="src/index.ts">
import { add } from "./utils" ...
</file>Each file becomes an XML-tagged block with an escaped path; the tree header lets the model navigate the layout.
About this tool
Context Assembler merges files and folders into a single LLM-ready context block. Drop in source files, a documentation tree, or a whole folder, and it emits one document with each file wrapped in an XML-tagged block, a project tree at the top, and a token estimate — the same pattern popularized by repomix and files-to-prompt.
Glob ignore filters let you exclude node_modules, build output or secrets, and hard limits (file count, per-file size, and total size) keep the bundle within a model's context window while reporting what was skipped. File paths are XML-escaped so the output is safe to paste, and nothing is ever uploaded — files are read in your browser only.
How to use this tool
Add files or a folder
Pick individual files or upload a folder; a project tree and per-file list build automatically.
Filter what's included
Use glob ignore patterns to drop node_modules, dist, images or any path you don't want in the context.
Check the token estimate
A running token estimate and size limits show whether the bundle fits your target model's context window.
Copy the assembled context
Copy one XML-tagged block with the tree header and every included file to paste into Claude, ChatGPT or an agent.
Use cases
Hand a repo to a model
Assemble an entire small project into one prompt so the model can reason across files without manual copy-paste.
Debug with full context
Bundle the relevant files and folder structure so a model review sees imports and layout, not isolated snippets.
Generate documentation
Give the model the source tree and files and ask for README, architecture or API docs grounded in the real layout.
Common mistakes
Mistake:Including node_modules or build output.
Fix:Add ignore globs like node_modules/**, dist/** and *.min.js so the bundle isn't flooded with generated code.
Mistake:Exceeding the context window.
Fix:Watch the token estimate and per-file size limits; trim to the relevant files rather than dumping the whole repository.
Mistake:Forgetting that paths are escaped.
Fix:Paths with &, < or > are XML-escaped inside the tags so the block stays valid; paste it as-is into the model.
Frequently asked questions
Is this like repomix or files-to-prompt?
Yes — it follows the same pattern: a project tree header followed by each file wrapped in an XML-tagged block, plus a token estimate. It runs entirely in your browser with no upload, unlike CLI tools that read from disk.
How do I exclude files like node_modules?
Use the ignore glob filters. Patterns like node_modules/**, dist/**, *.lock or *.min.js remove matching paths from the bundle so generated and dependency files don't fill the context.
What happens with very large projects?
Hard limits guard the output: a maximum number of files, a per-file size cap, and a total size cap. Files that exceed these are skipped and reported in the summary, and the token estimate shows whether the bundle fits your model's context window.
Are my files uploaded?
No. Files are read locally in your browser to build the context block; nothing is transmitted. Paths containing characters like &, < or > are XML-escaped so the output stays valid when pasted.
Related guides
References & standards
Related tools
Agent Tool Flowchart Builder
Design agentic tool-call DAGs with decision branches and bounded loops. Validates reachability, cycle handling, and emits clean Mermaid flowcharts — fully in your browser.
AI Agent Memory & Buffer Simulator
Compare sliding window, summary buffer, and vector memory strategies
AI API Client SDK Generator
Generate typed API client SDK files from OpenAPI specifications or cURL requests
AI Code Explainer
Explain code snippets with grounded cloud AI
AI Code Security Auditor
Scan source code for high-confidence OWASP Top 10 vulnerabilities
AI Code Translator
Translate code into idiomatic implementations in another language