Import conversations from Claude and ChatGPT data exports

Đang mở
#2,079 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
clickhouse, python
Lĩnh vực
backend, cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
263
Fork
47
Merge trung bình
14 giờ 13 phút
Pull request đã merge (30 ngày)
868

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ClickHouse/loom

Tất cả issue của ClickHouse/loom

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.