{
  "schemaVersion": "1",
  "revision": "22ce5d34dbcb5a78",
  "id": "factory-tools-context-bundlers",
  "slug": "tools-context-bundlers",
  "title": "AI context bundlers (repo → prompt)",
  "summary": "Tool roles, alternatives, selection tradeoffs, and compatibility caveats.",
  "category": "Tools",
  "tags": [
    "tools",
    "context-bundlers"
  ],
  "sources": [
    {
      "label": "Tool comparison reference",
      "url": "https://dewy-sleet-n5zs.here.now/#context-bundlers"
    }
  ],
  "sourceUnits": [
    "resources/index.html#context-bundlers"
  ],
  "collection": "factory",
  "categoryId": "tools",
  "wordCount": 334,
  "url": "/topics/factory-tools-context-bundlers/",
  "markdownUrl": "/markdown/factory-tools-context-bundlers.md?raw=1&v=22ce5d34dbcb5a78",
  "jsonUrl": "/api/v1/documents/factory-tools-context-bundlers.json",
  "headings": [
    {
      "id": "ai-context-bundlers-repo-prompt",
      "text": "AI context bundlers (repo → prompt)",
      "level": 2
    },
    {
      "id": "pick-this-if",
      "text": "Pick this if…",
      "level": 3
    }
  ],
  "markdown": "# AI context bundlers (repo → prompt)\n\nTool roles, alternatives, selection tradeoffs, and compatibility caveats.\n\n## AI context bundlers (repo → prompt)\n\n**John uses:** **packx** (`npm install -g packx`, johnlindquist on npm) — filters repository files **by content string** and extension before bundling for AI consumption, with saved search configs. Section 08's oracle skill uses it to bundle up to ~900k tokens per consult. (Related: [johnlindquist/pack](https://github.com/johnlindquist/pack), a content-filter front-end for Repomix.)\n\n| Alternative | What it is | How it differs | License |\n|----|----|----|----|\n| [Repomix](https://github.com/yamadashy/repomix) | Packs an entire repository into a single AI-friendly file (XML/MD), with token counts and remote-repo support | Whole-repo packing with include/exclude globs; packx's content-string filtering is the main thing it lacks (John's \\`pack\\` wraps Repomix to add it) | MIT |\n| [gitingest](https://github.com/coderamp-labs/gitingest) | Replace 'hub' with 'ingest' in any GitHub URL to get a prompt-friendly extract | Zero-install for public repos (URL trick + web UI); also a pip CLI | MIT |\n| [code2prompt](https://github.com/mufeedvh/code2prompt) | Rust CLI: codebase → single prompt with source tree, Handlebars templating, token counting | Template-driven output shaping; closest feature set to packx minus content search | MIT |\n| [files-to-prompt](https://github.com/simonw/files-to-prompt) | Simon Willison's minimal concatenator: directory → one prompt (pairs with his \\`llm\\` CLI) | Deliberately tiny; no filtering logic beyond paths; check current repository activity (stable, not active) | Apache-2.0 |\n| [yek](https://github.com/mohsen1/yek) | Fast Rust serializer for repo files, chunks by token budget, priority-orders files | Speed and token-budget chunking focus; good for very large repos | MIT |\n\n### Pick this if…\n\n- **Repomix** — the default choice; the biggest, most maintained repo-packer. packx's content-search filtering is the one thing you'll miss.\n- **gitingest** — you mostly bundle public repos and want zero install.\n- **code2prompt** — you want templated output shaping (Handlebars) around the bundle.\n- **files-to-prompt** — you want the smallest possible tool, especially with `llm` (stable but not actively developed).\n- **yek** — your repos are huge and you need token-budget chunking fast."
}
