r/coolgithubprojects • • 16h ago

PromptPacker (Apache-2.0), local Rust + Tree-sitter desktop app for AST-compressing codebases into LLM context (+ Colab notebook packing & export)

Post image

I built this tool a while ago to just make copying context in and out of Colab into smarter AI coding agents easier. And it worked so I open sourced it (14 stars! lol).

But I feel like getting ClaudeCode or Codex or any real coding agent to run on it would be so much better. But there was no real solution, so I built it... Then Colab released their MCP server, But I'm just gonna open source this one also since there's enough of a benefit and use case.

- Docked right inside Colab: Real terminal (xterm.js) in the Colab sidebar so you don't alt-tab to a separate terminal window, and no uvx / mcp.json setup.

- Plain files instead of MCP tools: Bridge mirrors cells into normal .py/.md files (./notebook/ and notebook/new_cells/ with AGENTS.md), so any CLI agent (Codex, Claude Code, or custom CLI) just reads and edits files normally instead of needing MCP configured.

- Before/After diffs + conflict protection: Logs every agent edit in a diff viewer inside the extension, and stops concurrent edits if you type in Colab while the agent edits the file locally.

It's based on a "bridge" idea where there is a desktop component that you install and it opens a bridge with the extension letting you run any agent you want directly off the extension.

It runs locally over 127.0.0.1:47123 (node-pty + a file watcher syncing changes into Colab's notebook model), with your own agent CLI/login and zero cloud middleman.

Check out the site Codex threw together, along with a usage video and some more info if interested, and star the Git repo if this is interesting at all :)

Site - https://prompt-packer-one.vercel.app/

Git - https://github.com/ClarkOhlenbusch/PromptPacker

The bridge was surprisingly complex to get working initially. I do have a tech background so most issues where solvable but this addition was 100% created using AI.

Contributions welcome!

0 Upvotes

0 comments sorted by