| name | description |
|---|---|
tapes |
Use when the user says "check the tapes", "search tapes", "tapes search", or wants to look up past agent sessions. Starts tapes services if needed and queries the local SQLite store at ~/.tapes/. |
Query local tapes session data. The tapes SQLite database lives at ~/.tapes/ and contains recorded LLM agent sessions across all projects.
- "check the tapes"
- "search tapes for ..."
- "tapes search ..."
- "look up sessions about ..."
- "what did I work on ..."
Before searching, the tapes API server must be running. Start it in the background if it isn't already:
# Check if already running
curl -sf http://localhost:8081/health > /dev/null 2>&1
# If not running, start it in the background pointing at the global sqlite db
tapes serve api --sqlite ~/.tapes/tapes.db &
Use the Bash tool with run_in_background for the serve command so it doesn't block the conversation.
Run searches with the tapes CLI:
tapes search "<query>" --api-target http://localhost:8081 --top 5
- Adjust
--topbased on how broad or narrow the user's question is - Use
--quietwhen piping results to other commands liketapes skill generate
To show session summaries and costs:
tapes deck --sqlite ~/.tapes/tapes.db --since 24h
Useful flags:
--since 24h/--since 7dfor time windows--sort cost|time|tokens|duration--model <name>to filter by model--project <name>to filter by project--session <id>to drill into a specific session
- Check if the API is already listening on port 8081
- If not, start
tapes serve api --sqlite ~/.tapes/tapes.dbin the background - Run the search or deck command the user asked for
- Present results concisely