Files
claude-code/commands/search.md
OpenCode Test 125bb4904b Add search command, history browser, install script, and systemd timers
- /search command to search across memory, history, and configuration
- history-browser.py for browsing and analyzing session history
- install.sh for first-time setup with directory creation and validation
- daily-maintenance.sh for scheduled backup, cleanup, and validation
- systemd timer units for automated daily maintenance at 6 AM
- Updated shell completions with 11 aliases
- Test suite now covers 19 tests
- Bump version to 1.1.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 18:41:07 -08:00

44 lines
972 B
Markdown

---
name: search
description: Search through memory, history, and configuration
aliases: [find, lookup]
invokes: skill:search
---
# Search Command
Search across PA memory, session history, and configuration files.
## Usage
```
/search <query> # Search everywhere
/search --memory <query> # Search only memory
/search --history <query> # Search only session history
/search --config <query> # Search configuration files
/search --recent [days] # Show recent items (default 7 days)
```
## Implementation
Run the search script:
```bash
python3 ~/.claude/automation/search.py [options] <query>
```
## Search Locations
| Location | Contents |
|----------|----------|
| Memory | preferences, decisions, projects, facts |
| History | Past session summaries and topics |
| Config | State files, component registry |
## Output
Returns matching items with:
- Source location
- Match context
- Relevance score (when applicable)