AgentSkillsCN

cass-search

使用CASS搜索过去的AI会话。当寻找过去的解决方案、搜索会话历史、查找以前如何完成某事,或用户提到“cass”、“历史”或“过去会话”时,请使用此技能。

SKILL.md
--- frontmatter
name: cass-search
description: Search past AI sessions with CASS. Use when looking for past solutions, searching session history, finding how something was done before, or when the user mentions "cass", "history", or "past sessions".

CASS (Cross-Agent Session Search)

Search and retrieve content from past AI coding sessions.

When This Applies

SignalAction
"How did we do this before?"cass search
"Find past solutions"cass search
Looking for patternscass search
View specific sessioncass view
Today's activitycass timeline

CRITICAL RULE

Always use --robot or --json. Never run bare cass.

Bare cass launches a TUI that will hang AI agents.


Search

bash
# Basic search
cass search "query" --robot --limit 5

# Lean output (path, line, agent)
cass search "query" --robot --fields minimal

# With summary (title, score)
cass search "query" --robot --fields summary

# Token budget
cass search "query" --robot --max-tokens 2000

# Wildcard prefix
cass search "auth*" --robot

# Workspace-specific
cass search "query" --workspace "/path/to/project" --robot

View & Expand

bash
# View full session
cass view /path/to/session.jsonl --json

# Expand specific line with context
cass expand /path -n 42 -C 3 --json

Timeline

bash
# Today's sessions
cass timeline --today --json

# Last week
cass timeline --since 7d --json

# Recent activity
cass timeline --days 7 --json --limit 10

Export

bash
cass export /path/session.jsonl --format markdown
cass export /path/session.jsonl --format json

Indexing

bash
# If search returns nothing
cass index --full

# Health check
cass health

Output Formats

bash
--robot-format jsonl     # Streaming line-delimited JSON
--robot-format compact   # Minimal output

Query Tips

Query TypeExample
Exact phrase"error handling"
Wildcardauth*
Multiple termsdatabase migration
RecentAdd --since 7d

Quick Reference

bash
cass search "query" --robot --limit 5      # Basic search
cass search "query" --robot --fields minimal   # Lean output
cass view /path.jsonl --json               # View session
cass expand /path -n 42 -C 3 --json        # Expand with context
cass timeline --today --json               # Today's activity
cass index --full                          # Rebuild index

When to Use CASS vs Other Tools

NeedUse
Past session contentCASS
Learned patterns/rulescass-memory (cm)
Current codebaseWarp-Grep or Grep
Web documentationExa
Task graphbv

See Also

  • cass-memory/ — Cross-agent learning with cm
  • project-memory/ — Session context retrieval