cass

Open sourcev0.11.0Linux · macOS · Windows

Every coding agent’s history, in one search.

cass indexes the sessions that Claude Code, Codex, Cursor, Gemini CLI, Aider and 30 other coding agents leave on your disk. Search them as you type in the terminal, or let your agents query the same index as JSON. It runs on your machine and never edits a session file.

Homebrew
brew install dicklesworthstone/tap/cass
Diagram: the sessions of 35 coding agents, among them Claude Code, Codex, Cursor, Gemini CLI, Aider, flow into one local cass index, which you read as a terminal UI, robot JSON, an MCP server or HTML exports.35 agentsindexed locallyread it asChatGPT desktopCopilot ChatPi-AgentPi DurablePrime AgentOh My PiOpenClawClawdbotVibe (Mistral)CrushGooseHermesKimi CodeMuse CodeQwen CodeFactory (Droid)AntigravityOpenHandsGrok BuildGrok BotCodebuff / FreebuffDevin CLIShelleyKiro CLIContinueZCodeClaude CodeJSONLCodexJSONL · zstdCursorSQLiteGemini CLIJSONAiderMarkdownCopilot CLIJSONLOpenCodeSQLiteClinetask foldersAmpthread JSONcassone archive · one indexTerminal UIfor youRobot JSONfor agentsMCP serverfor agent toolsHTML exportto share+26 more connectors
Read it asTerminal UIRobot JSONMCP serverHTML export

The terminal UI

Four agents’ answers, one screen.

A real screenshot of cass 0.11.0 searching a sample archive for lock. Run cass with no arguments to get it.

The cass terminal interface searching for “lock”: a search bar and filter chips at the top, a Claude Code pane and a Codex pane of results, the selected conversation in a detail pane on the right, and a status line at the bottom.
  1. The query

    Typed into the search bar; the line above names the theme, the search mode (Hybrid) and the ranking (Standard).

  2. Filters

    Agent, workspace, time and source. F3 to F11 set them from the keyboard.

  3. One pane per agent

    20 hits in 4 panes, each in its agent’s color; “+2” marks two more panes off to the right.

  4. The conversation

    The selected hit, with Messages, Snippets, Raw and JSON tabs. Enter opens it full screen.

  5. The status line

    Loaded 20 results in 3 ms, and it says outright that search fell back to lexical: this archive has no semantic model.

01The archive

The answers are already on your disk.

Every coding agent writes down what you asked and what it did, each in its own folder and format. Last month's fix might sit in a Codex rollout, a Cursor SQLite database or an Aider Markdown log. cass reads all of them into one archive and one index.

connectors
35
search modes
3
engine query
< 60 ms
session files changed
0

Connectors

Thirty-five formats, one schema.

Each connector finds its agent's sessions and maps them to one schema: conversations, messages, roles, timestamps and tool calls. Session files are only ever read.

How normalization works

How the 35 agents store their sessions

  • JSONLClaude Code, Codex, Copilot CLI and 9 more
  • SQLiteCursor, OpenCode, Pi Durable and 5 more
  • JSONGemini CLI, ChatGPT desktop, Amp and 5 more
  • JSONL and SQLitePi-Agent, OpenClaw, Goose and 1 more
  • OtherAider, Cline, Grok Bot

Pick an agent to see where it keeps sessions and what cass stores

Worked example

35 connectors · with a real sample

Claude Code~/.claude/projects/-Users-me-src-notes-sync/3f1c9a2e-7b41-4d2a-9c3e-5a8f0d1e2b47.jsonlSession JSONL

The file on disk

{"parentUuid":null,"cwd":"/Users/me/src/notes-sync","sessionId":"3f1c9a2e-7b41-4d2a-9c3e-5a8f0d1e2b47","version":"2.1.4","gitBranch":"main","uuid":"3f1c9a2e-0000","timestamp":"2026-12-02T14:02:11.408Z","type":"user","message":{"role":"user","content":"Sync hangs forever after the laptop wakes from sleep. Can you find out why?"}}
{"parentUuid":"3f1c9a2e-0000","cwd":"/Users/me/src/notes-sync","sessionId":"3f1c9a2e-7b41-4d2a-9c3e-5a8f0d1e2b47","version":"2.1.4","gitBranch":"main","uuid":"3f1c9a2e-0001","timestamp":"2026-12-02T14:02:19.120Z","type":"assistant","message":{"model":"claude-opus-4-5","role":"assistant","type":"message","content":[{"type":"text","text":"The sync worker takes sync.lock before it starts and only removes it on a clean exit. When the laptop sleeps mid-sync, the process is killed and the stale lock stays behind, so every later run waits on it."},{"type":"tool_use","id":"toolu_1","name":"Read","input":{"file_path":"src/sync/lock.rs"}}],"usage":{"input_tokens":4100,"cache_read_input_tokens":9000,"output_tokens":68}}}
{"parentUuid":"3f1c9a2e-0001","cwd":"/Users/me/src/notes-sync","sessionId":"3f1c9a2e-7b41-4d2a-9c3e-5a8f0d1e2b47","version":"2.1.4","gitBranch":"main","uuid":"3f1c9a2e-0002","timestamp":"2026-12-02T14:05:40.002Z","type":"user","message":{"role":"user","content":"Can we detect a stale lock instead of waiting forever?"}}
{"parentUuid":"3f1c9a2e-0002","cwd":"/Users/me/src/notes-sync","sessionId":"3f1c9a2e-7b41-4d2a-9c3e-5a8f0d1e2b47","version":"2.1.4","gitBranch":"main","uuid":"3f1c9a2e-0003","timestamp":"2026-12-02T14:06:02.731Z","type":"assistant","message":{"model":"claude-opus-4-5","role":"assistant","type":"message","content":[{"type":"text","text":"Yes. The lock file now records the owner's pid and start time. A new run checks whether that process is still alive; if not, the lock is stale and gets replaced. Live locks still block, with a clear message naming the pid."},{"type":"tool_use","id":"toolu_3","name":"Edit","input":{"file_path":"src/sync/lock.rs"}}],"usage":{"input_tokens":7500,"cache_read_input_tokens":27000,"output_tokens":74}}}

What cass stored

cassexit 0
$ cass view ~/.claude/projects/-Users-me-src-notes-sync/3f1c9a2e-7b41-4d2a-9c3e-5a8f0d1e2b47.jsonl --message-index 1 -C 9 --json | jq '[.lines[] | {message_index, role, content}]'
[
  {
    "message_index": 1,
    "role": "user",
    "content": "Sync hangs forever after the laptop wakes from sleep. Can you find out why?"
  },
  {
    "message_index": 2,
    "role": "assistant",
    "content": "The sync worker takes sync.lock before it starts and only removes it on a clean exit. When the laptop sleeps mid-sync, the process is killed and the stale lock stays behind, so every later run waits on it.\n[Tool: Read - src/sync/lock.rs]"
  },
  {
    "message_index": 3,
    "role": "user",
    "content": "Can we detect a stale lock instead of waiting forever?"
  },
  {
    "message_index": 4,
    "role": "assistant",
    "content": "Yes. The lock file now records the owner's pid and start time. A new run checks whether that process is still alive; if not, the lock is stale and gets replaced. Live locks still block, with a clear message naming the pid.\n[Tool: Edit - src/sync/lock.rs]"
  }
]
Real output of cass 0.11.0, captured 2026-12-05 on a sample archive of 17 sessions written for this site. The sample home directory shows as ~. cass capabilities --json lists the connectors in your build.

Search as you type

Results on every keystroke.

Word prefixes are indexed ahead of time, so cal already finds calculate and the TUI can rerun the query on every key. Boolean operators, phrases and wildcards work the same in the TUI and in robot mode.

Query language reference
character prefixes indexed
2–20
of each message, prefix-indexed
4 KiB
typical engine query
< 60 ms
terms per wildcard, at most
16,384

Search modes

Exact words, similar meaning, or both.

Semantic search is opt-in: cass models install downloads the model once and cass index --semantic builds the vectors. Alt+S in the TUI, or --mode in robot mode, switches between the three.

Search modes in the docs
  • Lexical

    Finds
    Exact words, prefixes, phrases and wildcards
    How
    BM25 over the Quill index
    Needs
    Nothing; always available
  • Semantic

    Finds
    The same idea in other words
    How
    MiniLM embeddings, computed on your machine
    Needs
    An opt-in 90 MB model and its vectors
  • Hybriddefault

    Finds
    Both, in one ranked list
    How
    Reciprocal rank fusion, K = 60
    Needs
    Runs lexical alone without the model, and says so

Switch modes and move K to see how the two lists combine

Worked example

Querylogin keeps failing after the token expires

