cass
БесплатноЗапускает вложенные скриптыНе проверенMine past agent sessions for working prompts, decisions, and patterns. Use when "what did I ask?", "find that prompt", session archaeology, or agent history.
Об этом скилле
cass Session Search
Table of Contents
- The Goldmine Principle
- THE EXACT PROMPT — Discovery Workflow
- Version Pinning Caveat
- Two-Step Bootstrap (Replaces "ALWAYS first")
- Stuck-Index & Recovery Decision Tree
- Quick Reference
- When to Use What
- Critical Rules
- Agent Harness Exclusion
- Search Modes
- Cross-Machine Search (Multi-Workstation Corpus)
- Anti-Patterns (Don't Do These)
- Resume a Past Session in Its Native Harness
- The Heuristics
- jq Essentials
- Hidden Power: Capabilities the Old Skill Missed
- Token & Cost Analytics (Bonus Use Case)
- Recovery Cheat Sheet (No-Permission Moves)
- Reference Index
- Quick Search (Grep Recipes for References)
- Scripts
- Validation
Core Insight: Your repeated prompts are your best prompts. If you typed it 10+ times, it works. Mine your history.
The Goldmine Principle
Your conversation history contains:
- Refined prompts — Every rephrase that worked better was captured
- Working rituals — Prompts repeated 10+ times ARE your methodology
- Scope decisions — "When did we decide NOT to do X?"
- Recovery moments — What you searched for after context loss = what mattered
The insight: Mining your past beats inventing new approaches.
THE EXACT PROMPT — Discovery Workflow
1. Bootstrap: Check health, refresh only if stale (capped, in the background), get project overview
cass status --json
# if .index.stale == true: ( timeout 600 cass index --json >/tmp/cass-index.$$.log 2>&1 </dev/null & )
cass search "*" --workspace /data/projects/PROJECT --aggregate agent,date --limit 1 --json
2. Find prompts: Search for keywords, filter to user prompts (lines 1-3)
cass search "KEYWORD" --workspace /data/projects/PROJECT --json --fields minimal --limit 50 \
| jq '[.hits[] | select(.line_number <= 3)]'
3. Follow hits: View the actual content
cass view /path/from/source_path.jsonl -n LINE -C 20
4. Expand context: See the full conversation flow
cass expand /path/from/source_path.jsonl --line LINE --context 3
5. Discover related: Find the whole work cluster
cass context /path/from/source_path.jsonl --json
Why This Workflow Works
- Aggregations first — Know the terrain before diving in
--fields minimal— 5x smaller output, preserves context windowline_number <= 3— User prompts live at the top of sessions- Context clustering — Work happens in clusters; one good hit → many related sessions
Version Pinning Caveat
cass evolves quickly. The skill describes HEAD behavior (latest source in /dp/coding_agent_session_search). The released v0.3.6 binary lacks several features added since:
cass sources agents {list,exclude,include}— added 2026-04-20 (commit82d8d70e)- Tail-end writer-race tolerance for full rebuilds — fixed 2026-04-22 (commit
e06342f2, beadzz8ni) - Lexical generation manifests for federated installs (commits
2b7b86a1,683ccd03,cf76fe15) - Rebuild producer stall telemetry (commit
73a86604)
When a flag/subcommand returns "unrecognized" or behaves differently than documented, run cass --version and check git log -- src/lib.rs for the relevant commit. Each affected section calls out which commit/version it depends on.
Probe what your installed binary actually supports:
cass capabilities --json | jq '{version: .crate_version, features, connectors}'
cass introspect --json | jq '.commands[].name'
Two-Step Bootstrap (Replaces "ALWAYS first")
Three states matter — never conflate them.
| State | What it means | What to do |
|---|---|---|
cass health exit 0 |
Sub-50ms preflight passed | Search immediately |
cass health exit 1 + index.stale=true |
Index is usable but old | Search now, refresh in background with a wall-clock cap: ( timeout 600 cass index --json &>/tmp/cass-bg.log </dev/null & ) (NEVER bare & — cass index can hang) |
cass status returns database.exists=false OR documents=0 |
Truly broken/uninitialized | Run cass doctor --fix --json, then cass index --full --json |
The trap: Treating a stale index as broken triggers an unneeded full rebuild (8–25s cost) when an incremental refresh (1–3s) or even a stale-but-correct query would have worked.
#
Установить cass в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cass?
Mine past agent sessions for working prompts, decisions, and patterns. Use when "what did I ask?", "find that prompt", session archaeology, or agent history.
Как установить скилл cass?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cass запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic