Import conversations from Claude and ChatGPT data exports

Abierto
#2,079 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
clickhouse, python
Área
backend, cli

Línea de trabajo

Start by reading the session-history import referenced in #2078 and the loom ingest-transcript CLI entry point. Trace how it calls conversation.append, applies namespace recording and retention settings, and performs client-side redaction. Done means Claude and ChatGPT exports can be previewed and selectively imported, searchable afterward, and safely re-imported without adding duplicates.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement help wanted up-for-grabs
Company

ClickHouse

Component

CLI

Use case

Conversations held in chat apps never reach Loom. The plugins capture coding agents through their hooks, and the LiteLLM gateway captures clients that send their model calls through it. The Claude desktop and web apps and ChatGPT call their provider directly, so neither path sees them. Someone who works through a design question in a chat app and then implements it in a coding agent has the conclusion in Loom only if they restate it.

Both services offer an official account data export: a .zip that holds every conversation as JSON. Reading it needs no scraping, no credentials and no access to the apps.

Describe the solution you'd like

loom ingest-transcript accepts the export .zip from Claude and from ChatGPT:

  • It detects the format and lists the conversations by title, date and message count. The person picks which to import, or filters by date or title. --dry-run writes nothing.
  • Each picked conversation is written with conversation.append, with the export's timestamps, source_class imported, the export's conversation id as the thread id, and the same client-side redaction as live capture.
  • The namespace's recording setting and retention apply. Nothing is stored from conversations the person did not pick, and the export file is left unchanged.

Acceptance: an imported conversation is found by conversation.search and its facts by loom_search. Importing the same export again adds nothing.

Describe alternatives you've considered
  • Route chat apps through the LiteLLM gateway. That works only for clients that can be pointed at a gateway, and these cannot.
  • Ask people to paste conclusions into a memory by hand. In practice they don't.
Where the need comes from

An AI tool suggested this feature

Additional context

It shares the reader and write path with the session-history import (#2078). Related: #159.

Lenguaje dominante
Python
Estrellas
263
Forks
47
Merge medio
14 h 13 min
PR fusionados (30 d)
868

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ClickHouse/loom

Todos los issues de ClickHouse/loom

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.