#SessionBM25 rankMiniLM rankContributionsScore
1Users get logged out every hour31
1/(60+3) = 0.01591/(60+1) = 0.0164
0.0323
2Login fails after password reset14
1/(60+1) = 0.01641/(60+4) = 0.0156
0.0320
3JWT rejected right after login42
1/(60+4) = 0.01561/(60+2) = 0.0161
0.0318
4Retry the export when the token expires56
1/(60+5) = 0.01541/(60+6) = 0.0152
0.0305
5Store the refresh token in a cookie65
1/(60+6) = 0.01521/(60+5) = 0.0154
0.0305
6Rate limit the login endpoint2–
1/(60+2) = 0.0161–
0.0161
7axios interceptor retries 401 forever–3
–1/(60+3) = 0.0159
0.0159

Both lists, fused. Hybrid is the default mode.

Each list contributes 1 / (K + rank) for every result it holds; cass uses K = 60. The sessions and their ranks in the table are illustrative. With the model switched off, the output shown is real: cass 0.11.0 on the sample archive, which has no model installed.

02For agents

Your agents can search it too.

A coding agent starts each session with no memory of the last one. With cass it can look up what earlier sessions already tried, its own or another tool's, before it starts. Every command has a JSON mode with a fixed schema, stable exit codes and errors that name the next step.

golden files
77
error kinds
87
exit codes
0–14
MCP tools
6

Robot mode

From a question to cited evidence.

Four flags cover most of what an agent needs. The figure replays a real session: check readiness, search, read around a hit, build a handoff, recover from an error.

Agent quickstart
  • --robotJSON on stdout, diagnostics on stderr
  • --fields minimalOnly the fields the agent needs
  • --limit · --max-tokensA response sized for a context window
  • --robot-metaWhat ran: database, time window, filters, search mode

Step through a real session, or press play

Worked example
cassexit 0
$ cass triage --json | jq '{surface, status, recommended: [.recommended_commands[].purpose]}'
{
  "surface": "triage",
  "status": "unhealthy",
  "recommended": []
}

Step 1 of 6

One read-only call says whether the index is ready and what to run next. This archive has no semantic model, so cass suggests lexical search while it stays optional.

Real output of cass 0.11.0, captured 2026-12-05 on a sample archive of 17 sessions written for this site. The sample home directory shows as ~. A jq filter, where shown, trims long output; its exact filter is part of the command.

Forgiving parser

It fixes the flags agents get wrong.

Models write -robot, --max_results 5 and cass find. When the intent is clear, cass runs the canonical command and prints a teaching note on stderr. Typos within two edits are fixed; forget and upgrade run only when spelled exactly.

All the corrections

Pick a common mistake to see what cass ran and what it printed

Worked example

Typed

cass find "auth bug" -robot --limit 5

Ran

cass search auth bug --robot --limit 5

Printed on stderr · exit 0

  • note: auto-corrected: Auto-corrected: 'find' → 'search' (canonical subcommand name); '-robot' → '--robot' (use double-dash for long flags). Canonical form: search auth bug --robot --limit 5
Real output of cass 0.11.0, captured 2026-12-05 on a sample archive of 17 sessions written for this site. The sample home directory shows as ~. The notes go to stderr, so stdout stays clean JSON. In robot mode a command that still fails prints its JSON error instead.

Answer packs

Hand over evidence, with citations.

cass pack turns a question into a bundle of cited excerpts that fits a token budget. It ranks by relevance, freshness and source diversity, and reports what it left out and why.

Answer packs and trust tiers

Change the budget, the session limit and the freshness policy

Worked example

5 selected4 omitted4 sessions2,930 of 3,500 tokens

  1. 1Codex2d oldlikely380 tokA killed indexer leaves a stale lock; check the pid in it before removing it.selected
  2. 2Claude Code6d oldunverified520 tokbusy_timeout only covers SQLite's own lock, not index-run.lock.selected
  3. 3Codex2d oldlikely380 tokA killed indexer leaves a stale lock; check the pid in it before removing it.duplicate_content
  4. 4Gemini CLI21d oldlikely640 tokRemove the lock only after confirming no indexer process holds it.selected
  5. 5Claude Code4d oldunverified700 tokThe stale lock came back after the laptop slept mid-index.selected
  6. 6Cursor12d oldunverified1,100 tokWrapping the indexer in timeout 30s killed it before its first commit.token_budget_exhausted
  7. 7OpenCode33d oldlikely450 tokExit code 7 means another indexer holds the lock: retry later.selected
  8. 8Aider75d oldunverified900 tokDeleted the lock file by hand and the index was half written.max_sessions_reached
  9. 9Codex158d oldunverified1,600 tokOld notes on lock handling before the detached background rebuild.max_sessions_reached
