Spool
ResearchspoolSpool is an Agent Skill for research published in the paperboytm/spool repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Search your local Claude Code, Codex CLI, Gemini CLI, and OpenCode session history
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/paperboytm/spool/blob/HEAD/skills/spool/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/spool, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Search your thinking with spool — a local search engine over your Claude Code, Codex CLI, Gemini CLI, and OpenCode sessions.
Steps
- Check if spool is installed
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.
- Run the search
spool search "$ARGS" --json --limit 5
where $ARGS is everything the user passed to /spool.
- Present the results
For each result in the JSON array, show:
- Session title and date (
startedAt) - Source (claude, codex, gemini, or opencode) and project path
- The snippet with highlighted terms (strip
<mark>/</mark>tags for plain display) - A note of the session UUID
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
- Offer to load a full session
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.
Tips
- Add
--source claude,--source codex,--source gemini, or--source opencodeto filter by source - Add
--since 7dto limit to the last 7 days - Use quotes for exact phrases:
/spool "read replicas" - Run
spool syncfirst if results seem stale