Entity Detection: Run It on Every Message
Goal
Every inbound message gets scanned for original thinking AND entity mentions so the brain grows on every conversation, automatically.What the User Gets
Without this: the agent answers questions but forgets everything. You mention Pedro in a meeting, and next week the agent doesn’t know who Pedro is. With this: every person, company, and idea mentioned in conversation gets a brain page. Next time Pedro comes up, the agent already has context. The brain compounds.Implementation
Spawn a lightweight sub-agent on EVERY inbound message. Do NOT wait for it to finish before responding. It runs in parallel.The Detection Prompt
Notability Filtering
Before creating a new entity page, check notability:What Counts as Original Thinking
Filing Rules
The Iron Law of Back-Linking
Every entity mention MUST create a back-link FROM the entity page TO the source. This is not optional.Tricky Spots
- Don’t block the conversation. Entity detection runs async. The user should see a response immediately, not wait 2 minutes while the sub-agent enriches 5 entity pages.
- Sonnet, not Opus. Entity detection is pattern matching, not deep reasoning. Sonnet is 5-10x cheaper and fast enough. Use Opus for the main conversation.
- Exact phrasing matters. “Markdown is actually code” is an insight. “Markdown can be used as code” is a summary. Capture the first version.
- Don’t create stubs. If you create a page, make it good. Run a web search, build out the compiled truth, add context. A stub page with just a name is worse than no page (it gives false confidence).
-
Dedup before creating. Always
modusbrain searchbefore creating a page. Variant spellings, nicknames, and company abbreviations cause duplicates. “Pedro Franceschi” and “Pedro” might be the same person.
How to Verify
- Send a message mentioning a person. Say “I had coffee with Sarah Chen from Acme Corp today.” Verify: brain/people/sarah-chen.md was created or updated, brain/companies/acme-corp.md was created or updated, both have timeline entries with today’s date.
- Send a message with an original idea. Say “What if we could distribute software as markdown files that agents execute?” Verify: brain/originals/{slug}.md was created with your exact phrasing.
- Check back-links. Open Sarah Chen’s page. It should have a timeline entry linking back to today’s conversation. Open Acme Corp’s page. Same.
- Send a boring message. Say “ok sounds good.” Verify: nothing was created. The detector should report “No signals detected.”
- Check for duplicates. Mention “Pedro” then later “Pedro Franceschi.” Verify: one page, not two.
Part of the ModusBrain Skillpack.