一键导入
spool
// Search your local Claude Code, Codex CLI, Gemini CLI, and OpenCode session history
// Search your local Claude Code, Codex CLI, Gemini CLI, and OpenCode session history
| name | spool |
| description | Search your local Claude Code, Codex CLI, Gemini CLI, and OpenCode session history |
| allowed-tools | Bash |
Search your thinking with spool — a local search engine over your Claude Code, Codex CLI, Gemini CLI, and OpenCode sessions.
which spool
If the command is not found, tell the user:
spoolCLI is not installed. Run:npm install -g @spool/clithenspool syncto index your sessions. Stop here.
spool search "$ARGS" --json --limit 5
where $ARGS is everything the user passed to /spool.
For each result in the JSON array, show:
startedAt)<mark> / </mark> tags for plain display)Example format:
1. [claude] /code/myproject — 2026-03-20
"…evaluated the database sharding tradeoffs and reached a decision…"
UUID: abc123
2. [opencode] /code/api — 2026-03-18
"…the race condition was caused by a shared map write without a mutex…"
UUID: def456
Ask: "Want to see the full conversation for any of these? I can load it with spool show <uuid>."
If the user says yes (or specifies a number/UUID), run:
spool show <uuid>
Include the output as context in your next reply.
--source claude, --source codex, --source gemini, or --source opencode to filter by source--since 7d to limit to the last 7 days/spool "read replicas"spool sync first if results seem stale