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.
brew install dicklesworthstone/tap/cassThe 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 query
Typed into the search bar; the line above names the theme, the search mode (Hybrid) and the ranking (Standard).
- Filters
Agent, workspace, time and source. F3 to F11 set them from the keyboard.
- One pane per agent
20 hits in 4 panes, each in its agent’s color; “+2” marks two more panes off to the right.
- The conversation
The selected hit, with Messages, Snippets, Raw and JSON tabs. Enter opens it full screen.
- 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.
What is inside
Six parts, one archive.
The archive
35 agents, one archive
Connectors read each agent’s sessions where they already live and map them to one schema. Session files are only ever read.
For agents
JSON your agents can rely on
Every command has a robot mode: JSON on stdout, stable exit codes, errors that name the next step. The figure shows the start of a real response.

In your terminal
Results on every keystroke
One pane per agent, the whole conversation a key away, six rankings and nineteen themes.
Every machine
Your laptop, desk and servers
cass pulls sessions from your other machines over SSH, records where each came from and rewrites paths so links open here.
Private by default
Secrets never reach the index
Sixteen patterns strip keys and tokens before indexing. Nothing leaves the machine unless you send it.
The engine
Indexes that rebuild themselves
Conversations live in SQLite. The index and vectors derive from it and are rebuilt in the background when missing or damaged.
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 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 example35 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
$ 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]" } ]
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.
- character prefixes indexed
- 2–20
- of each message, prefix-indexed
- 4 KiB
- typical engine query
- < 60 ms
- terms per wildcard, at most
- 16,384
Type a query, or pick an example, to search 48 invented sessions
Interactive- Reads as
token AND refresh- match_type
exact
Aider1
Store the refresh token in a cookie
Move the refresh token out of localStorage into an httpOnly, SameSite=strict cookie, keep the access token in memory, and make the refresh endpoint read the…
Codex2
Rotate refresh tokens on every use
Refresh token rotation is now enabled: each refresh returns a new pair and invalidates the old token. Reuse of an old refresh token revokes the whole…
Login fails after password reset
…revokes all sessions but leaves the refresh token cookie in place, so the next refresh fails and the app shows a blank page. Clearing the cookie…
Claude Code1
Users get logged out every hour
The access token expires after 60 minutes and two tabs call the refresh endpoint at once. The second refresh uses a rotated refresh token and the…
Cursor1
axios interceptor retries 401 forever
…401, including the 401 from the refresh call itself, so an expired refresh token looped. I skip the retry when the failing request is the token…
Gemini CLI1
Retry the export when the token expires
Long exports outlive the access token. The worker now refreshes the token when it receives a 401 mid-export and resumes from the last completed page…
NOT binds tightest, then AND, then OR, and parentheses group. It is not cass's engine; cass runs Quill, and expands suffix and substring wildcards over the term dictionary, at most 16,384 terms per pattern.Search modes
Exact words, similar meaning, or both.
Semantic search is opt-in: cass models install downloads the model once and cass index builds the vectors. Alt+S in the TUI, or in robot mode, switches between the three.
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 exampleQuerylogin keeps failing after the token expires
| # | Session | BM25 rank | MiniLM rank | Contributions | Score |
|---|---|---|---|---|---|
| 1 | Users get logged out every hour | 3 | 1 | 1/(60+3) = 0.01591/(60+1) = 0.0164 | 0.0323 |
| 2 | Login fails after password reset | 1 | 4 | 1/(60+1) = 0.01641/(60+4) = 0.0156 | 0.0320 |
| 3 | JWT rejected right after login | 4 | 2 | 1/(60+4) = 0.01561/(60+2) = 0.0161 | 0.0318 |
| 4 | Retry the export when the token expires | 5 | 6 | 1/(60+5) = 0.01541/(60+6) = 0.0152 | 0.0305 |
| 5 | Store the refresh token in a cookie | 6 | 5 | 1/(60+6) = 0.01521/(60+5) = 0.0154 | 0.0305 |
| 6 | Rate limit the login endpoint | 2 | – | 1/(60+2) = 0.0161– | 0.0161 |
| 7 | axios interceptor retries 401 forever | – | 3 | –1/(60+3) = 0.0159 | 0.0159 |
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.
JSON on stdout, diagnostics on stderr--robot Only the fields the agent needs--fields minimalA response sized for a context window--limit ·--max-tokens What ran: database, time window, filters, search mode--robot-meta
Step through a real session, or press play
Worked example$ 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.
Forgiving parser
It fixes the flags agents get wrong.
Models write , 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.
Pick a common mistake to see what cass ran and what it printed
Worked exampleTyped
cass find "auth bug" -robot --limit 5Ran
cass search auth bug --robot --limit 5Printed on stderr · exit 0
note:auto-corrected: Auto-corrected: 'find' → 'search' (canonical subcommand name);'-robot' →'--robot' (usedouble-dash for long flags). Canonical form: search auth bug--robot --limit 5
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.
Change the budget, the session limit and the freshness policy
Worked example5 selected4 omitted4 sessions2,930 of 3,500 tokens
- 1Codex2d oldlikely380 tokA killed indexer leaves a stale lock; check the pid in it before removing it.selected
- 2Claude Code6d oldunverified520 tokbusy_timeout only covers SQLite's own lock, not index-run.lock.selected
- 3Codex2d oldlikely380 tokA killed indexer leaves a stale lock; check the pid in it before removing it.
duplicate_content - 4Gemini CLI21d oldlikely640 tokRemove the lock only after confirming no indexer process holds it.selected
- 5Claude Code4d oldunverified700 tokThe stale lock came back after the laptop slept mid-index.selected
- 6Cursor12d oldunverified1,100 tokWrapping the indexer in timeout 30s killed it before its first commit.
token_budget_exhausted - 7OpenCode33d oldlikely450 tokExit code 7 means another indexer holds the lock: retry later.selected
- 8Aider75d oldunverified900 tokDeleted the lock file by hand and the index was half written.
max_sessions_reached - 9Codex158d oldunverified1,600 tokOld notes on lock handling before the detached background rebuild.
max_sessions_reached
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.
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 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 adds cass_view, cass_view_batch and cass_transcript; 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 capabilitiesWorkflows, recoveries, commands, exit codes, settings--json cass introspectEvery argument and response schema--json cassA walkthrough written for modelsrobot-docs guide
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.
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.
Pick a mode to re-rank the same eight hits
Interactivescore = 0.5 × relevance + 0.5 × recency
- 1JWT rejected right after loginrel 0.57rec 0.912d ago0.736
- 2Rotate refresh tokens on every userel 0.82rec 0.649d ago0.731
- 3Login fails after password resetrel 0.31rec 1.00today0.657
- 4Users get logged out every hourrel 1.00rec 0.1440d ago0.569
- 5Store the refresh token in a cookierel 0.45rec 0.3521d ago0.401
- 6axios interceptor retries 401 foreverrel 0.69rec 0.00120d ago0.345
- 7Retry the export when the token expiresrel 0.18rec 0.0464d ago0.111
- 8Notes on refresh token storagerel 0.00rec 0.00no date0.000
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.
- 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 keeps your scrollback, and records a session for a bug report.
Export
Share a session as one HTML file.
Ctrl+E on a conversation, or cass , 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.
One conversation
$ 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
: AES-256-GCM, a PBKDF2 key of 600,000 iterations, decrypted in the browser.--encrypt --password-stdin - RedactedCredentials removed by default;
keeps just prompts and replies.--messages-only
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.
- 1Discover
Reads the hosts in ~/.ssh/config, and your tailnet with --tailscale.
- 2Probe
Checks each host for cass, agent data, session counts, disk and memory.
- 3Install
Puts cass on hosts that lack it: a checksummed binary, or a source build as a fallback.
- 4Configure 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.
previews every change; an interrupted setup continues with .
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.
Edit the recorded path, the agent or a rule
Interactive- 1all agents
- 2only codex
Opens on this machine as
/Users/me/projects/api/src/auth/refresh.ts
Rule 1 wins: the longest prefix that matches.
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.
source_id- Which machine:
local,laptop,workstation. origin_kindlocalorremote.origin_host- The remote host label.
workspace_original- The project path before any mapping.
cass search "auth error" --source laptop --jsoncass stats --by-sourceIn the TUI, F11 cycles all, local and remote sources, and each remote hit shows its machine.
Additive sync
rsync runs without , 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 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.
One day of cass schedule install
incremental, every 15 minfull pass, 03:00
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 defaultScheduled
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 installWatch 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.
- 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
InteractiveStored 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
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.
On your machine, always
Indexing, search, ranking and semantic inference. No account to create and no server to run.
Models
cass models installDownloads MiniLM from Hugging Face, checksums verified. Air-gapped machines use
.--from-file Embedding services
CASS_EXTERNAL_EMBEDDINGS=1Required consent before text goes to an external embedder. A URL alone sends nothing.
Updates
CASS_SKIP_UPDATE=1 turns it offThe TUI asks GitHub for a newer release at most once an hour, never in CI.
Other machines
cass sources syncPulls from your machines over your SSH, with strict host-key checks.
Exports
cassexport-html · cass pagesRedacted by default. Keeping secrets takes
; Pages refuses any credential.--include-secrets
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.
cass forget --workspace-glob '/work/scratch/*' --older-than 90d --jsonPreviews what would go: counts and sample sessions. Nothing changes until you repeat it with , and the search index is rebuilt once afterwards.
cass sources agents exclude openclawStops indexing a noisy harness for good. By default it also removes what that harness already archived, at once and without a preview; blocks future imports only.
CASS_EXCLUDE_PATHS=~/clients/acme cass indexKeeps 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.
01 · franken_agent_detection
Sources
- 35 connectors find and parse local sessions
- SSH mirrors from your other machines
02 · frankensqlite
Archive
- The source of truth: conversations, messages, provenance
- WAL mode, 24 versioned migrations, secrets already redacted
03 · frankensearch
Indexes
- Quill BM25 with prefix and Unicode terms
- Optional MiniLM vectors, fused with RRF
- Rebuilt from the archive, published atomically
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 , 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.
Pick a failure to see how cass handles it
Worked exampleDetected when
No archive and no index in the data directory.
What cass does
- The TUI starts a detached, low-priority cass index --full and shows its progress in the status line.
- Search goes live as soon as the first index is published, without a restart.
- A robot search gets an error that names the fix.
What the caller gets
$ 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.
The Franken suite
Built on its own libraries.
cass is the main user of a set of Rust libraries by the same author. Each is a separate project you can use on its own.
- frankensqliteA SQLite engine in Rust with concurrent writers. It reads the stock SQLite files that Cursor and OpenCode write.
- frankensearchLexical BM25, semantic embeddings, RRF fusion and reranking in one library, with a pure-Rust MiniLM.
- franken_agent_detectionFinds and parses sessions from 35 coding agents.
- FrankenTUIThe terminal UI framework: Elm-style updates, frame budgets and diffed rendering.
- asupersyncThe async runtime, with structured concurrency.
- toonA token-efficient encoding for robot output, selected with --robot-format toon.
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 .
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/coding_agent_session_search/main/install.sh?$(date +%s)" | bash -s -- --easy-mode --verifyInstalls the latest release to ~/.local/bin and verifies its checksum. Add --version to pin a release.
brew install dicklesworthstone/tap/cassApple Silicon Macs and Linux. Upgrade later with brew upgrade cass.
scoop bucket add dicklesworthstone https://github.com/Dicklesworthstone/scoop-bucket
scoop install dicklesworthstone/cass& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/Dicklesworthstone/coding_agent_session_search/main/install.ps1"))) -EasyMode -Verify64-bit Windows. Scoop keeps cass updated; the PowerShell script installs one release.
The first five minutes
- 1
cassOpens the terminal UI and starts the first index in the background. Search goes live when it finishes, no restart needed.
- 2
cass search "database is locked"--robot --limit 5The same index, as JSON, for scripts and agents.
- 3
cass sources setupAdds your other machines over SSH.
- 4
cass models installDownloads 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.


