pickbrain

pickbrain is a skill for Claude Code, Codex from dropbox/witchcraft. It costs 40 tokens per session (720 once invoked), scanned A, original, Apache-2.0.

A semantic search tool for past conversations with AI coding assistants such as Gemini, Claude, and Codex. It searches by meaning and can open the complete conversation session behind a match.

In plain words
What is it for?
Use it to find previous implementations or discussions, read their surrounding context, list recent sessions, and browse known projects.
Why use it?
It avoids manually searching old chats or remembering which assistant or repository contained an earlier decision.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to find previous implementations or discussions, read their surrounding context, list recent sessions, and browse known projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dropbox/witchcraft/gemini
About the project

Witchcraft is a standalone semantic search engine written in Rust that stores its search index in a single SQLite database and runs on a device. It is intended for client-side document search without external services or API keys, and the catalogue skills support using the project.

dropbox/witchcraft · 525 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dropbox/witchcraft --skill gemini
Clone the repo
git clone --depth 1 https://github.com/dropbox/witchcraft

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pickbrain

README.md
[![agentmods](https://agentmods.dev/badge/skills/dropbox/witchcraft/gemini/github.svg)](https://agentmods.dev/skills/dropbox/witchcraft/gemini)
Your own site
<a href="https://agentmods.dev/skills/dropbox/witchcraft/gemini"><img src="https://agentmods.dev/badge/skills/dropbox/witchcraft/gemini/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pickbrain

Your own site · 80×15
<a href="https://agentmods.dev/skills/dropbox/witchcraft/gemini"><img src="https://agentmods.dev/badge/skills/dropbox/witchcraft/gemini.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 720 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00720
Opus 5.5 $0.00016 $0.00288
Sonnet 5.5 $0.00008 $0.00144
Haiku 4.5 $0.00004 $0.00072

Measured 20d ago against content hash b3d49a250b2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pickbrain scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pickbrain/GEMINI_SKILL.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pickbrain for Gemini

pickbrain provides semantic search and retrieval for your past AI interactions (via pickbrain --mcp over stdio). Instead of searching by keywords, it understands the meaning of your questions to find relevant conversation turns. Run pickbrain once to build ~/.pickbrain/pickbrain.db and pickbrain --watch (or make pickbrain-install) to keep the index updated in the background.

Tools

1. search_ai_history

Searches your indexed history for relevant context.

  • query: (Required) Non-empty natural language description of what you are looking for.
  • session_id: (Optional) Filter by session ID, Slack channel name/ID, or Slack thread key (thr:...).
  • source: (Optional) Filter by gemini, claude, codex, pi, or slack.
  • project: (Optional) Filter by workspace directory basename (exact match, e.g. witchcraft; see list_projects).
  • since: (Optional) Duration filter like "24h", "7d", "2w".
  • limit: (Optional) Maximum number of results to return (default: 5, 0 = unlimited).

When to use: Whenever the user asks "What did we talk about regarding X?" or "Find where we implemented Y."

2. read_session

Retrieves conversation turns from a specific session, Slack channel, or Slack thread (thr:...).

  • session_id: (Required) The unique ID of the session or Slack ConvKey (thr:...) found in search results.
  • turns: (Optional) Turn range like "7-9" or single turn "7" to conserve context tokens (defaults to the first 20 turns when omitted).
  • since: (Optional) Duration filter like "24h", "7d", "2w".
  • include_thinking: (Optional) Include intermediate thinking blocks (default: false).

When to use: After finding a relevant turn via search_ai_history, use this (passing turns around the matched turn) to get the full context of the surrounding discussion.

3. list_recent_sessions

Shows the 20 most recent indexed AI sessions with a 150-character preview.

Read the full file on GitHub · 46 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago Changed · +6 lines · +4 tokens per session b3d49a250b2b
  2. 24d ago First seen · 40 lines · 36 tokens per session scan A 1fc7cb930488

Subscribe to this mod's changes

pickbrain is a skill published in the GitHub repository dropbox/witchcraft (525 stars, last pushed 2d ago), licensed Apache-2.0. It adds 40 tokens to every session and 720 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-09.

Related

pickbrain compared with skills from other repositories

pickbrain next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pickbraindropbox/witchcraftSkill5252d agoApache-2.0A40Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill396ktodayMITA80Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k6d agoApache-2.0A217Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k15d agoMITA184Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
memoryopensquilla/opensquillaSkill7.2k7d agoApache-2.0A44Claude Code, Codex