r/GeminiAI • • 11d ago

Ressource Keeping GitHub repos synced with Gemini Notebooks

VS Code + GitHub Actions -> Google Drive -> Gemini web UI Notebooks

I wanted a lightweight way to keep current GitHub repo context live inside Gemini Notebooks without constantly copy-pasting files or running local background daemons. Since Notebooks only auto-refresh native Google Docs (and pointing Drive for Desktop at a local git repo wrecks .git lockfiles), I wired up a zero-dependency Python bundler in GitHub Actions that pushes to a small Google Apps Script web app.

It keeps root files isolated in their own 00-ROOT doc and merges deeper leaf folders bottom-up up to 450k chars, overwriting the existing Google Docs in place so the Notebook links never break. Unchanged shards skip in ~100ms via git blob hashes.

My question is: how are others handling file merging and shard boundaries for larger repos in Notebooks? Also, when you're working on a specific feature, do you get better mileage pulling individual files directly to anchor focus, or feeding the whole repo into the Notebook and trusting RAG to grab the right chunks?

Thoughts?

0 Upvotes

1 comment sorted by

1

u/keenDean 11d ago

https://github.com/endean-eng/gemini-notebook-repo-sync

Open to feedback and discussion on the sharding rules. It uses standard library Python and a single Google Apps Script deployment across all your repos, so setup only takes a few minutes.