name: hippocampus
description: Search hippocampus knowledge base for documentation, conventions, patterns, and how-to guides (discovery: requirements-clarity). Evaluate at requirements-clarity when user asks "how do I...", "find my...", "what's my convention for...", "continue working on...", or wants to create/edit persistent documentation. All markdown files must go to hippocampus - none created elsewhere.
Hippocampus Knowledge Base
Core Rule
ALL markdown → hippocampus. No exceptions.
- Never create .md files in project directories
- Never create .md files in /tmp or elsewhere
- Everything goes to
~/.claude/hippocampus/ (global or project tier)
Authority Model
- AI autonomy: Search and present options (no approval needed)
- User authority: Tier selection, phantom node choice, edit vs create
- Pattern: AI finds, user classifies
Determine Intent
- Finding resource? → Discovery path
- Creating/editing markdown? → Create/Edit path
- Adding binary files? (auto-detect: .png, .jpg, .pdf, .opus, .mp3, .mp4, etc.) → Binary Asset path
Discovery Path
Step 1: Search Hippocampus
- Use Task tool with
subagent_type=Explore to search hippocampus
- Path:
~/.claude/hippocampus/
- Search query based on user's request
Step 2: Present Paths for Selection
- Show found file paths via AskUserQuestion with
multiSelect: true
- User selects which files to read
- Only read selected files (saves context window)
Step 3: Return Content
- Read only the user-selected files
- Return relevant content to user
Create/Edit Path
Step 1: Search First
- Use Task tool with
subagent_type=Explore to search hippocampus
- Path:
~/.claude/hippocampus/
- Check if similar content already exists
- If found: Present paths via AskUserQuestion → user picks to edit or create new
- If not found: Continue to Step 2
Step 2: Tier Selection
AskUserQuestion with options:
- Global (
~/.claude/hippocampus/global/): Cross-project content (ADRs, patterns, business ops)
- Phantom nodes: Topic-based (e.g.,
[[docker-deployment]], [[prompt-engineering]])
- Project (
~/.claude/hippocampus/project/{name}/): Client-specific content
- Phantom nodes: Client-based (e.g.,
[[client-archibus]], [[client-iitr]])
Step 3: Phantom Node Selection
- Use Explore agent to search for existing phantom nodes in hippocampus
- Present found options to user via AskUserQuestion
- User picks existing or creates new
[[phantom-node]]
- Convention: Use tier-appropriate phantom node type (topic-based for global, client-based for project)
Step 4: Publishing Decision
AskUserQuestion:
- Publish to GitHub Pages?
- Options: Yes / No
- If Yes: Add
publish: true to frontmatter
- Result: File will be mirrored to public-wilsch-ai-pages repo on push
- Return link:
https://mariuswilsch.github.io/public-wilsch-ai-pages/{tier}/{filename} (without .md extension)
Step 5: Create File
- Path:
~/.claude/hippocampus/{tier}/filename.md
- Include selected phantom node wikilink on Line 2-3, after
# Title
- Use descriptive filename (no prefixes needed)
Step 6: Git Commit
- Commit changes with descriptive message
- Git tracks all document evolution
Binary Asset Path
For non-markdown files (images, PDFs, audio, video, etc.)
Step 1: Tier + Folder Selection
- Same as Create/Edit path: Global or Project tier
- Files go to:
~/.claude/hippocampus/{tier}/{folder}/
Step 2: Move Binary Files
- Move files to selected hippocampus folder
- Keep original filenames (or rename if requested)
Step 3: Create Minimal Index
Create index.md with: title, phantom node, then one line per file:
# {Descriptive Title}
[[phantom-node]]

[Document description](document.pdf)
[Audio description](audio.opus)
Format by file type:
- Images:

