DecisionsSearch
Enables autonomous CI/CD error investigation by detecting suspect PRs, running an agent to investigate root causes, and optionally opening fix PRs.
Provides persistent graph storage for memory, enabling relationship traversal, structural queries, and linking of decisions, code patterns, and PR history.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DecisionsSearchsearch for the architectural decision about authentication that was recorded last month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DecisionsSearch π
Hybrid Memory Server for AI Agents β an MCP server with persistent shared memory (Neo4j + Qdrant) and an autonomous CI/CD error investigator that finds root causes and proposes fixes.
π§π· Leia em PortuguΓͺs
What DecisionsSearch Is
AI coding agents forget everything the moment a session ends. The next session β yours or a teammate's β re-derives the same context, re-litigates the same decisions, and repeats mistakes the team already fixed once. CI/CD pipelines have the same blind spot: errors happen, get triaged manually, and the connection between "this error" and "the PR that caused it" is lost.
DecisionsSearch is a persistent, queryable memory layer that sits between your AI agents and a knowledge graph. It gives agents three things they don't have on their own:
Durable memory across sessions β decisions, business rules, code patterns, and PR history survive after the chat window closes. Neo4j stores the relationships (what implements what, what superseded what); Qdrant enables semantic search over all of it.
A structured vocabulary for "what's worth remembering" β not a raw transcript dump, but typed categories (business rule, architectural decision, code pattern, PR record, task episode) that stay useful months later.
Autonomous error investigation β point your CI/CD at DecisionsSearch's webhook, and it finds the suspect PRs, runs a coding agent to investigate root cause, and can open a fix PR on its own.
Related MCP server: Memory-MCP
When To Use It
You're running Claude Code (or another MCP-aware agent) on a codebase you touch repeatedly, and you're tired of re-explaining the same architecture and rules every session.
Multiple agents/developers work on the same codebase and need a shared source of truth for why things are the way they are, not just what the code does.
You want your CI/CD to do first-pass triage on errors before a human looks at them.
Don't use it for: a one-off script, a throwaway prototype, or as a replacement for your actual documentation/wiki β DecisionsSearch complements structured docs, it doesn't replace them (see .decisionssearch/ files below).
Quick Start
Prerequisites
Python >= 3.11
uv (recommended) or pip
Docker (for Neo4j + Qdrant in full mode)
Install
git clone https://github.com/Renzo-Tognella/DecisionsSearch.git
cd DecisionsSearch
uv syncConfigure
cp .env.example .env
cp config/decisionssearch.yaml.example config/decisionssearch.yamlEdit .env with your API keys and config/decisionssearch.yaml for your setup.
Run
Full mode (Neo4j + Qdrant, recommended β richer search, graph traversal):
# Start infrastructure
docker compose up -d
# Bootstrap vector collection (idempotent β safe to re-run)
uv run python -m scripts.bootstrap_qdrant
# Start server (HTTP + MCP on port 8000)
uv run decisionssearchThe current HTTP/MCP server uses the full composition and requires Neo4j +
Qdrant. The mode field is retained for configuration compatibility; setting
mode: light does not currently activate a JSONL-only server path. JSONL is
used for landing zone, snapshots and local operational state; the benchmark
has a separate explicit local backend.
Verify
# MCP endpoint responds (406 without proper MCP headers is expected β it means the route is alive)
curl http://localhost:8000/api/health # real health path lives under /api
curl http://localhost:8000/mcp/Connecting Your Agent
Local, stdio (simplest for personal use):
{
"mcpServers": {
"decisionssearch": {
"command": "uv",
"args": ["--directory", "/path/to/DecisionsSearch", "run", "decisionssearch-mcp"]
}
}
}Local or remote, HTTP (needed if the server already runs as a persistent process, e.g. via uv run decisionssearch):
{
"mcpServers": {
"decisionssearch": { "url": "http://localhost:8000/mcp" }
}
}Drop this into a project's .mcp.json (project-scoped) or your global MCP config. MCP servers are only picked up when a session starts β after adding or changing this config, open a new agent session in that project rather than expecting the tools to appear mid-session.
Project-scoped memory
For memory tools, project is optional. When omitted, DecisionsSearch uses the
name of the Git repository root (or the current folder for a non-Git workspace)
as the project partition. New memories receive that project value, and
memory.query/memory.find_duplicates filter Qdrant and Neo4j by it before the
hybrid ranking and RRF fusion. Set DECISIONSSEARCH_PROJECT when the server is
started outside the workspace or when a deployment needs an explicit partition.
This is a logical memory partition, not an authentication boundary. The resolution order is:
DECISIONSSEARCH_PROJECT, when configured;an explicit
projectargument, useful for imports and batch jobs;the Git repository root name;
the current folder name when no Git root exists.
Omitting project is the recommended agent workflow. The resolved value is
written with the memory and is passed to every retrieval branch. A query first
filters the project in the canonical ledger, Qdrant, and Neo4j, then performs
dense, sparse, and structural retrieval, RRF fusion, and optional reranking.
How memory works
DecisionsSearch does not treat a transcript, diff, or embedding as a memory by itself. A memory is durable, typed knowledge with a project, evidence, context, and a reason to remain useful after the current task.
workspace β project tag β raw event β sanitization β extraction
β admission gates β proposal/approval β canonical ledger
β outbox β Qdrant search projectionThe write path is deliberately selective:
memory.ingest_rawstores the sanitized source in the landing zone and asks the extractor for typed candidates;the admission chain requires a project and evidence, checks duplicates or refinements, validates category-specific context, and evaluates weight;
with the canonical ledger enabled, the agent creates a proposal with a before/after preview, field diff, evidence, and
preview_hash;an operator or trusted policy approves the proposal; the apply uses expected heads (CAS) and creates an immutable revision, head, lineage, and outbox event;
the materializer publishes the active head to Qdrant idempotently. Qdrant is a derived retrieval index, never the source of truth.
The canonical model separates identity from content: MemoryFamily is the
stable logical memory, MemoryRevision is an immutable version, and
MemoryHead points to the published version for a scope and branch. Evidence,
aliases, relations, validity windows, and audit events remain queryable. Updating
a title or summary therefore creates a new revision instead of silently erasing
history.
On reads, the resolved project is applied before candidate generation. Dense embeddings find semantic similarity, sparse retrieval preserves exact technical terms, and the graph contributes structural context. These ranked lists are combined by RRF; optional spreading activation, composite scoring, and reranking then refine the candidates. A high relevance score is a retrieval signal, not proof that a claim is true.
For the complete lifecycle, data model, project isolation, and operational
limits, see docs-public/relatorio_memoria.md,
ARCHITECTURE.md, and the public PDF
docs-public/relatorio_resultados.pdf.
Public documents
docs-public/instalacao.mdβ supported installation and operation;docs-public/relatorio_memoria.mdβ memory lifecycle and project partitioning;docs-public/relatorio_resultados.mdβ reproducible evidence and current limits;docs-public/instalacao.pdfanddocs-public/relatorio_resultados.pdfβ visual PDF versions.
Using DecisionsSearch Day-to-Day: The Skills Suite
Connecting the MCP server gives your agent 40+ raw tools (memory.query, memory.pr.create, graph.project.create, ...) β powerful, but not something you want to call by hand every time. skills-memory/ ships a suite of 13 agent skills that wrap those tools into a workflow:
Step | Skill | What it does |
1. Setup (once per project) |
| Q&A about your business/domain β writes |
2. End of every PR |
| One sweep of the session + PR diff β detects what's worth remembering (rule? decision? pattern?) β creates the right memory nodes, with your confirmation, and links them |
3. Anytime |
| "Have we done something like this before?" β semantic search across PRs, rules, decisions, patterns, and past task episodes |
3. Anytime |
| "How did this get here?" β walks the chain of PRs, decisions, and superseded versions for a rule, an architectural choice, or a file |
4. Periodically |
| Syncs |
Install with decisionssearch-init in a fresh project; the suite ships its own README, a canonical template every skill follows, and a golden-set test file per skill (plus a consolidated cross-skill routing test) β see skills-memory/README.md.
Usage Modes
Mode 1: Personal Memory (Local)
Run DecisionsSearch locally. Your AI agent connects via MCP stdio or HTTP (see above).
The local server uses the same full composition as the shared server. For a reproducible zero-infrastructure regression, use the benchmark's explicit local backend rather than treating JSONL as a canonical memory store.
# config/decisionssearch.yaml
mode: full
data_dir: dataFull mode (Neo4j + Qdrant) provides graph traversal and hybrid vector+structural queries.
Mode 2: Shared Team Memory (Server)
Deploy DecisionsSearch on a server. All team members' agents read/write to the same knowledge base.
# On your server
uv run decisionssearch --host 0.0.0.0 --port 8000Team members point their agents to the shared MCP endpoint:
{
"mcpServers": {
"decisionssearch": { "url": "https://your-domain.example/mcp" }
}
}Everyone's agent sessions contribute memories. The daily scan job automatically ingests GitHub PRs and cards, building a shared knowledge graph of the team's decisions, patterns, and architectural history.
Mode 3: Autonomous Error Investigator
Configure in config/decisionssearch.yaml:
agent:
provider: codex # opencode | codex | claude | zai | openrouter
timeout: 600
codex:
model: gpt-4o
api_key: ${OPENAI_API_KEY}
safety:
min_confidence: 0.7
max_auto_fixes_per_hour: 3
blocked_paths:
- auth/
- security/
- .env
notifications:
slack:
enabled: true
webhook_url: ${SLACK_WEBHOOK_URL}Point your CI/CD pipeline to send errors:
# GitHub Actions example
curl -X POST https://your-domain.example/api/webhook/errors \
-H "Content-Type: application/json" \
-H "X-Signature: $(echo -n "$body" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET")" \
-d '{
"error_type": "RuntimeError",
"error_message": "Null pointer in UserService",
"stack_trace": "at UserService.java:42\nat Controller.java:15",
"service": "api",
"environment": "production"
}'DecisionsSearch will:
Ingest the error and find which files are affected
Search for PRs that recently modified those files (suspects)
Run a coding agent to investigate root cause
If confidence is high enough, create a fix PR
Notify the team via Slack
Memory Categories
Every memory node has a category that determines what fields are required and enforced by admission gates before it's accepted into the graph:
Category | Created via | Required beyond the basics | Use it for |
|
|
| What a PR changed and why |
|
|
| Durable domain truth that outlives any single PR |
|
|
| A design choice, motivation, trade-offs, and rejected alternatives |
|
| evidence and durable context | A durable coding, structure, or interaction convention |
|
| evidence of reuse | A recurring design or interaction solution |
|
|
| A reusable implementation convention, with a concrete example |
|
|
| How a feature or workflow starts, behaves, and ends |
Episode |
|
| What was tried in a specific task and what happened β not a |
Procedure |
|
| A repeatable runbook for a type of task |
Relations between MemoryItems go through two distinct, validated APIs β don't mix them up:
PR β memory (
memory.pr.link_memory):IMPLEMENTS,EVIDENCES,MODIFIES.memory β memory (
memory.link):RELATED_TO,DEPENDS_ON,REFINES,DEPRECATES,CONFLICTS_WITH,EVOLVES_FROM.
Superseding a rule or decision is memory.deprecate(memory_id, replaced_by, rationale), not a manual link β it proposes (new)-[:DEPRECATES]->(old) and applies it only after operator approval.
MCP Tools
The server exposes 40+ MCP tools. Key categories:
Category | Tools | Description |
Memory |
| Core ingestion and retrieval; project defaults to the agent workspace folder |
Relations |
| Typed relationships between memories |
Context |
| Pre-task loading, post-task extraction, and post-commit verification |
PR Memory |
| PR-to-memory linking |
Catalog |
| Graph catalog management |
Episodic |
| Task outcome memories |
Procedural |
| Reusable procedures |
Errors |
| Error pipeline |
System |
| Scheduler control |
Admin |
| Maintenance |
Configuration Reference
All config in config/decisionssearch.yaml. Environment variables via ${VAR:default} syntax.
Variable | Default | Description |
|
|
|
|
| LLM provider: openai, zai, openrouter, gemini |
| β | Generic API key for all providers |
| inherits | Optional separate embedding provider, including openrouter |
| β | OpenRouter key for chat, embeddings, reranking, and the autonomous worker |
|
| Native OpenRouter reranker model |
|
| Restricts reranking to Zero Data Retention endpoints |
|
| Restricts OpenRouter embedding requests to ZDR endpoints |
|
| Canonical ledger adapter; |
|
| Explicitly enables MCP approval/rejection/apply tools |
| unset | Optional project partition override when the process is outside the workspace |
|
| Neo4j connection |
| β | Neo4j password |
|
| Qdrant host |
|
| Qdrant port |
|
| Enables BM25 sparse retrieval alongside dense vectors on a compatible collection |
|
| none, cohere, jina, cross-encoder, openrouter, openai |
See config/decisionssearch.yaml.example for the complete reference with all options.
Architecture
Application code lives directly under src/ (src/domain, src/application,
src/infrastructure, src/interfaces, and src/bootstrap). Packaging maps
that physical layout to the stable public namespace decisionssearch.*.
See ARCHITECTURE.md for detailed technical documentation with diagrams covering:
Memory ingestion pipeline (5-gate admission)
Project resolution and project-first filtering
Canonical ledger, approval, revision, and outbox lifecycle
Hybrid search pipeline (RRF fusion + spreading activation)
Error investigation flow (agent worker + safety gates)
Graph data model
Deployment topologies
See LIMITATIONS.md for the current implementation gaps, their evidence, and the proposed path to resolve them.
Post-commit memory capture
The versioned .githooks/post-commit hook collects HEAD, changed files, the
open PR for the current branch (when gh is available), and the session from
DECISIONSSEARCH_SESSION_FILE or .decisionssearch/session.md. It sends that context to the
LLM with an explicit instruction to check for durable knowledge before creating
memory. no_memory is a valid result, so trivial changes are not forced into
memory. Accepted candidates pass the admission gates and capture is idempotent
per commit + PR + session.
Install it once from the repository root:
uv run python -m scripts.install_git_hooksThe hook runs in the background and is fail-open, so an OpenRouter, GitHub, Qdrant, or Neo4j failure never blocks a commit. To test synchronously:
DECISIONSSEARCH_COMMIT_MEMORY_HOOK_SYNC=1 \
DECISIONSSEARCH_SESSION_FILE=.decisionssearch/session.md \
git commit -m "my change"Agents that already have the context can call memory.capture_commit with
session_context, commit_sha, and the PR metadata. For diagnostics, run
uv run python -m scripts.post_commit_memory_hook --repo . --dry-run.
Development
# Install dev dependencies
uv sync --group dev
# Run tests
uv run pytest tests/ -q --ignore=tests/e2e
# Lint
uv run ruff check .
# E2E tests (requires running infrastructure)
RUN_E2E=1 uv run pytest tests/e2e -qLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to store, retrieve, and connect information in a Neo4j graph database as persistent memory, with semantic relationships, natural language search, and temporal tracking across conversations.92072MIT
- AlicenseAqualityDmaintenanceProvides persistent memory for AI agents using hybrid search (vector embeddings + BM25) with neural reranking, enabling storage and retrieval of insights, debugging solutions, and patterns across coding sessions.8MIT
- Alicense-qualityCmaintenanceProvides AI coding agents with persistent, graph-connected memory across projects, enabling cross-project context retrieval via synaptic connections and hybrid search.186MIT
- Flicense-qualityAmaintenanceProvides persistent, local-first memory with knowledge graph and hybrid search for AI coding agents, reducing token usage by storing decisions, patterns, and codebase context.8
Related MCP Connectors
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Persistent memory for AI agents. Search, store, and recall across sessions.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Renzo-Tognella/DecisionsSearch'
If you have feedback or need assistance with the MCP directory API, please join our Discord server