---
name: CAS Search
slug: cas-search
category: Automation
description: CAS Search finds information across CAS memories, tasks, rules, skills, and code. Use it to answer questions about the codebase, locate patterns, search symbols, grep files, or inspect related context.
github: "https://github.com/codingagentsystem/cas/tree/main/.claude/skills/cas-search"
language: Rust
stars: 161
forks: 16
install: "npx degit https://github.com/codingagentsystem/cas/tree/main/.claude/skills/cas-search ~/.claude/skills/cas-search"
installs_to: ~/.claude/skills/cas-search
source_path: .claude/skills/cas-search/SKILL.md
collection_size: 7
category_size: 2226
collection_url: "https://dirskills.com/collections/codingagentsystem/cas"
added: 2026-09-08T05:36:10.546Z
last_synced: 2026-09-08T05:36:10.546Z
canonical_url: "https://dirskills.com/skills/cas-search"
---

# CAS Search

CAS Search finds information across CAS memories, tasks, rules, skills, and code. Use it to answer questions about the codebase, locate patterns, search symbols, grep files, or inspect related context.

**Install:**

```bash
npx degit https://github.com/codingagentsystem/cas/tree/main/.claude/skills/cas-search ~/.claude/skills/cas-search
```

## README

# CAS Search

Use `mcp__cas__search` to find information across CAS content and code. Choose the right action for the job:

## Which Action to Use

**`search`** — Conceptual queries across memories, tasks, rules, skills:
```
mcp__cas__search action=search query="authentication flow" doc_type=entry
```
Filter with `doc_type` (entry, task, rule, skill, code_symbol, code_file) for better relevance.

**`code_search`** — Find code symbols by what they do, not exact names:
```
mcp__cas__search action=code_search query="user authentication" kind=function language=rust
```
Use `include_source=true` to get source code inline.

**`grep`** — Exact regex pattern matching in files:
```
mcp__cas__search action=grep pattern="TODO:" glob="*.rs"
```
Prefer the built-in Grep tool for simple patterns where you already know file paths.

## Decision Guide

| Need | Action |
|------|--------|
| "How does X work?" | `search` or `code_search` |
| Find exact string or regex | `grep` |
| Find past learnings | `search` with `doc_type=entry` |
| Find function by concept | `code_search` |
| Find related tasks | `search` with `doc_type=task` |

## Other Actions

- **`context`** — Session context summary: recent activity, active tasks, relevant memories
- **`context_for_subagent`** — Task-focused context for spawning subagents (pass `task_id` and `max_tokens`)
- **`observe`** — Record discoveries/decisions during work (`observation_type`: general, decision, bugfix, feature, refactor, discovery)
- **`entity_list`** / **`entity_show`** — Browse extracted entities (person, project, technology, etc.)
- **`code_show`** — Full details for a specific code symbol by ID
- **`blame`** — Git blame with optional AI-line filtering (`file_path`, `line_start`, `line_end`)
