Repository navigation
Description
Context
The current Gemini export tooling is still split across one-off scripts even though the archive behavior is really one workflow: render local AI Studio JSON, resolve Drive-backed attachments, optionally mirror a Drive folder, and keep output/config/auth semantics consistent from run to run.
At the moment, the workflow burden sits on whoever is trying to archive the data. They have to decide how to render turns, how to name attachment folders, how to locate Drive files, how to keep timestamps stable, and how to re-run the process without rebuilding the whole thing by hand. The repo needs a coherent surface for this instead of a loose collection of local experiments.
Motivation
This matters for two reasons. First, the raw JSON is not pleasant to read or diff directly, especially once chats include long model replies, citations, or linked files. Second, the attachment story is inseparable from the transcript story: a Markdown archive that drops Drive documents or images is incomplete, but a workflow that always embeds them inline becomes hard to version and review. We need an opinionated but stable middle ground.
There is also a repeatability problem. Without a shared config story, every render or sync invocation has to re-specify credentials, folder names, download behavior, and output locations. That makes the tool annoying for individual use and nearly impossible to standardize inside a repo. Any implementation will need to address local rendering, Drive sync, attachment handling, config defaults, and environment setup together or it will just move the complexity around.
Scope
In scope:
- a command-line surface for rendering local AI Studio exports and syncing a Drive folder
- shared rendering logic for
chunkedPrompt.chunks, including thought/response handling - shared Drive auth, listing, metadata, and download helpers
- project-local configuration plus environment overrides
- reproducible environment setup for the Python and Google auth stack
- documentation for the archive workflow and expected commands
Out of scope for the first pass:
- multiple output themes or renderer styles
- a full TUI beyond lightweight interactive selection
- deep provider abstraction for non-Gemini exports
- a full automated test matrix
Acceptance criteria
- A user can render a single AI Studio export file or a directory of exports to Markdown with one CLI entrypoint.
- A user can sync a Drive folder by name, download chat JSON plus linked attachments, and preserve remote modified times on the generated Markdown files.
- Attachment references are consistently linked into per-chat
_attachments/folders or cleanly left as remote links when downloads are disabled. - Project-local config and environment overrides cover at least credentials, default folder name, output locations, and collapse threshold behavior.
- The repo includes a documented and reproducible environment for the Google auth / Drive dependencies needed to run the tool.
Activity
fix(storage): blob store GC — fix _still_referenced and _candidate_blobs
fix(storage): blob store GC — fix _still_referenced and _candidate_blobs
refactor(mcp): route maintenance tools through shared operation contr…
fix(live): eliminate read storm by trusting cursor on mtime drift (#1003
feat(maintenance): typed scope filters (#1196)
feat(maintenance): typed scope filters (#1196) (#1323)
feat(maintenance): wire SOURCE_REPLAY dispatch with per-artifact curs…
docs(retro): record post-#1498 cascade umbrella + hot-file review (#1605
feat(parsers): wire Claude Code history.jsonl paste evidence into has…
feat(browser): checkpoint mirror + per-message capture layer (#2871)
1 remaining item
feat(capture): extension trust surface — automatic UX, spool health, …
feat(maintenance): raw-authority census reset + orphaned index-seed p…
test(sources): strengthen live-batch cursor-complete assertions (#3305)
fix(daemon): address CodeRabbit findings on rebuild-index coordination (
feat(insights): implement GitHub PR effect adapter via gh CLI (#3327)
feat(devtools): add cold-model MCP pagination+cancellation replay pro…
feat(insights): materialize incident work-evidence graphs from archiv…
feat(insights): add source-to-graph incident evidence materialization (…
feat(devtools): make the surface layering rule real via a ratchet bas…
fix(cost): role-split estimate fallback tokens, downgrade partial-unk…
fix(daemon): make health verdict consult alerts and stop going blind (#…
test(storage): prove blob GC's row-reference invariant across every R…
sinex: primary mode stores in Sinex: inputs as materials, sessions an…
Delete schema copies, planned-page stubs, one-off probes and duplicat…
One session cost over the own responses for field, aggregate, compare…