9 invented candidates in rank order, with invented excerpts and token counts. The omission reasons are the planner's own names; the selection here is simplified. Trust tiers are advisory and never reorder evidence.

Contracts

A JSON API that stays put.

77 golden files pin the robot output, so a renamed field fails the test suite before a release. Errors carry one of 87 kebab-case kinds to branch on, and the binary describes its own interface.

Error handling for agents

Exit codes, by what to do next

  • 0Success. stdout holds the JSON.
  • 1Health check failed; run cass index --full.
  • 2Usage error; the hint shows the right syntax.
  • 3No index or database yet; run cass index --full.
  • 4I/O failure, or an unsafe operation refused.
  • 5Corruption or maintenance; follow recommended_action.
  • 6Required input missing, such as a password.
  • 7Busy: another process holds the lock. Retry later.
  • 8Partial result: some sources failed to sync.
  • 9Unknown error; check retryable.
  • 10–14Config, sources, SSH and mappings: branch on err.kind.
  • Use the result
  • Rebuild or repair
  • Fix the call
  • Retry
  • Report
  • Branch on kind

The same API over MCP

cass serve --stdio --mcp --data-dir DIR keeps one index reader open and answers MCP tool calls, each with a deadline, under a memory cap. cass_search and cass_status are always there. Starting it with --db adds cass_view, cass_view_batch and cass_transcript; --semantic-embedder adds cass_semantic_search.

Every error, one shape

{"error":{"code":3,"kind":"missing-index","message":"cass has not been initialized in ~/Library/Application Support/com.coding-agent-search.coding-agent-search yet, so search cannot run until the first index completes.","hint":"Run 'cass index --full' once to discover local sessions and build the initial archive.","retryable":true}}

Exactly what cass 0.11.0 prints on a machine with no index yet. For codes 10 and up the number is shared between domains, so agents branch on kind.

Self-describing

  • cass capabilities --jsonWorkflows, recoveries, commands, exit codes, settings
  • cass introspect --jsonEvery argument and response schema
  • cass robot-docs guideA walkthrough written for models

03In your terminal

A search box that keeps up with you.

Run cass with no arguments for a full-screen search interface. Type, and hits arrive grouped by agent with up to three lines of context each. Press Enter to read the whole conversation, with Markdown rendered and tool calls folded away.

ranking modes
6
themes
19
analytics views
7
file per HTML export
1

The interface

Every agent, side by side.

Each agent gets its own color, so a mixed list stays readable. Built on FrankenTUI, it drops borders and animation by itself when frames run late. On a first run it indexes in the background and search goes live when that lands.

Keyboard reference
A Claude Code conversation about a stuck Terraform state lock, open in the detail view: four messages with every “lock” marked, hit 3 of 4 selected, and a find bar at the bottom showing match 1 of 5.
Enter opens the conversation with every hit marked; / searches inside it.
A search for “token refresh” with an Aider pane and a Claude Code pane side by side, and the selected Claude Code conversation in the detail pane.
“token refresh” on the sample archive: one pane per agent.
The Quick Start dialog: a sketch of the screen's layout, where cass keeps its index and settings, and the agents it reads.
A new archive opens on the Quick Start; F1 brings it back.
The top of the analytics dashboard: API tokens, messages and tool calls with sparklines and their change on the week before, then tokens by agent and by workspace, and tokens per day.
Alt+A opens analytics: a dashboard and six more views of tokens, tools, plans and coverage.

Ranking

Six ways to order the same hits.

F12 cycles the ranking. The blended modes mix the engine's relevance score with a recency factor that halves every 14 days, so “what was I doing last week” and “the best explanation of this” are one key apart.

Ranking and scoring

Pick a mode to re-rank the same eight hits

Interactive

