coherra

coherra

Enables agents to audit and repair their long-term memory in Sibyl Memory, detecting contradictions, duplicates, and stale facts, and fixing them with a permanent audit trail.

Category
Visit Server

README

Coherra

An AI agent's memory gets messy. Coherra keeps it clean.

After months of use, any long-running agent accumulates contradictions (the same fact stored twice with different values), duplicates (the same value under different key names), and stale entries (facts that were true six months ago but almost certainly aren't now). Coherra audits the entire memory on demand, scores its health, surfaces every issue with a clear explanation, and repairs them — logging every single action permanently inside Sibyl Memory itself. No external database. No separate service. Everything lives inside Sibyl.


Architecture

┌─────────────────────────────────────────────────────────┐
│                        Agent / IDE                       │
│           (Claude Code, Codex CLI, Cursor, …)            │
└───────────────────────┬─────────────────────────────────┘
                        │ MCP (stdio)
          ┌─────────────▼──────────────┐
          │       Coherra MCP Server    │
          │  coherra_remember           │  ← structured writes
          │  coherra_recall             │  ← single entity read
          │  coherra_list               │  ← browse memory
          │  coherra_audit              │  ← run full scan
          │  coherra_repair             │  ← fix one issue
          │  coherra_repair_safe        │  ← batch safe fixes
          └─────────────┬──────────────┘
                        │ sibyl-memory-client SDK
          ┌─────────────▼──────────────┐
          │       Sibyl Memory          │
          │  WARM tier  — entities      │  ← facts, preferences, people
          │  HOT  tier  — state         │  ← coherra:last_audit, coherra:config
          │  COLD tier  — journal       │  ← coherra_scan, coherra_repair events
          └─────────────────────────────┘
                   ~/.sibyl-memory/memory.db

Coherra sits between the agent and Sibyl Memory. It adds a schema layer (versioned, confidence-tagged bodies), an audit engine (three detectors: contradiction, duplicate, staleness), and a repair engine that logs every action to Sibyl's own append-only journal — so the audit trail is itself part of the memory being managed.


Quickstart

# 1. Clone and install
git clone <repo>
cd coherra
pip install -e .

# 2. Make sure Sibyl Memory is initialised
#    (run once if you haven't already)
sibyl init

# 3. Load the demo dataset
python -m coherra.seed --demo

# 4. Run your first audit
coherra scan

# 5. Browse the issues
coherra issues

# 6. Fix safe issues automatically
coherra fix --all

# 7. Resolve contradictions interactively
coherra fix <issue-id>

# 8. Confirm clean memory
coherra scan

CLI reference

Command What it does
coherra scan Run a full audit — contradiction, duplicate, staleness checks
coherra health One-line summary of the last scan result
coherra issues [--severity <s>] List every flagged issue, grouped by severity
coherra fix <id> [action] Fix one issue; contradictions get an interactive prompt
coherra fix --all Auto-apply all safe repairs (duplicates + stale)

MCP server

Add to your .mcp.json or Claude Code settings:

{
  "mcpServers": {
    "coherra": { "command": "coherra-mcp" }
  }
}

Tools exposed: coherra_remember, coherra_recall, coherra_list, coherra_audit, coherra_repair, coherra_repair_safe.


The pitch

Most memory systems only answer the question "what do I know?" Coherra answers "what do I know that's wrong?" — and fixes it, permanently, with a complete audit trail stored inside the same memory it's cleaning.

Built for the Sibyl Labs Memory Hackathon · August 2026. Requires: sibyl-memory-client >= 0.5.0, mcp >= 1.0.0.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured