Brain-First Lookup Protocol
Goal
Check the brain before calling ANY external API. The brain almost always has something. External APIs fill gaps, they don’t start from scratch.What the User Gets
Without this: the agent calls Brave Search for someone you’ve had 12 meetings with. You get a LinkedIn summary instead of your relationship history. With this: the agent pulls your compiled truth, recent timeline entries, and shared context before doing anything else. External APIs only fill gaps.Implementation
Why Brain First
The brain has context no external API can provide:- Relationship history (how you know them, what you discussed)
- Your own assessments (what you think of them, not their LinkedIn bio)
- Meeting transcripts (what was said, what was decided)
- Cross-references (who they know, what companies they’re connected to)
- Timeline (what changed recently, what’s trending)
Tricky Spots
- Try keyword first, then hybrid. Keyword search works without embeddings (day one). Hybrid search needs embeddings but finds semantic matches. Try both in sequence.
-
Fuzzy slug matching.
modusbrain getsupports fuzzy matching. If the exact slug doesn’t exist, it suggests alternatives. Use this for name variants (“Pedro” → “pedro-franceschi”). - Don’t skip for “simple” questions. Even “what’s Acme Corp’s address?” should check the brain first. The brain might have it, and the lookup adds no latency (< 100ms for keyword search).
- Load compiled truth + recent timeline. The compiled truth gives you the state of play in 30 seconds. The timeline gives you what changed recently. Both together = full context.
How to Verify
- Ask about someone in the brain. Verify the agent searched the brain FIRST (check tool call order in the response).
- Ask about someone NOT in the brain. Verify the agent searched the brain, found nothing, THEN fell back to external search.
- Ask the same question twice. Second time should be instant (brain has it).
Part of the ModusBrain Skillpack. See also: Brain-Agent Loop, Search Modes