Claude Transcripts docs GitHub
Work in progressUnder active development — not tested as ready for use. Breaking changes land without notice, stored data may need to be discarded between revisions, and there is no auth or security model.

Configuration

Two layers:

LayerFileHolds
Settingsconfig/config.json in a checkout (falls back to the committed config/config.template.json); ~/.config/claude-transcripts/app.json on an installed instanceNon-secret: store names, feature flags, tunables, service-menu URLs, recall policy
Secrets and endpoints.env in a checkout (.env.template); ~/.config/claude-transcripts/instance.env on an installed instanceHosts, ports, credentials, S3 keys, image tags

Both live files are gitignored. New knobs go into config/, not a third source.

After changing settings, re-run install (or setup in a checkout). The hook does not read config/ or app.json; it reads a runtime config at ~/.config/claude-transcripts/config.json that install/setup generate from them.

Settings

The committed template:

{
  "app": { "name": "claude-transcripts" },
  "system": {
    "logging": { "chunk": { "maxEntriesPerChunk": 200, "flushIntervalMs": 15000 } },
    "sessions": {
      "liveWindowMs": 7200000,
      "idleThresholdMs": 300000,
      "reconcile": { "follower": true, "intervalMs": 3600000, "batchSize": 50 }
    }
  },
  "couchdb": {
    "databases": {
      "sessions": "claude-transcripts-sessions",
      "appLogs":  "claude-transcripts-app-logs"
    }
  },
  "s3": { "buckets": { "sessions": "claude-transcripts-sessions" } },
  "meilisearch": {
    "indexes": {
      "sessions": "claude-transcripts-sessions",
      "turns":     "claude-transcripts-turns",
      "liveTurns": "claude-transcripts-live-turns"
    }
  },
  "fossil": { "repositories": { "sessions": "claude-transcripts-sessions" } },
  "features": {
    "s3Blobs": true,
    "midFlightChunking": true,
    "couchFullContentChunks": true,
    "meilisearch": true,
    "secretsMasking": false
  },
  "servicesMenu": {},
  "userSettings": {
    "sessionListPageSize": 100,
    "transcriptPageSize": 100,
    "transcriptAutoLoadMax": 2000,
    "location": null
  },
  "recall": {
    "mode": "auto",
    "scope": "project",
    "maxResults": 5,
    "maxSnippetChars": 400,
    "triggers": { "priorWorkQuestion": true, "repeatedError": true, "beforeRederiving": true },
    "excludeCwdGlobs": [],
    "primer": { "onSessionStart": true, "maxTokens": 200 }
  }
}
KeyMeaning
system.logging.chunkMid-session chunk flush: after this many transcript entries or this many ms, whichever first (mid-flight-chunking.md).
system.sessions.liveWindowMsA session with no SessionEnd counts as running for this long after its last event (2 h), then incomplete. A recency heuristic; there is no heartbeat. A reconciled session that later records activity reads as running again until its own SessionEnd replaces the reconciled summary. 86400000, the old template default, is read as unset; to keep a 24 h window, write any other value, such as 86400001.
system.sessions.reconcileThe webapi's sweep that finalises sessions which never fired SessionEnd (tools.md): every intervalMs (1 h) it runs claude-transcripts reconcile on up to batchSize (50) sessions that read as incomplete. follower: false turns it off; reconcile by hand still works. Needs the CLI next to the webapi: the app image ships it (CT_CLI_BIN), a checkout uses the workspace's.
system.sessions.idleThresholdMsGaps between events longer than this (5 min) don't count towards a session's active time.
system.search.flushIntervalMsChanges reach search in batches, at most this far (20 s) behind; a live session that ends is flushed at once. A flush writes only the small indexes — session metadata and the live turns — so it can be frequent (ADR 0032).
system.search.archiveIntervalMsHow often ended sessions' turns move from the live index into the archive (15 min). Each move is one write to the large archive index, which is where Meilisearch's disk cost lives; ended sessions stay searchable in the live index until then.
system.search.liveRebuildIntervalMsHow often the live turns index is rebuilt from CouchDB (1 h), as a backstop for rows a failed flush dropped. It's small, so this is cheap.
system.search.taskRetentionMsFinished Meilisearch tasks older than this (1 h) are pruned from its task queue, so it doesn't grow without bound.
couchdb.databases, s3.buckets, meilisearch.indexes, fossil.repositoriesKeyed maps: code refers to a store by logical key (sessions, appLogs, turns, liveTurns), never by its deployed name. The claude-transcripts- prefix keeps them from colliding with anything else on a shared server. Fossil repository names must be letters, digits, - and _; the Fossil container creates each named repository on start, and the default sessions entry is always kept (like the Meilisearch indexes).
features.s3BlobsUpload the transcript and a summary.json copy to S3. Off: no byte-exact transcript is kept anywhere; CouchDB still has the pruned per-turn content if full-content chunks are on.
features.midFlightChunkingTail the transcript into CouchDB chunk docs during the session.
features.couchFullContentChunksPut the parsed turns in those chunks (ADR 0027). Off: a live session's transcript can't be read until it ends, the speaker-split views are empty, and conversation content isn't searchable.
features.meilisearchFull-text search. Off: no search, nothing else changes.
features.secretsMaskingPlaceholder; nothing is masked yet.
servicesMenuAdmin-UI links in the webui (keys couchdbFauxton, garageWebui, meilisearch, meilisearchUi, fossil; any other key is an extra link). Unset keys are derived as http://127.0.0.1:<host port>; set one when the dashboards live elsewhere, e.g. { "couchdbFauxton": "https://couch.example.org/_utils/" }.
userSettingsHow much the webui fetches: page sizes per request, and how many transcript entries load before the viewer offers a "load the rest" button (the list isn't virtualised). Values above a per-key ceiling are capped; missing, non-numeric or below-1 values use the default. location ({ "latitude": 51.5, "longitude": -0.12 }, decimal degrees, north and east positive) is where the calendar works out sunrise and sunset; null uses the reference city of the browser's time zone, and an out-of-range value is ignored.
recallWhen a live session consults its own history (ADR 0029). mode: off/suggest/auto; scope: project/host/all. Keep scope: project while secretsMasking is off. The plugin's recall_mode, recall_scope and max_results options override it per user.

Omit a section to get its defaults.

Who reads what

Other variables: CT_HOME relocates a whole install (see installation.md); the app image sets CT_STATIC_DIR, CT_DOCS_DIR and CT_CLI_BIN. The version is not a setting: every component reports the one in package.json.

Backend topology — bundled or external

The app finds its backends purely through the environment, so the same image runs either way.

Bundled (default, the tested path): the deploy/ Compose stack runs CouchDB, Garage and Meilisearch on localhost. Meilisearch has no master key unless you ask for one; Garage's app key is minted by install (or bun run bootstrap:garage) and written to the env file; CouchDB gets a fixed admin/admin because CouchDB 3 will not start without an admin (ADR 0020).

External: point the app at your own services.

BackendVariables
CouchDBCOUCHDB_URL (full base URL, https and a path prefix allowed; wins over COUCHDB_HOST/COUCHDB_PORT), COUCHDB_USER, COUCHDB_PASSWORD
S3S3_ENDPOINT, S3_REGION, S3_ACCESS_KEY, S3_SECRET_KEY (Garage, MinIO, R2, AWS)
MeilisearchMEILI_HOST, MEILI_API_KEY

Not verified end to end. Create the bucket and key yourself (bootstrap:garage only targets the bundled Garage; the app never creates buckets), and a CouchDB path prefix is untested. For a Garage that isn't on this machine's loopback, GARAGE_ADMIN_URL (its admin API's full URL) lets claude-transcripts provision create the bucket and key there. It wins over GARAGE_ADMIN_PORT, as COUCHDB_URL does for CouchDB.

An external Meilisearch

Read ADR 0028 first. The turn indexes hold conversation text, so an external Meilisearch is the one configuration where recorded content leaves the machine. And Meilisearch is a derived index the app owns: reindex builds each index beside the real one (<name>-rebuild) and swaps them, which is safe only because the index names are ours. Federated search needs Meilisearch 1.10 or later. If you rename them, keep them distinct from anything else on that engine.

Search is otherwise local: the webapi follows CouchDB's change feed and writes to Meilisearch; the hook never touches it. Every index can be rebuilt from CouchDB with claude-transcripts reindex.