Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
rawclaw
command
Command rawclaw is the lightweight, headless search engine over the Claude Code transcript record (a single static pure-Go binary).
|
Command rawclaw is the lightweight, headless search engine over the Claude Code transcript record (a single static pure-Go binary). |
|
internal
|
|
|
adapters
Package adapters holds concrete Embedder adapters for the embed.Embedder port.
|
Package adapters holds concrete Embedder adapters for the embed.Embedder port. |
|
agentproto
Package agentproto is the search→narrow→bounded-read protocol for LLM agents: an agent recalls prior conversations WITHOUT pasting whole transcripts — it gets ranked conversation refs, then reads BOUNDED excerpts on demand.
|
Package agentproto is the search→narrow→bounded-read protocol for LLM agents: an agent recalls prior conversations WITHOUT pasting whole transcripts — it gets ranked conversation refs, then reads BOUNDED excerpts on demand. |
|
archive
Package archive implements the transcript archive: one git repository shared by all of a user's machines, holding each machine's raw transcript trees under a top-level directory per machine (`<machine>/<source>/...`).
|
Package archive implements the transcript archive: one git repository shared by all of a user's machines, holding each machine's raw transcript trees under a top-level directory per machine (`<machine>/<source>/...`). |
|
archive/archivetest
Package archivetest stands up throwaway transcript-archive fixtures: an isolated HOME with one local Claude project, a configured archive against a local bare remote, and one FOREIGN machine dir pushed by a simulated second machine and pulled into the local clone.
|
Package archivetest stands up throwaway transcript-archive fixtures: an isolated HOME with one local Claude project, a configured archive against a local bare remote, and one FOREIGN machine dir pushed by a simulated second machine and pulled into the local clone. |
|
cli
Package cli is the thin composition root: the cobra command tree, flag wiring, the flat-output printers, and the JSON emitters.
|
Package cli is the thin composition root: the cobra command tree, flag wiring, the flat-output printers, and the JSON emitters. |
|
embed
Package embed defines the optional vector-channel PORTS — Embedder and VectorStore — that the keyword engine degrades around gracefully.
|
Package embed defines the optional vector-channel PORTS — Embedder and VectorStore — that the keyword engine degrades around gracefully. |
|
index
Package index owns ingest orchestration over the on-disk SQLite/FTS5 store: schema ensuring (over internal/store's DDL), file fingerprinting, incremental reindexing, and corpus stats.
|
Package index owns ingest orchestration over the on-disk SQLite/FTS5 store: schema ensuring (over internal/store's DDL), file fingerprinting, incremental reindexing, and corpus stats. |
|
lifecycle
Package lifecycle implements USER-DRIVEN session lifecycle operations over Claude Code transcripts: archiving a session's .jsonl out of the active projects tree, and deleting sessions behind a filter gate.
|
Package lifecycle implements USER-DRIVEN session lifecycle operations over Claude Code transcripts: archiving a session's .jsonl out of the active projects tree, and deleting sessions behind a filter gate. |
|
live
Package live implements the live peek: "what is the agent on that machine doing right now".
|
Package live implements the live peek: "what is the agent on that machine doing right now". |
|
model
Package model defines the normalized transcript message a Source adapter yields for the index to ingest — the ingest-side data contract, parallel to internal/embed's vector ports (defined ahead of its adapters, ship-empty).
|
Package model defines the normalized transcript message a Source adapter yields for the index to ingest — the ingest-side data contract, parallel to internal/embed's vector ports (defined ahead of its adapters, ship-empty). |
|
parse
Package parse holds text-extraction and parse primitives — flattening one transcript JSON record into a searchable string, tool-stripping, role lookup, ISO-timestamp parsing, and display formatting.
|
Package parse holds text-extraction and parse primitives — flattening one transcript JSON record into a searchable string, tool-stripping, role lookup, ISO-timestamp parsing, and display formatting. |
|
paths
Package paths holds transcript-directory discovery: the projects root, cwd→project-dir resolution (by matching the cwd recorded inside transcripts), contained-JSONL enumeration with symlink-out containment, and session-id resolution.
|
Package paths holds transcript-directory discovery: the projects root, cwd→project-dir resolution (by matching the cwd recorded inside transcripts), contained-JSONL enumeration with symlink-out containment, and session-id resolution. |
|
provenance
Package provenance mints and derives the identity facts stamped onto indexed rows (D3): the machine's stable self-minted id, the cheap file content fingerprint used as a change watermark, and the session id derived from a transcript path.
|
Package provenance mints and derives the identity facts stamped onto indexed rows (D3): the machine's stable self-minted id, the cheap file content fingerprint used as a change watermark, and the session id derived from a transcript path. |
|
query
Package query holds pure query-layer string functions: term parsing, FTS5 query sanitizing, stopword stripping, boolean-operator translation, and the path / min-messages predicates.
|
Package query holds pure query-layer string functions: term parsing, FTS5 query sanitizing, stopword stripping, boolean-operator translation, and the path / min-messages predicates. |
|
render
Package render holds the terminal output formatters for the discovery / scroll / browse shapes.
|
Package render holds the terminal output formatters for the discovery / scroll / browse shapes. |
|
retention
Package retention is the durable-retention policy tree (D1/D2/D5) applied to an indexed scope: the single decision function shared by acting reconciles and read-only probes, the reconcile pass that acts on it, and the user's mirror-mode opt-out.
|
Package retention is the durable-retention policy tree (D1/D2/D5) applied to an indexed scope: the single decision function shared by acting reconciles and read-only probes, the reconcile pass that acts on it, and the user's mirror-mode opt-out. |
|
retrieve
Package retrieve holds FTS5 keyword recall: search, the linear-scan fallback, cross-project the cross-project search, and the anchor helpers (lineage walk + ranked anchor messages) that the view layer composes into bookend windows.
|
Package retrieve holds FTS5 keyword recall: search, the linear-scan fallback, cross-project the cross-project search, and the anchor helpers (lineage walk + ranked anchor messages) that the view layer composes into bookend windows. |
|
scopes
Package scopes builds the search-scope list spanning every runtime — the one place that knows about the concrete Source adapters.
|
Package scopes builds the search-scope list spanning every runtime — the one place that knows about the concrete Source adapters. |
|
semantic
Package semantic is the optional vector channel: a float32-BLOB VectorStore living in the SAME cache db as the keyword index (under its own schema gate), brute-force cosine KNN in plain Go, and reciprocal-rank fusion.
|
Package semantic is the optional vector channel: a float32-BLOB VectorStore living in the SAME cache db as the keyword index (under its own schema gate), brute-force cosine KNN in plain Go, and reciprocal-rank fusion. |
|
source
Package source defines the ingest PORT: a small interface each runtime's transcript reader implements, so the index can ingest Claude Code, Codex, and future runtimes without knowing the on-disk format underneath.
|
Package source defines the ingest PORT: a small interface each runtime's transcript reader implements, so the index can ingest Claude Code, Codex, and future runtimes without knowing the on-disk format underneath. |
|
source/claude
Package claude is the Source adapter for Claude Code transcripts under ~/.claude/projects (or $CLAUDE_CONFIG_DIR/projects): one project directory per working dir, one *.jsonl per session, subagents under a subagents/ subdir.
|
Package claude is the Source adapter for Claude Code transcripts under ~/.claude/projects (or $CLAUDE_CONFIG_DIR/projects): one project directory per working dir, one *.jsonl per session, subagents under a subagents/ subdir. |
|
source/codex
Package codex is the Source adapter for OpenAI Codex CLI transcripts under $CODEX_HOME/sessions (default ~/.codex/sessions): date-partitioned rollout-<ts>-<uuid>.jsonl files, each a self-contained session whose first record is a session_meta header.
|
Package codex is the Source adapter for OpenAI Codex CLI transcripts under $CODEX_HOME/sessions (default ~/.codex/sessions): date-partitioned rollout-<ts>-<uuid>.jsonl files, each a self-contained session whose first record is a session_meta header. |
|
store
FTS read surface: the two keyword-recall queries (flat hits and anchor rows) over messages_fts + messages + sessions, with dynamic filter composition.
|
FTS read surface: the two keyword-recall queries (flat hits and anchor rows) over messages_fts + messages + sessions, with dynamic filter composition. |
|
store/storetest
Package storetest provides interface-built test fixtures for the store schema (D7): a production-schema db via store.Rebuild, plus row inserters.
|
Package storetest provides interface-built test fixtures for the store schema (D7): a production-schema db via store.Rebuild, plus row inserters. |
|
timefmt
Package timefmt is the single seam for user-facing time rendering.
|
Package timefmt is the single seam for user-facing time rendering. |
|
view
Package view does result-shaping: the bookends+window anchored view, org-wide discovery (lineage-deduped, RRF-fused when an embedder is wired), scroll (keep-reading), and browse (no-query recent sessions).
|
Package view does result-shaping: the bookends+window anchored view, org-wide discovery (lineage-deduped, RRF-fused when an embedder is wired), scroll (keep-reading), and browse (no-query recent sessions). |
Click to show internal directories.
Click to hide internal directories.