Reference in New Issue
Block a user
Delete Branch "feat/deep-research"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Deep Research Engine — Iterative Search/Summarize/Reflect Loop
Ports the research loop pattern from langchain-ai/local-deep-researcher (MIT) into the Matrix as a first-class capability. No LangGraph dependency.
What's New
server/research.py— Standalone research engineResearchProgressat each iteration for streaming<think>token stripping for reasoning models (DeepSeek R1, Hermes, etc.)server/bridge.py— Research lifecycle in CognitiveBridgeon_research_request()handler — validates and spawns background taskagent_behavior:ponder+barkwith findings +research_progressmessageresearch_completewith full markdown report +scene_addartifact + final barkserver/gateway.py— Research message routingresearch_request→ route to target agent (liketask_action)research_progress/research_complete→ broadcast to all browsersPROTOCOL.md— 3 new message types documented with full specsTests
How It Plugs In
When Timmy is connected via the bridge, anyone can send a
research_requestthrough the gateway. Timmy's bridge spawns the research loop on local Ollama (Hermes), streams visual progress to the Matrix, and delivers the final report as a world artifact.Closes #73, #74, #75
Advances #50 (replaces human-in-the-loop Kimi workflow with automated local research)
Advances #45 (adds 3 message types to bridge protocol — 10/12 now implemented)