# Codesearch

> Search the local codebase for patterns, symbols, implementations, and references. Use when the user wants to find where code lives or understand how a pattern is implemented without invoking the OpenAI Codex plugin namespace.

- **Type:** Skill
- **Install:** `agentstack add skill-waitdeadai-minmaxing-codesearch`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [waitdeadai](https://agentstack.voostack.com/s/waitdeadai)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [waitdeadai](https://github.com/waitdeadai)
- **Source:** https://github.com/waitdeadai/minmaxing/tree/main/.claude/skills/codesearch

## Install

```sh
agentstack add skill-waitdeadai-minmaxing-codesearch
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# /codesearch

Code search and pattern understanding across the codebase.

**MAX_PARALLEL_AGENTS** — ceiling for search lanes. Split search only across independent directories or patterns that meaningfully reduce search time.

**Use when:** User says "find code", "search code", "where is this implemented", "grep this", "swarm codesearch", or needs to find patterns across the codebase.

**Swarm:** "swarm codesearch" → `/codesearch` with an efficacy-first search wave up to `MAX_PARALLEL_AGENTS`.

---

## Purpose

Find code patterns efficiently and store successful search patterns for future recall.

---

## Execution Protocol

### Step 1: Memory Recall (Before Search)

Recall similar past searches to leverage known patterns:

```bash
# Recall similar code patterns
bash scripts/memory.sh recall "[search topic]" --depth simple 2>/dev/null || echo "Memory recall: skipped"

# Search for procedural patterns
bash scripts/memory.sh search "[code pattern or function name]" 2>/dev/null || true
```

### Step 2: Execute Code Search

```bash
# Use fast local search tools
rg -n "[pattern]" .

# For complex searches, spawn parallel agents
claude -p "Search for [pattern] in codebase. Report file paths and line numbers." > codesearch-results.out 2>&1 &
```

### Step 3: Store Found Patterns

After successful pattern discovery, store for future recall:

```bash
# Store successful pattern as procedural memory
bash scripts/memory.sh add procedural "[file]: [found pattern description]" --tags "code-pattern,[language]"
```

### Step 4: Final Output

```markdown
## Codesearch Results: [Search Pattern]

### Files Found
- [file:line] — [brief description]
- [file:line] — [brief description]

### Stored to Memory
- [pattern description] → procedural tier
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [waitdeadai](https://github.com/waitdeadai)
- **Source:** [waitdeadai/minmaxing](https://github.com/waitdeadai/minmaxing)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-waitdeadai-minmaxing-codesearch
- Seller: https://agentstack.voostack.com/s/waitdeadai
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
