Prerequisites: installed cg, POSIX shell, project with Claude Code history.
See the repository README for installation.
Directory import selects the chosen project's Claude Code history.
It excludes working-tree JSONL files and other projects' history.
A question about the imported history returns source passages.
cg model fetch --defaults
cg import "$HOME/projects/my-app" --context my-app --search wait --format text
cg status --context my-app --format text
cg find "why did we choose that transport?" --context my-app --format textExample output (ids and sizes differ on your machine):
Long output is trimmed with ….
{"disclosed":[{"bytes":546938168,"id":"nomic-embed-text-v1.5","size":"547 MB"}],"fetched":[{"id":"nomic-embed-text-v1.5","sha":"9e7d262b1fe5ea350782829496efa831901b77486bbde1cea54a4c822d010d5c"}],"skipped":[{"id":"embeddinggemma-300m","reason":"ManualAcceptanceRequired"}]}
context: my-app (explicit)
sources: 1 files / 1 sessions
history captured: 7 new events (0 already present)
semantic search: caught up
context: my-app (explicit)
memory
goals: 0
decisions: 0
observations: 0
history
sources: 1 files / 1 sessions
capture: complete — 7 events
coverage: 7 complete / 0 opaque / 0 payload-refused / 0 source-declared-missing
event placement: local_only
search: ready — 7 events covered
write memory: <N> GiB — derived from this machine: a quarter of the <installed> GiB installed
<passage-id> my-app 2026-09-01 session synthetic-session-amber
Assistant [author="assistant"]: The edit request is separate from this conclusion: the decisive sentence after the former preview boundary says the account notice remains effective until a signed amendment replaces it.
```text
search_document: literal source prefix, not an embedding instruction
…
Pass the passage_id printed by find to cg show to read the exact linked stored events.
The first interactive import accepts the suggested Context name on Enter.
Later status calls from a subdirectory reuse that Context binding.
A default import completes capture without local model artifacts.
It downloads no model.
A missing-artifact retry names cg model fetch --defaults.
It then names an import with --search wait.
Next: command recipes, configuration, or troubleshooting.