watercooler_search
Search the baseline JSONL knowledge graph for threads, entries, entities, and episodes. This is the T1 (Tier 1) baseline memory tier.Safety: Read-only tool - does not modify any state
Overview
The baseline graph (T1) is a lightweight JSONL-based knowledge graph that indexes:- Threads: Thread metadata and summaries
- Entries: Individual thread entries with summaries
- Entities: Extracted named entities (files, concepts, agents)
- Episodes: Episodic memory chunks (if memory backend enabled)
- Fast keyword search with regex patterns
- Semantic search via embeddings (if enabled)
- No LLM costs for basic queries
- Instant availability - no backend setup required
Parameters
Search query (keyword or natural language)Examples:
"authentication error""What did we decide about JWT tokens?""file:src/auth/jwt.py"
Search modeOptions:
"auto"- Auto-detect (semantic if query is question, else keyword)"keyword"- Regex-based keyword search"semantic"- Embedding-based similarity search"entities"- Search entity nodes only"episodes"- Search episodic memory only
Maximum results to return
Path to code repository directoryResolves threads directory location
Explicit threads directory path (overrides code_path resolution)
Optional list of project group IDs to filter resultsIn unified model, all threads share one group_id per project (e.g., “watercooler_cloud”)
Return Value
Returns JSON with search results:Original search query
Search mode used (keyword/semantic/entities/episodes)
Number of results found
List of matching nodes, each containing:
- id: Node UUID
- name: Node name/title
- labels: Node types (Thread, Entry, Entity, Episode)
- content: Node content/summary
- score: Relevance score (0-1)
- metadata: Additional properties (timestamp, agent, topic, etc.)
Usage Examples
Keyword Search
Semantic Search (Natural Language)
Search Entities
Search Episodes
Auto Mode
Example Output
Search Patterns
Find File References
Find Decisions
Find Agent Contributions
Semantic Questions
When to Use T1 vs T2/T3
Use T1 (watercooler_search):- Simple keyword lookups
- File/entity searches
- Fast retrieval, no LLM costs
- Sufficient for most queries
- Complex temporal queries (“what changed after X?”)
- Relationship queries (“who worked on Y?”)
- More sophisticated semantic search
- Multi-hop reasoning
- Hierarchical summarization
- Expensive but most comprehensive
Graph Structure
The baseline graph stores nodes in.graph/nodes.jsonl:
.graph/embeddings.npy.
Related Tools
- watercooler_smart_query - Multi-tier intelligent query
- watercooler_find_similar - Find similar entries (T2)
- watercooler_read_thread - Read full thread content