Skip to content

Gemini AI Studio exports need one reproducible archive path #1

Closed

Description

@Sinity

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

  1. added
    faux-pull-request
    on Apr 9, 2026
  2. 1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:parserfaux-pull-requesttype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions