anda-brain

Encode conversations into a persistent knowledge graph with REST and MCP interfaces.

71|7|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/ldclabs/anda-brain --skill anda-brain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anda-brain
Source: https://github.com/ldclabs/anda-brain/tree/main/anda_brain
Command: npx skills add https://github.com/ldclabs/anda-brain --skill anda-brain

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

AI agents lose all memory after a conversation ends, and traditional storage—vector databases, Markdown files, and key-value stores—cannot maintain timeline, causality, or supersession relationships. Anda Brain provides a persistent Cognitive Nexus knowledge graph that compresses, evolves, and consolidates memories across sessions, ensuring agents remember the right information at the right time.

Core Features & Use Cases

  • Formation: Automatically encode conversations into structured episodic, semantic, and cognitive memory.
  • Recall: Query memory with natural language and receive synthesized answers grounded in the knowledge graph.
  • Maintenance: Run sleep cycles to consolidate, deduplicate, prune, and decay stale knowledge.
  • Use Case: A customer support bot that correctly remembers a user's current vegetarian preference while retaining the historical context of their past BBQ orders.

Quick Start

Use the anda-brain skill to persist user preferences and conversation history by sending messages to the Formation endpoint, then query the Recall endpoint with natural language questions to retrieve accurate, up-to-date memories.

Frequently Asked Questions about anda-brain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add persistent long-term memory to AI agents across conversation sessions?

Persistent long-term memory for AI agents is maintained by encoding conversations into a structured knowledge graph. This approach captures episodic, semantic, and cognitive memories, allowing agents to retain context across multiple sessions.

Why does a vector database not work well for AI agent memory formation and recall?

A vector database cannot maintain timeline, causality, or supersession relationships for AI agent memory. A cognitive nexus knowledge graph solves this by compressing, evolving, and consolidating memories to ensure accurate recall over time.

How do I query structured memories in a knowledge graph using natural language?

You query structured memories using natural language through a Recall endpoint. This interface synthesizes answers directly from the stored knowledge graph, returning up-to-date information grounded in episodic and semantic context.

Can I use REST and MCP interfaces for multi-space memory isolation in business agents?

Yes, REST and MCP interfaces support memory formation, recall, and maintenance operations with authentication. These interfaces enable multi-space isolation, making them suitable for business agents handling distinct user contexts.

What is a sleep cycle for memory maintenance in AI agents?

A sleep cycle for memory maintenance is an automated process that consolidates, deduplicates, prunes, and decays stale knowledge in the graph. This ensures the AI agent retains relevant information while discarding outdated memory.

How do I update user preferences in AI memory without losing historical context?

Update user preferences by sending new conversation data to the Formation endpoint. The knowledge graph applies supersession relationships, correctly remembering the current vegetarian preference while retaining the historical BBQ order context.