Import the Claude Code and Codex sessions already on a machine
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- clickhouse, python
- Domain
- ai-infra-agents, cli
Research direction
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.
Written by the indexing model from the issue text.
Description
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-transcriptposts a finished transcript toconversation.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.
--discoverlists 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_classimported, neverobserved. - 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 Nlimits 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.
- Dominant language
- Python
- Stars
- 263
- Forks
- 47
- Avg merge
- 14h 13m
- Merged PRs (30d)
- 868
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ClickHouse/loom
-
bug good first issue help wanted up-for-grabs
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ClickHouse/loom#2075 ·
Maintainers usually reply within 1 day
-
Options of loom reconcile, reembed, settings history and code lint-instructions print no help textOpenbug good first issue help wanted up-for-grabs
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
ClickHouse/loom#2072 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
ClickHouse/loom#2014 · 1 comment ·
Maintainers usually reply within 1 day
-
Options of loom period-digest, reextract, reconcile-status and demote-activity-narration print no help textPossibly taken @VanshajPoonia claimed this 1 day ago. Openbug good first issue help wanted up-for-grabs
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/loom#1988 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement help wanted up-for-grabs
Difficulty 5/5 Over a week Newbie friendliness 45/100
ClickHouse/loom#2079 ·
Maintainers usually reply within 1 day
Similar issues
-
roadmap/v1.3.0 scope/entitlement type/improvement
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
databrickslabs/ontos#1778 ·
Maintainers usually reply within 2 days
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfPossibly taken @fedonman claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 69/100
StevenBlack/hosts#3314 ·
-
task
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
SparseLinearAlgebra/spla#316 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 87/100
kajisho5/ffmpeg-skill#861 ·
Maintainers usually reply within 1 day