GhostCrab MCP + mindBrain SQLite — structured domain navigation for Autogen sessions #7728
FrancoisLamotte
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What problem this solves
AutoGen gives agents memory — but each agent's memory is its own island.
AutoGen 0.4 exposes a
Memoryprotocol with three built-in implementations:ListMemory(chronological, in-memory),ChromaDBVectorMemory(local vector similarity),and
RedisMemory(Redis vectors). EachAssistantAgentgets its own instance.There is no shared registry across agents on the same team by default.
When a
planneragent records an architecture decision, thecoderagent cannot see itunless it is explicitly re-injected into the conversation. Context fragments across turns,
runs, and team members.
SelectorGroupChatandRoundRobinGroupChatorchestrate turnselection — but have no structured, persistent view of what agents have done,
what is blocked, or whether a phase gate has been reached.
This request adds two complementary components that solve this without touching AutoGen core.
What a domain looks like in practice
A domain is any bounded context where agents need to
reason over structured relationships : not just retrieve text.
mindBrain separates two levels:
Ontology (the model) : the schema of a domain:
entity types, relationship types, constraints, vocabularies.
Defined once, shared across every agent on the team, across every run.
Knowledge Graph (the projected instance) : the populated graph:
real entities, real edges, real state : queryable via projections.
Example: multi-agent project delivery
The
orchestratoragent callsghostcrab_pragma_query(projection="task_summary"):returns task counts by status without scanning conversation history.
ghostcrab_pragma_query(projection="phase_readiness")returns score88→ triggersghostcrab_phase_transitionto REVIEW. Workers write facts; the orchestrator readspre-computed projections. No re-derivation from chat logs.
Example: ERP domain
A
finance_agentin an AutoGen team resolves a billing anomaly by callingmindbrain_query(mode="faceted", filters={"component": "billing", "type": "GLEntry"}).Account structure, approval rules, and GL history are returned as structured records —
not ranked passages from a document index.
No re-injection of spreadsheet data between sessions.
Example: CRM domain
A
sales_agentbuilding a renewal brief queries the shared namespace:mindbrain_query(mode="faceted", filters={"type": "Account", "slug": "novatech"}).Account tier, deal stage, interaction history, and contractual constraint
are returned in a single structured response — visible to every agent
in the team through the shared
MindBrainMemoryinstance.Example: Customer Support domain
A
support_agentcallsghostcrab_graph_traverse(start_id="TK-9821", relation="references", depth=2)and immediately surfaces the linked incident, the known issue, and its resolution —
without searching knowledge bases or escalating blindly.
The
reviewer_agentin the same team can validate the resolution linkusing the same shared registry.
The meta-ontology: where mindBrain becomes strategic
Each domain above is useful alone. The real leverage is connecting them.
A single AutoGen team working on a cross-domain task —
say, an enterprise renewal involving a billing dispute,
an open critical support ticket, and a stalled deal —
queries all four domains from the same shared namespace in one pass.
The orchestrator does not relay natural-language context between specialized agents.
It reads the graph. Relations carry their semantics natively.
Context does not degrade across turns or team members.
That is the difference between per-agent memory and a shared ontology registry.
AutoGen's
Memoryprotocol was designed to accept a custom implementation.MindBrain provides the shared, structured backend that the built-in options cannot offer.
Two components, one integration
mindBrain (SQLite : Personal edition)
The data layer. It organizes domain knowledge into three constructs:
DEPENDS_ON,ASSIGNED_TO,IMPLEMENTS,LINKED_TO,AFFECTS,VALIDATES, ...pg_pragma) : pre-computed orchestrator views — task summary by status, agent load, blocker queue, phase readiness score, critical path — surfaced at zero inference costGhostCrab MCP
The gateway layer exposed through AutoGen's native
autogen-extMCP workbench.Two surfaces on the same server:
MindBrainMemory— implements the AutoGenMemoryprotocol; shared instance across all agents on the teamMcpWorkbench— exposes structured tools directly to agents: faceted query, graph traversal, projection reads, phase transitions, agent signalsWhy this belongs outside AutoGen core
It should stay external.
AutoGen already exposes the right extension point: the
Memoryprotocol withadd,query,update_context, andclear. MindBrain implements that protocolwithout modifying AutoGen itself.
Domain ontologies are specific to each team's application context.
The framework cannot know in advance what entities to model,
how to relate them, or what projections an orchestrator needs.
That belongs to the team builder.
If GhostCrab is absent : a
ListMemoryfallback keeps agents functional.If mindBrain is empty : agents start with a blank namespace and populate it
through normal
addcalls during the first team run.Setup
One shared instance. One workbench. All agents.
When
planneradds an architecture decision viaadd(),coderretrieves itthrough
query()on the next turn — no explicit re-prompt needed.Local development (stdio)
→ Full configuration, skill files, and tested AutoGen walkthrough:
https://github.com/mindflight-orchestrator/ghostcrab-personal-mcp/blob/main/ghostcrab-integrations/autogen/SKILL_ghostcrab-architect_autogen.md
https://github.com/mindflight-orchestrator/ghostcrab-personal-mcp/blob/main/ghostcrab-integrations/autogen/SKILL_autogen_ghostcrab-runtime_.md
What MindBrain adds that ChromaDB/Redis do not
pg_pragma: task_summary, phase_readiness, blockers, agent_loadghostcrab_agent_signal,ghostcrab_phase_transitionScope of this request
autogen-ext[mcp]>=0.4.6— already available for MCP workbench useRoundRobinGroupChat,SelectorGroupChat, and custom team patternsautogen-agentchat>=0.4.6,autogen-ext[mcp]>=0.4.6,autogen-core>=0.4.6Memoryprotocol implementation +McpWorkbenchtoolsetBeta Was this translation helpful? Give feedback.
All reactions