score = 0.5 × relevance + 0.5 × recency

  1. 1JWT rejected right after loginrel 0.57rec 0.912d ago0.736
  2. 2Rotate refresh tokens on every userel 0.82rec 0.649d ago0.731
  3. 3Login fails after password resetrel 0.31rec 1.00today0.657
  4. 4Users get logged out every hourrel 1.00rec 0.1440d ago0.569
  5. 5Store the refresh token in a cookierel 0.45rec 0.3521d ago0.401
  6. 6axios interceptor retries 401 foreverrel 0.69rec 0.00120d ago0.345
  7. 7Retry the export when the token expiresrel 0.18rec 0.0464d ago0.111
  8. 8Notes on refresh token storagerel 0.00rec 0.00no date0.000
The formulas from src/ui/ranking.rs: recency = 0.5^(age in days ÷ 14), and relevance is the engine score rescaled so the loaded hits span 0 to 1. The eight hits, their scores and ages are invented. Every hit of one search shares a match class, so Match quality orders like Relevance heavy unless the wildcard fallback mixed classes.

Keys

The keys worth learning first.

Every key
  • F3Filter by agent
  • F4Filter by project
  • Shift+F5Last 24 h, 7 d, 30 d, all
  • F12Cycle the six rankings
  • Alt+SLexical, semantic or hybrid
  • Ctrl+PCommand palette
  • Alt+AAnalytics, seven views
  • /Find inside a conversation
  • Ctrl+EnterQueue a hit; Ctrl+O opens all
  • Ctrl+EExport as HTML; with Shift, Markdown
  • Alt+EBookmark the hit
  • F2Next of 19 themes

The nineteen themes include high-contrast and colorblind-safe presets. cass tui --inline keeps your scrollback, and --asciicast records a session for a bug report.

Export

Share a session as one HTML file.

Ctrl+E on a conversation, or cass export-html, writes one page with dark and light themes, folded tool calls and its own search box. cass pages does the same for a whole archive, encrypted.

HTML export

One conversation

cassexit 0
$ cass export-html ~/.claude/projects/-Users-me-src-notes-sync/3f1c9a2e-7b41-4d2a-9c3e-5a8f0d1e2b47.jsonl --output-dir ~/exports --json
{
  "success": true,
  "privacy": {
    "policy": "redact-secrets",
    "redaction_applied": false,
    "sensitive_output": false
  },
  "exported": {
    "session_path": "~/.claude/projects/-Users-me-src-notes-sync/3f1c9a2e-7b41-4d2a-9c3e-5a8f0d1e2b47.jsonl",
    "output_path": "~/exports/claude_-users-me-src-notes-_2026_12_02_1402_sync_hangs_forever_after_the.html",
    "filename": "claude_-users-me-src-notes-_2026_12_02_1402_sync_hangs_forever_after_the.html",
    "size_bytes": 83626,
    "encrypted": false,
    "messages_count": 4,
    "agent": "claude_code",
    "workspace": "~/.claude/projects/-Users-me-src-notes-sync",
    "title": "Sync hangs forever after the laptop wakes from sleep. Can you find out why?"
  }
}

Real output of cass 0.11.0, captured 2026-12-05 on a sample archive of 17 sessions written for this site. The sample home directory shows as ~.

  • OfflineLayout and conversation inlined; only the syntax highlighter loads from a CDN, pinned by hash.
  • Encrypted--encrypt --password-stdin: AES-256-GCM, a PBKDF2 key of 600,000 iterations, decrypted in the browser.
  • RedactedCredentials removed by default; --messages-only keeps just prompts and replies.

A whole archive

cass pages
  • DeploysA searchable static site of your sessions, to GitHub Pages or Cloudflare Pages.
  • Key slotsAES-256-GCM; each password or recovery secret wraps the data key in its own slot, so one can be revoked without re-encrypting. Argon2id, 64 MiB.
  • Fails closedThe public profile strips usernames, hosts, emails and home paths; a credential found by the final scan stops the export.

04Every machine

One index for every machine.

Agents run on laptops, desktops and build servers. cass copies their session files over SSH with rsync, records where each conversation came from, and searches them all from one place.

rsync that never writes remotely
SSH
between scheduled runs
15 min
files deleted by a sync
0
mirror chunks
256 KiB

Setup wizard

Start from your SSH config.

cass sources setup finds your hosts, checks which ones have agent sessions, installs cass where it is missing, writes the configuration and syncs. Everything after that is cass sources sync, or a scheduled job.

Remote sources
  1. 1
    Discover

    Reads the hosts in ~/.ssh/config, and your tailnet with --tailscale.

  2. 2
    Probe

    Checks each host for cass, agent data, session counts, disk and memory.

  3. 3
    Install

    Puts cass on hosts that lack it: a checksummed binary, or a source build as a fallback.

  4. 4
    Configure and sync

    Writes sources.toml with paths and mappings, then pulls the sessions.