- Documents:
[Description](file.pdf)
- Audio/Video:
[Description](file.opus)
One index per folder. Add lines as files are added.
Step 4: Git Commit
- Commit binary files + index.md together
- Message: "feat: add {description} to hippocampus"
1---2name: hippocampus3description: Search hippocampus knowledge base for documentation, conventions, patterns, and how-to guides (discovery: requirements-clarity). Evaluate at requirements-clarity when user asks "how do I...", "find my4---5
6---
7name: hippocampus
8description: Search hippocampus knowledge base for documentation, conventions, patterns, and how-to guides (discovery: requirements-clarity). Evaluate at requirements-clarity when user asks "how do I...", "find my...", "what's my convention for...", "continue working on...", or wants to create/edit persistent documentation. All markdown files must go to hippocampus - none created elsewhere.
9---
10
11# Hippocampus Knowledge Base
12
13## Core Rule
14
15**ALL markdown → hippocampus. No exceptions.**
16
17- Never create .md files in project directories
18- Never create .md files in /tmp or elsewhere
19- Everything goes to `~/.claude/hippocampus/` (global or project tier)
20
21## Authority Model
22
23- **AI autonomy:** Search and present options (no approval needed)
24- **User authority:** Tier selection, phantom node choice, edit vs create
25- **Pattern:** AI finds, user classifies
26
27## Determine Intent
28
29- **Finding resource?** → Discovery path
30- **Creating/editing markdown?** → Create/Edit path
31- **Adding binary files?** (auto-detect: .png, .jpg, .pdf, .opus, .mp3, .mp4, etc.) → Binary Asset path
32
33---
34
35## Discovery Path
36
37### Step 1: Search Hippocampus
38- Use Task tool with `subagent_type=Explore` to search hippocampus
39- Path: `~/.claude/hippocampus/`
40- Search query based on user's request
41
42### Step 2: Present Paths for Selection
43- Show found file paths via AskUserQuestion with `multiSelect: true`
44- User selects which files to read
45- Only read selected files (saves context window)
46
47### Step 3: Return Content
48- Read only the user-selected files
49- Return relevant content to user
50
51---
52
53## Create/Edit Path
54
55### Step 1: Search First
56- Use Task tool with `subagent_type=Explore` to search hippocampus
57- Path: `~/.claude/hippocampus/`
58- Check if similar content already exists
59- **If found:** Present paths via AskUserQuestion → user picks to edit or create new
60- **If not found:** Continue to Step 2
61
62### Step 2: Tier Selection
63AskUserQuestion with options:
64- **Global** (`~/.claude/hippocampus/global/`): Cross-project content (ADRs, patterns, business ops)
65 - Phantom nodes: Topic-based (e.g., `[[docker-deployment]]`, `[[prompt-engineering]]`)
66- **Project** (`~/.claude/hippocampus/project/{name}/`): Client-specific content
67 - Phantom nodes: Client-based (e.g., `[[client-archibus]]`, `[[client-iitr]]`)
68
69### Step 3: Phantom Node Selection
70- Use Explore agent to search for existing phantom nodes in hippocampus
71- Present found options to user via AskUserQuestion
72- User picks existing or creates new `[[phantom-node]]`
73- Convention: Use tier-appropriate phantom node type (topic-based for global, client-based for project)
74
75### Step 4: Publishing Decision
76AskUserQuestion:
77- **Publish to GitHub Pages?**
78- Options: Yes / No
79- If Yes: Add `publish: true` to frontmatter
80- Result: File will be mirrored to public-wilsch-ai-pages repo on push
81- **Return link:** `https://mariuswilsch.github.io/public-wilsch-ai-pages/{tier}/{filename}` (without .md extension)
82
83### Step 5: Create File
84- Path: `~/.claude/hippocampus/{tier}/filename.md`
85- Include selected phantom node wikilink on Line 2-3, after `# Title`
86- Use descriptive filename (no prefixes needed)
87
88### Step 6: Git Commit
89- Commit changes with descriptive message
90- Git tracks all document evolution
91
92---
93
94## Binary Asset Path
95
96For non-markdown files (images, PDFs, audio, video, etc.)
97
98### Step 1: Tier + Folder Selection
99- Same as Create/Edit path: Global or Project tier
100- Files go to: `~/.claude/hippocampus/{tier}/{folder}/`
101
102### Step 2: Move Binary Files
103- Move files to selected hippocampus folder
104- Keep original filenames (or rename if requested)
105
106### Step 3: Create Minimal Index
107Create `index.md` with: title, phantom node, then one line per file:
108
109```markdown
110# {Descriptive Title}
111[[phantom-node]]
112
113[Document description](document.pdf)
114[Audio description](audio.opus)
115```
116
117**Format by file type:**
118- Images: ``
119- Documents: `[Description](file.pdf)`
120- Audio/Video: `[Description](file.opus)`
121
122One index per folder. Add lines as files are added.
123
124### Step 4: Git Commit
125- Commit binary files + index.md together
126- Message: "feat: add {description} to hippocampus"