Your AI forgets.
Cog remembers.
Persistent memory for AI agents.
Every session starts from zero.
Your AI assistant is brilliant in the moment. But tomorrow it won't remember why you chose Postgres, that the auth system is mid-refactor, or the edge case that took three hours to debug.
Thousands of decisions, patterns, and hard-won lessons. Gone when the session ends. You explain the same context again. And again.
Context windows are temporary. Knowledge doesn't have to be.
What a session looks like.
A developer asks their AI to fix a bug. With Cog, the agent recalls prior context before touching code, records what it learns, and consolidates knowledge before signing off. Hover the highlights to see what Cog is doing.
TokenBucket module
Learn. Recall. Connect.
Three primitives that give your AI a persistent knowledge graph. Concepts link together, connections strengthen with use, and stale knowledge fades naturally.
cog_learn
write
Store knowledge
Capture decisions, context, and insights as your AI works. New memories start short-term and consolidate to long-term when validated.
cog_learn({
term: "Database Choice",
definition: "PostgreSQL for JSONB
support and vector extensions"
})
cog_recall
read
Search by meaning
Spreading activation finds not just matches but constellations of related knowledge, the way biological memory works.
cog_recall({
query: "data storage approach"
})
// → Database Choice, Schema Design,
// Migration Strategy...
cog_associate
write
Connect ideas
Build a knowledge graph with typed relationships. Connections strengthen through use and weaken from neglect.
cog_associate({
source: "Auth System",
target: "JWT Tokens",
predicate: "requires"
})
Memory that behaves like memory.
Cog models biological memory dynamics. Knowledge starts fragile, consolidates through validation, strengthens through use, and fades when neglected.
Short-term capture
New knowledge enters as short-term memory. It decays in 24 hours unless reinforced. That's a natural filter for noise.
Consolidation
Your agent reviews short-term memories and reinforces what's valuable. Validated knowledge becomes permanent. Mistakes get flushed.
Strengthening
Frequently recalled knowledge gets easier to find. Connections used together strengthen through Hebbian learning: fire together, wire together.
Decay & pruning
Unused connections weaken over time. Stale relationships degrade through warning, critical, and deprecated stages. The graph stays clean without manual maintenance.
A complete memory system.
Beyond the core three, Cog gives your agent a full toolkit for managing, auditing, and maintaining a knowledge graph.
Core
cog_learnStore conceptcog_recallSearch memorycog_getGet by IDcog_updateUpdate concept
Associations
cog_associateLink conceptscog_traceFind pathcog_unlinkRemove linkcog_connectionsList links
Memory lifecycle
cog_reinforceMake permanentcog_flushDiscard memorycog_list_short_termPending reviewcog_verifyConfirm linkcog_staleFind decay
Graph health
cog_statsBrain metricscog_orphansUnlinked nodescog_connectivityCluster analysiscog_list_termsAll concepts
Bulk operations
cog_bulk_learnBatch storecog_bulk_associateBatch linkcog_bulk_recallBatch search
Cross-brain
cog_meldBridge brains
One line of config.
Cog speaks MCP. Add it to any MCP-compatible coding assistant. No plugins, no SDKs, no workflow changes.
{
"mcpServers": {
"cog": {
"type": "http",
"url": "https://trycog.ai/<username>/<brain>/mcp",
"headers": {
"Authorization": "Bearer sk-..."
}
}
}
}
Shared knowledge across agents.
When one developer's agent discovers a gotcha on Monday, every agent on the team can recall it on Tuesday.
Shared brains capture institutional knowledge: architecture decisions, deployment procedures, API quirks. It never lives in just one person's head.
Melds let brains reference each other without merging. Your personal brain can draw from the team brain during recall, automatically.