sources.toml, as the README documents it

[[sources]]
name = "laptop"
type = "ssh"
host = "user@laptop.local"
paths = ["~/.claude/projects", "~/.codex/sessions"]
sync_schedule = "manual"

[[sources]]
name = "workstation"
type = "ssh"
host = "dev@work.example.com"
paths = ["~/.claude/projects"]
sync_schedule = "daily"

# Path mappings rewrite remote paths to local equivalents
[[sources.path_mappings]]
from = "/home/dev/projects"
to = "/Users/me/projects"

# Agent-specific mappings
[[sources.path_mappings]]
from = "/opt/work"
to = "/Volumes/Work"
agents = ["claude_code"]

Linux keeps it in ~/.config/cass/, macOS in ~/Library/Application Support/cass/. The wizard writes it; you can also edit it by hand.

--dry-run previews every change; an interrupted setup continues with --resume.

Path mappings

Remote paths, local links.

A project recorded on a server as /home/dev/projects/api does not exist on your laptop. Mappings rewrite path prefixes so file links open locally. The longest matching prefix wins, and a mapping can be limited to some agents.

Path mappings

Edit the recorded path, the agent or a rule

Interactive
  1. 1all agents
  2. 2only codex

Opens on this machine as

/Users/me/projects/api/src/auth/refresh.ts

Rule 1 wins: the longest prefix that matches.

Ported from PathMapping::apply and rewrite_path_for_agent. Test your own with cass sources mappings test <source> <path>.

Provenance

Know where each session came from.

Every conversation records the machine it came from and its original path. Filter on them in search, stats and timelines.

Remote archive safety
source_id
Which machine: local, laptop, workstation.
origin_kind
local or remote.
origin_host
The remote host label.
workspace_original
The project path before any mapping.
cass search "auth error" --source laptop --json
cass stats --by-source

In the TUI, F11 cycles all, local and remote sources, and each remote hit shows its machine.

Additive sync

rsync runs without --delete, so a session a remote machine prunes stays in your archive. Retire the laptop and its history stays searchable.

A mirror of the originals

Indexing keeps a content-addressed copy of each source file it reads. Large transcripts are stored in 256 KiB chunks, so an appended session costs only its new tail.

Read-only remotes

A key restricted to rrsync -ro works. Host keys are checked strictly, and cass never writes to the remote side while syncing.

Staying current

Fresh without a cron job.

Three ways to keep up with your work, and none of them blocks a search.

Keeping the index fresh
  • Catch-up on read

    A search, pack or TUI launch that finds the index stale starts a detached, low-priority index run and answers from the current index right away.

    On by default
  • Scheduled

    launchd on macOS or systemd timers on Linux: an incremental run every 15 minutes and a full pass at 03:00, even when no cass process is open. Remote sources you give a schedule sync first.

    cass schedule install
  • Watch mode

    Runs in the foreground, follows agent log directories and re-indexes a conversation when its file changes.

    cass index --watch

Catch-up and scheduled runs lower their own CPU and I/O priority, and scheduled jobs skip a turn when the machine is under heavy load. Every indexer, a watcher included, takes the same lock, so two never run at once.

05Private by default

Your sessions stay on your machine.

Transcripts hold API keys, client code and half-formed ideas. cass reads them where they are, keeps its archive in your own data directory and never modifies the original files. Your session data leaves the machine only when you send it.

secret patterns
16
session files modified
0
times it uses the network
5
for encrypted exports
AES-256

Secret redaction

Keys are scrubbed before indexing.

With the default CASS_INDEX_REDACTION=full, sixteen patterns replace credentials before anything reaches SQLite or the index, so search results and robot output can't repeat them. The original files, and cass's raw mirror of them, keep the raw text on your disk.

How redaction works
  • AWS keys
  • GitHub tokens
  • Slack tokens
  • Stripe keys
  • OpenAI keys
  • Anthropic keys
  • Bearer and Authorization headers
  • Cookies
  • JWTs
  • Private-key blocks
  • Credentials in URLs
  • JSON fields named like password or token

Edit the transcript, or paste your own, and see what cass would store

Interactive

Stored in the archive · 5 redacted

user: deploy fails with 403, here is my .env
AWS_ACCESS_KEY_ID=[REDACTED] (AWS access key)
[REDACTED] (Secret assignment, Anthropic key)
DATABASE_URL=[REDACTED] (Credentials in a URL, Database URL)

assistant: the request below is missing its token:
curl -H 'Authorization: [REDACTED] (Bearer token, JWT)' \
  https://api.example.com/v1/deploy
Also rotate the GitHub token in CI ([REDACTED] (GitHub token)).
The 403 itself came from the expired session, not the key.
  • AWS access key1
  • Secret assignment1
  • Anthropic key1
  • Credentials in a URL1
  • Database URL1
  • Bearer token1
  • JWT1
  • GitHub token1
The sixteen patterns from src/indexer/redact_secrets.rs, translated to JavaScript, run in your browser on up to 8,000 characters: nothing you type here leaves the page. Every value in the sample is invented.

Network

Your data leaves only when you send it.

These five are the only times cass talks to the network, and each starts with something you run or set.

Integrity and safety

On your machine, always

Indexing, search, ranking and semantic inference. No account to create and no server to run.

  • Models

    cass models install

    Downloads MiniLM from Hugging Face, checksums verified. Air-gapped machines use --from-file.

  • Embedding services

    CASS_EXTERNAL_EMBEDDINGS=1

    Required consent before text goes to an external embedder. A URL alone sends nothing.

  • Updates

    CASS_SKIP_UPDATE=1 turns it off

    The TUI asks GitHub for a newer release at most once an hour, never in CI.

  • Other machines

    cass sources sync

    Pulls from your machines over your SSH, with strict host-key checks.

  • Exports

    cass export-html · cass pages

    Redacted by default. Keeping secrets takes --include-secrets; Pages refuses any credential.

Forgetting

Remove history on purpose.

cass never deletes archived history on its own. It removes conversations when you tell it to, and cass forget shows you what it would remove before it does.

Forgetting and exclusions
cass forget --workspace-glob '/work/scratch/*' --older-than 90d --json

Previews what would go: counts and sample sessions. Nothing changes until you repeat it with --apply, and the search index is rebuilt once afterwards.

cass sources agents exclude openclaw

Stops indexing a noisy harness for good. By default it also removes what that harness already archived, at once and without a preview; --keep-indexed-data blocks future imports only.

CASS_EXCLUDE_PATHS=~/clients/acme cass index

Keeps a directory out of the archive, the index and the raw mirror from now on.

06The engine

History in SQLite, indexes on demand.

Conversations live in a SQLite database written by FrankenSQLite, a SQLite engine in Rust. The search index and the vectors are derived from it, so when one is missing, stale or damaged, cass rebuilds it from the archive in the background. No conversation depends on an index surviving.

source of truth: SQLite
1
schema migrations
24
index generations kept
2
fuzz targets
13

Architecture

From session files to answers.

Discovery and parsing run in parallel across your CPU cores. New messages are written to SQLite first and indexed second, so the index can always be rebuilt from the archive.

Architecture and engineering
  1. 01 · franken_agent_detection

    Sources

    • 35 connectors find and parse local sessions
    • SSH mirrors from your other machines
  2. 02 · frankensqlite

    Archive

    • The source of truth: conversations, messages, provenance
    • WAL mode, 24 versioned migrations, secrets already redacted
  3. 03 · frankensearch

    Indexes

    • Quill BM25 with prefix and Unicode terms
    • Optional MiniLM vectors, fused with RRF
    • Rebuilt from the archive, published atomically
  4. 04 · FrankenTUI

    Interfaces

    • The terminal UI
    • Robot CLI and an MCP server
    • HTML and Pages exports

The archive is the only part that has to survive. cass removes conversations from it only on your command: forget --apply, or excluding an agent with sources agents exclude.

Self-repair

What happens when something breaks.

Every index publish is one atomic swap, and the previous generation stays for a one-step rollback. Repairs that need judgment go through cass doctor, which applies only the plan whose fingerprint you approved.

Index resilience and recovery

Pick a failure to see how cass handles it

Worked example

Detected when

No archive and no index in the data directory.

What cass does

  1. The TUI starts a detached, low-priority cass index --full and shows its progress in the status line.
  2. Search goes live as soon as the first index is published, without a restart.
  3. A robot search gets an error that names the fix.

What the caller gets

