Import the Claude Code and Codex sessions already on a machine

Abierto
#2,078 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

Línea de trabajo

Start with loom ingest-transcript, lib/session-brief.mjs, and the existing conversation hook to trace transcript parsing, redaction, and live capture. Then inspect the import contract in #159 and the retention and recording settings paths. Done means discovery, safe import of Claude Code and Codex sessions, incremental re-runs, and the stated acceptance checks work.

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

Loom records a coding-agent session only once the plugin is connected. A person who installs it usually has months of sessions on disk, in ~/.claude/projects/<project>/*.jsonl and ~/.codex/sessions/, holding the project's decisions, dead ends and conventions. Loom starts with none of them. Recall abstains and the SessionStart primer has nothing to show for the first days, and those first days are when a new user decides whether to keep Loom.

The parts exist but nothing joins them:

  • loom ingest-transcript posts a finished transcript to conversation.append, but reads only a markdown file or a JSON array of {role, content}, one file at a time.
  • The plugins parse the Claude Code transcript format already (lib/session-brief.mjs, the conversation hook), but only for the session that is running.
Describe the solution you'd like

loom ingest-transcript learns the Claude Code and Codex session formats and can find them, and the first SessionStart primer after install offers it in one line.

  • --discover lists the sessions on the machine by project: session count, date range and size. Nothing is written until the person picks projects.
  • Each session goes through the same path as live capture: the plugins' client-side redaction, the namespace's recording setting and the conversation plane's retention. A session older than the retention window is skipped.
  • Rows carry the session's own timestamps and source_class imported, never observed.
  • The thread id is the session id, so a second run imports only new sessions.
  • Before it runs, the command states how many sessions go to extraction, which calls the model. --newest N limits the import.
  • The command only reads the files. It never changes or deletes them.

Acceptance: after importing one project, loom_search answers a question whose answer exists only in a session from before the install. A second run reports zero new sessions. A secret in an imported transcript is redacted as it is in live capture.

Describe alternatives you've considered
  • Wait for capture to fill the namespace. The first week stays empty.
  • Ingest the files as documents with knowledge.ingest. They become searchable, but nothing is extracted into memories or briefs and the session identity is lost.
Where the need comes from

An AI tool suggested this feature

Additional context

Related: #159. Its import contract applies: an import never turns uploaded claims into verified local facts.

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.