| name | aoa |
| description | Fast codebase search using aOa. Use instead of Grep/Glob for finding code, symbols, functions, or files. 10-50x faster than built-in search tools. |
| allowed-tools | Bash |
aOa Search (Unix-style Commands)
Use aOa instead of Grep/Glob. It's faster, ranked, and context-aware.
These commands mirror Unix conventions but are 10-100x faster via indexing.
Quick Reference
| Command | Use For | Speed |
|---|
aoa grep <term> | Symbol search (O(1) indexed) | <1ms |
aoa grep "a b c" | Multi-term OR search, ranked | <5ms |
aoa grep -a t1,t2 | Multi-term AND (all required) | <5ms |
aoa egrep "regex" | Regex pattern (working set) | ~20ms |
aoa find "*.py" | File discovery by pattern | <10ms |
aoa locate name | Fast filename search | <5ms |
aoa tree [dir] | Directory structure | <50ms |
aoa changes [time] | Recently modified files | <10ms |
aoa hot | Frequently accessed files | <10ms |
aoa intent recent | See current work patterns | <50ms |
Commands
1. Symbol Search: aoa grep <term>
Find any symbol, function, class, or term in the codebase.
aoa grep handleAuth
aoa grep "auth session token"
aoa grep -a auth,session
aoa grep auth --since 1h
aoa grep auth --today
aoa grep auth --json
aoa grep auth -c
Output: file:line for all matches, ranked by relevance.
Use instead of: Grep, Glob, find
2. Regex Search: aoa egrep "regex"
Pattern matching with regex (searches working set ~30-50 files).
aoa egrep "TODO|FIXME"
aoa egrep "def\\s+handle\\w+"
aoa egrep "class.*Handler"
Use instead of: grep -E, rg
3. File Discovery: aoa find / aoa locate
Find files by pattern or name.
aoa find "*.py"
aoa find --lang python
aoa locate handler
Use instead of: find, ls -R
4. Recent Changes: aoa changes [time]
Find files modified recently.
aoa changes
aoa changes 5m
aoa changes 1d
5. Behavioral Commands
aoa hot
aoa touched
aoa focus
aoa predict
6. Intent Tracking: aoa intent recent
See what's currently being worked on based on tool usage patterns.
aoa intent recent
aoa intent recent 30m
aoa intent tags
Decision Tree
- Know what you're looking for? →
aoa grep <term>
- Multiple related concepts? →
aoa grep "term1 term2" (OR) or aoa grep -a t1,t2 (AND)
- Need regex matching? →
aoa egrep "pattern" (working set only)
- Find files by pattern? →
aoa find "*.py" or aoa locate name
- What changed recently? →
aoa changes or aoa grep --today
- What's being worked on? →
aoa intent recent
Efficiency
| Approach | Tool Calls | Tokens | Time |
|---|
| Grep + Read loops | 7 | 8,500 | 2.6s |
| aoa grep | 1-2 | 1,150 | 54ms |
| Savings | 71% | 86% | 98% |
Tips
-
Read specific lines - aOa returns file:line, so read just those lines:
Read(file_path="src/auth.py", offset=45, limit=10)
-
Don't read entire files - Use the line numbers aOa gives you.
-
Use time filters - --since 1h or --today to narrow results.
-
AND vs OR - Space-separated is OR, comma with -a is AND.