cassexit 3
$ cass search "rate limit" --robot 2>&1
{"error":{"code":3,"kind":"missing-index","message":"cass has not been initialized in ~/Library/Application Support/com.coding-agent-search.coding-agent-search yet, so search cannot run until the first index completes.","hint":"Run 'cass index --full' once to discover local sessions and build the initial archive.","retryable":true}}

Real output of cass 0.11.0.

Where the sample archive could reproduce a case, the output shown is real; the others state the documented result. Every repair path rebuilds derived data from the archive, and corrupt artifacts are quarantined for inspection, not deleted.

Receipts

Numbers from the repository itself.

Recounted each time this site is built. Releases ship checksummed binaries for Linux x86_64 and ARM64, Apple Silicon and Windows.

  • 7,800+commitsSince November 2025, in the open.
  • 328integration test filesConnectors, search, robot output, TUI snapshots, crash recovery.
  • 77golden filesThe exact JSON and docs agents read.
  • 13fuzz targetsThe CLI parser, query parser, connectors, redaction and decryption.

Install

One line, then type.

Prebuilt for Linux x86_64 and ARM64 (glibc 2.28 or newer), Apple Silicon and Windows. Intel Macs build from source with --from-source.

curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/coding_agent_session_search/main/install.sh?$(date +%s)" | bash -s -- --easy-mode --verify

Installs the latest release to ~/.local/bin and verifies its checksum. Add --version to pin a release.

brew install dicklesworthstone/tap/cass

Apple Silicon Macs and Linux. Upgrade later with brew upgrade cass.

Scoop
scoop bucket add dicklesworthstone https://github.com/Dicklesworthstone/scoop-bucket
scoop install dicklesworthstone/cass
PowerShell
& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/Dicklesworthstone/coding_agent_session_search/main/install.ps1"))) -EasyMode -Verify

64-bit Windows. Scoop keeps cass updated; the PowerShell script installs one release.

The first five minutes

  1. 1
    cass

    Opens the terminal UI and starts the first index in the background. Search goes live when it finishes, no restart needed.

  2. 2
    cass search "database is locked" --robot --limit 5

    The same index, as JSON, for scripts and agents.

  3. 3
    cass sources setup

    Adds your other machines over SSH.

  4. 4
    cass models install

    Downloads the 90 MB MiniLM model once. Then cass index --semantic builds the vectors for semantic and hybrid search.

Tell your agents it exists.

Paste this into AGENTS.md or CLAUDE.md. Before solving a problem from scratch, an agent can then check whether an earlier session already solved it.

AGENTS.md

🔎 cass — Search All Your Agent History

What: cass indexes conversations from Claude Code, Codex, Cursor, Gemini, Aider, ChatGPT, and more into a unified, searchable index. Before solving a problem from scratch, check if any agent already solved something similar.

⚠️ NEVER run bare cass — it launches an interactive TUI. Always use --robot or --json.

Quick Start

# One-shot agent triage (read next_command when present)
cass triage --json

# Search across all agent histories
cass search "authentication error" --robot --limit 5

# Build a cited handoff pack from search evidence
cass pack "authentication error root cause" --robot --max-tokens 12000 --limit 40

# Tight handoff budget with freshness and privacy metadata
cass pack "authentication error root cause" --robot --max-tokens 4000 --max-evidence 8 --fields summary

# View a specific result (from search output)
cass view /path/to/session.jsonl -n 42 --json

# Expand context around a line
cass expand /path/to/session.jsonl -n 42 -C 3 --json

# Learn the full API
cass capabilities --json # Static agent self-description
cass robot-docs guide # LLM-optimized docs

Why Use It

- Cross-agent knowledge: Find solutions from Codex when using Claude, or vice versa
- Forgiving syntax: Typos and wrong flags are auto-corrected with teaching notes
- Token-efficient: --fields minimal returns only essential data; pack budgets cite only selected evidence
- Copy-safe handoffs: pack warnings include freshness and privacy/redaction status

Key Flags

| Flag | Purpose |
|------------------|--------------------------------------------------------|
| --robot / --json | Machine-readable JSON output (required!) |
| --fields minimal | Reduce payload: source_path, line_number, agent, source_id, conversation_id |
| pack --max-tokens N | Budget a cited handoff pack |
| --limit N | Cap result count |
| --agent NAME | Filter to specific agent (claude, codex, cursor, etc.) |
| --days N | Limit to recent N days |

stdout = data only, stderr = diagnostics. Exit 0 = success.