trace-claude-code
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool…
Search Tool Hierarchy
Claude Code
$ npx -y skills add parcadei/Continuous-Claude-v3 --skill search-hierarchy --agent claude-code
Codex
$ npx skills add parcadei/Continuous-Claude-v3 --skill search-hierarchy -a codex -y
Cursor
$ npx skills add parcadei/Continuous-Claude-v3 --skill search-hierarchy -a cursor -y
Gemini CLI
$ npx skills add parcadei/Continuous-Claude-v3 --skill search-hierarchy -a gemini-cli -y
GitHub Copilot
$ npx skills add parcadei/Continuous-Claude-v3 --skill search-hierarchy -a github-copilot -y
OpenCode
$ npx skills add parcadei/Continuous-Claude-v3 --skill search-hierarchy -a opencode -y
Windsurf
$ npx skills add parcadei/Continuous-Claude-v3 --skill search-hierarchy -a windsurf -y
name: search-hierarchy description: Search Tool Hierarchy user-invocable: false
Use the most token-efficient search tool for each query type.
Query Type?
├── STRUCTURAL (code patterns)
│ → AST-grep (~50 tokens output)
│ Examples: "def foo", "class Bar", "import X", "@decorator"
│
├── SEMANTIC (conceptual questions)
│ → LEANN (~100 tokens if path-only)
│ Examples: "how does auth work", "find error handling patterns"
│
├── LITERAL (exact identifiers)
│ → Grep (variable output)
│ Examples: "TemporalMemory", "check_evocation", regex patterns
│
└── FULL CONTEXT (need complete understanding)
→ Read (1500+ tokens)
Last resort after finding the right file| Tool | Output Size | Best For | |------|-------------|----------| | AST-grep | ~50 tokens | Function/class definitions, imports, decorators | | LEANN | ~100 tokens | Conceptual questions, architecture, patterns | | Grep | ~200-2000 | Exact identifiers, regex, file paths | | Read | ~1500+ | Full understanding after finding the file |
The `grep-to-leann.sh` hook automatically: 1. Detects query type (structural/semantic/literal) 2. Blocks and suggests AST-grep for structural queries 3. Blocks and suggests LEANN for semantic queries 4. Allows literal patterns through to Grep
# STRUCTURAL → AST-grep ast-grep --pattern "async def $FUNC($$$):" --lang python # SEMANTIC → LEANN leann search opc-dev "how does authentication work" --top-k 3 # LITERAL → Grep Grep pattern="check_evocation" path=opc/scripts # FULL CONTEXT → Read (after finding file) Read file_path=opc/scripts/z3_erotetic.py
1. AST-grep: "Find async functions" → 3 file:line matches 2. Read: Top match only → Full understanding 3. Skip: 4 irrelevant files → 6000 tokens saved
A persistent, learning, multi-agent development environment built on Claude Code Continuous Claude transforms Claude Code into a continuously learning system that maintains context across sessions, orchestrates specialized agents, and eliminates wasting
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool…
Guide for integrating Agentica SDK with Claude Code CLI proxy
Reference guide for Agentica multi-agent infrastructure APIs
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.