From oh-my-auggie
Search across all session history — find past decisions, code, and context quickly
npx claudepluginhub r3dlex/oh-my-auggie --plugin oh-my-auggie<query>haiku4.5## /oma:session-search **Purpose:** Search across all Claude Code session history to find past decisions, code, explanations, and context. **Usage:** - `/oma:session-search <query>` — Search all session history for query - `/oma:session-search <query> --since <date>` — Search only sessions since date (e.g., `2026-03-01`) - `/oma:session-search <query> --project <path>` — Search only a specific project - `/oma:session-search <query> --limit 20` — Limit to N results (default: 50) - `/oma:session-search <query> --json` — Output machine-readable JSON - `/oma:session-search <query> --case-sens...
Share bugs, ideas, or general feedback.
Purpose: Search across all Claude Code session history to find past decisions, code, explanations, and context.
Usage:
/oma:session-search <query> — Search all session history for query/oma:session-search <query> --since <date> — Search only sessions since date (e.g., 2026-03-01)/oma:session-search <query> --project <path> — Search only a specific project/oma:session-search <query> --limit 20 — Limit to N results (default: 50)/oma:session-search <query> --json — Output machine-readable JSON/oma:session-search <query> --case-sensitive — Case-sensitive matchingExamples:
/oma:session-search "how did we handle auth?"/oma:session-search "rate limit" --since 2026-03-01/oma:session-search "fix session" --project ~/Projects/myapp/oma:session-search "API design" --limit 10 --jsonOMA maintains a session history index at .oma/sessions/ (or .omc/sessions/). Each session has:
events/*.raw.txt — Raw transcript chunksevents/*.summary.md — Generated summariesmanifest.json — Session metadata (timestamps, project, agent).raw.txt files by default; summaries included if query is high-levelHuman-readable (default):
Session history matches for "query"
Showing N of M matches across X files (global scope)
1. session-20260310T014715888Z [agent:executor]
2026-03-10T01:47:15.888Z
~/Projects/myapp
...matched excerpt with query highlighted...
.oma/sessions/.../events/000001.raw.txt:42
2. session-20260308T...
...
JSON output:
{
"query": "...",
"totalMatches": 5,
"searchedFiles": 12,
"scope": { "mode": "global" },
"results": [
{
"sessionId": "session-20260310T...",
"agentId": "executor",
"timestamp": "2026-03-10T01:47:15.888Z",
"projectPath": "~/Projects/myapp",
"excerpt": "...matched text...",
"sourcePath": ".oma/sessions/.../events/000001.raw.txt",
"line": 42
}
]
}
| Option | Description | Default |
|---|---|---|
--since <date> | Only search sessions after date | All sessions |
--project <path> | Limit to specific project | All projects |
--limit <n> | Max results to return | 50 |
--json | Output JSON instead of human-readable | false |
--case-sensitive | Case-sensitive search | false |
--context <n> | Lines of context around each match | 2 |
The following features are needed to implement session history search in OMA:
.oma/sessions/ with proper chunking and metadatagrep or a lightweight full-text search to query the index; session_search MCP tool or oma_session_search bash scriptmanifest.json per session with timestamps, project path, agent IDsIf session history is not yet indexed, /oma:session-search will return "No matches found" until the indexer is implemented.