Feive is a self-hosted, cross-agent memory system with a Palace structure for intelligent retrieval and a Dreaming system for autonomous memory consolidation.
Feive unifies memory across all your AI agents through a single MCP server. No more fragmented context.
Memories organized into Wings, Rooms, and Halls. Auto-classification routes each memory to the right location for 34% better retrieval accuracy.
ChromaDB vector search for semantic matching, SQLite FTS5 for keyword fallback. Metadata filtering narrows the candidate set before semantic comparison.
Hermes, Claude Code, OpenClaw — all agents read from and write to the same memory. Each agent's contributions are tagged with source attribution.
Nightly memory consolidation inspired by biological sleep: Light Sleep, REM pattern recognition, and Deep Sleep for archival. Auto-generates insights.
Every memory is stored as a human-readable Markdown file. The vector index can be rebuilt at any time from raw text. Your data, your format.
Standard Model Context Protocol server. Any MCP-compatible client can connect — Claude Code, Hermes, or your own agent. 11 tools out of the box.
Raw text at the bottom, intelligent indexes on top. Delete the index? Rebuild it. Switch models? No data lost.
Inspired by biological sleep cycles, Feive runs a nightly consolidation process that deduplicates, discovers patterns, and archives stale memories.
Scan all memories created in the last 24 hours. Generate a palace snapshot — total count, wing distribution, growth rate. Stage candidates for deeper analysis.
scan + snapshotSemantic deduplication at 0.85 threshold — merge similar memories, keeping the most complete version. An LLM extracts 1-3 non-obvious insights from the day's memories. Misclassified memories are re-routed.
dedup + insight + classifyApply forgetting curves: memories older than 90 days with zero recalls are archived. Enforce hard limits on index size. Demote stale projects automatically. Generate a Dream Journal.
archive + demote + journalEach agent connects differently, but they all read from and write to the same palace.