All Tools / AI Context Tools / Pack Folder for AI

Pack Folder for AI

A whole project as one bundle: tree, files, token counts, secrets redacted

AI Context ToolsDesktop App Tool

Pack Folder for AI is available in the desktop app

This tool relies on native processing for speed, large files, and full offline privacy. Use the desktop app to run it locally with no uploads.

Browse Other Web Tools

Pack Folder for AI turns a whole project into one file you can paste into ChatGPT, Claude or Gemini: a directory tree, every file that fits your token budget, and the total token count. It respects .gitignore files, skips binaries and build folders, and replaces API keys, tokens and passwords before anything is written.

Inside a Git repository it can pack only what changed (uncommitted, staged, this branch or recent commits) with the diff included, which is the right size for a code review or a "why does this break?" question.

How To Use Pack Folder for AI Offline

  1. Open AI Context › Pack Folder for AI — Or use the Pack folder for AI quick action on Home.
  2. Choose the folder — The card shows the branch and whether there are uncommitted changes. Settings you used for that folder before are restored.
  3. Pick What to pack — Everything, Uncommitted changes, Staged changes, This branch vs its base, or Recent commits. Include the diff puts the diff above the files.
  4. Set the budget — Pick the Token model, set a Token budget, and choose How much of each file: Full contents, Auto (full, then code maps) or Code maps only.
  5. Pack and copy — Copy bundle puts it on the clipboard; Ask an agent opens it in AI Chat. The bundle is saved as <folder>-context.md in your output folder.

Why Use 1FileTool Over Online Tools?

  • 100% offline — Files never leave your computer. No uploads, ever.
  • Pay once — One-time payment from $29. No monthly subscriptions.
  • Instant results — Local processing is faster than uploading + server processing + downloading.
  • No file size limits — Process files of any size, limited only by your disk space.
  • GDPR compliant — No data collection means complete privacy compliance by design.

Formats

InputOutputNotes
A folder<folder>-context.mdMarkdown, the default.
A folder<folder>-context.xmlXML, reads well for Claude.
A folder<folder>-context.txtPlain text.

Good to know

  • Git scopes need a Git repository; outside one, only Everything is available.
  • Files over Skip files over (512 KB by default), binary files and ignored files are left out and counted as skipped.
  • Claude has no public tokenizer, so Claude counts are close estimates.
  • Redaction catches common key and token formats; read a bundle before sharing it anywhere you would not share the code.

Tips

  • Auto switches to code maps once half the budget is spent, so the most important files keep their full text.
  • The Biggest files in the bundle list shows where the tokens went; add those paths to Also exclude for a smaller pack.
  • Your AI assistant can run the same pack over MCP with filetool_pack_context.
A finished Pack Folder for AI bundle: 96 files, 118,402 tokens, with the biggest files listed by tokens

The result card: totals, code maps, skipped files and redacted secrets.

Frequently asked questions

Which secrets are redacted?

Private key blocks, AWS access keys, GitHub, Slack and Stripe tokens, Anthropic, OpenAI and Google API keys, JWTs, bearer tokens, credentials in URLs and values assigned to names like password or secret.

What is a code map?

A line-numbered outline of a file: its declarations without their bodies, roughly a tenth of the tokens. Code maps only uses them for every file; Auto starts using them once half the budget is spent.

Does it change my project?

No. It only reads the folder and writes one new bundle file to your output folder.

Is my code uploaded?

No. Packing runs on your computer. Pasting the bundle into a cloud AI is a separate choice you make afterwards.

Learn it

Related AI Context Tools

Keep the next file job off the internet.

Every tool is in the free download. Upgrade once, when the daily limit starts getting in your way.

PrivateOfflinePay once

No account, no credit card. Pro includes a 7-day money-back guarantee.