Hindsight
OfficialUses a Gitea repository as a git remote for storing and syncing Hindsight's Markdown knowledge, with commits on write, timed pushes, and optional pull-request-based review.
Uses a GitHub repository as a git remote for storing and syncing Hindsight's Markdown knowledge, with commits on write, timed pushes, and optional pull-request-based review.
Uses a GitLab repository as a git remote for storing and syncing Hindsight's Markdown knowledge, with commits on write, timed pushes, and optional pull-request-based review.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.

Why Hindsight
Your coding agent forgets every incident. The engineer who learned that CrashLoopBackOff on payments-api after a credential rotation means a stale secret mount took that lesson home; the next person's agent starts from zero.
Hindsight keeps that knowledge without becoming another agent you have to run:
Captures learnings from agent sessions through lifecycle hooks, or explicitly through the CLI and MCP.
Redacts tokens, keys, IPs, emails and customer IDs before anything is written. There is no raw transcript store.
Reviews every learning in a queue. Proposed clues stay labelled unreviewed until a human approves them, and promoting a clue into a runbook is a separate, diffed commit.
Serves approved runbooks, services and clues to whichever agent each engineer already uses, over MCP.
Everything is typed Markdown in a git remote you control, every commit carries the real engineer as author, and nothing leaves your infrastructure.
Related MCP server: memoryadapter
Quickstart
Requires Docker with Compose v2 and git. The demo runs offline with a seeded sample repo, no model provider and no git credentials.
git clone https://github.com/DrDroidLab/hindsight.git
cd hindsight
docker compose -f compose.yaml -f compose.demo.yaml up --build -d
docker compose exec hindsight hindsight admin bootstrapOpen http://localhost:8080/setup, paste the enrollment token, save the API key shown once, and sign in. Then approve the proposed clue and promote it to the CrashLoopBackOff runbook. If port 8080 is busy, set HINDSIGHT_PORT before up.
Connect your agent
python3.12 -m venv .venv && . .venv/bin/activate
pip install .
hindsight login --server http://localhost:8080 --scope shared
hindsight install claude --server http://localhost:8080 # or cursor, codex, geminiRestart the agent and ask: "Recall what we know about payments-api CrashLoopBackOff after credential rotation." The full walkthrough, including deploying against your own git remote, is in the quickstart guide.
Features
Typed SRE knowledge | Services, runbooks with stable step IDs, clues, skills, incidents and outcomes, cross-linked by service and alert (content model) |
Seven MCP tools |
|
Review queue | Approve, reject, edit and promote to runbook, with revision conflict detection; or review as git pull requests with |
Trust states | Proposed, approved, stale and rejected clues are labelled in every recall; clues go stale without a confirming outcome |
Any git remote | GitHub, GitLab, Gitea or a bare repo; local clone, commit on write, push on a timer, works offline |
Search | SQLite FTS5 rebuilt from git; optional embeddings from your own endpoint |
Per-user keys and team scopes | Every commit is attributed to a verified engineer; scopes filter results before counts and snippets |
No model required | Capture, review and recall work without an LLM; optional extraction uses your own key or a local model |
What Hindsight is not
Hindsight is not an AI SRE agent. It never gets paged, runs commands against production, or hosts your data, and it sends no telemetry. It is the knowledge layer underneath the agent each engineer already uses. If you want an agent that investigates incidents for you, see projects like OpenSRE; they are complementary, and such an agent could be a Hindsight client. See the comparison.
This MIT-licensed project is published as
hindsight-sreand is unrelated to the Vectorize project also named Hindsight.
Security
Redaction runs in the agent hook and again on the server, but it is best effort: no detector finds every secret, so reviewers should read the evidence before approving. Start from a dedicated, sanitized knowledge remote, keep the server behind HTTPS, and back up the private auth state separately from git. Read the security model and operations guide, and report vulnerabilities privately as described in SECURITY.md.
Project status
Early-stage, v0.1. The automated suite (Python, frontend, and an offline Docker smoke test) passes in CI. Live agent clients and live LLM providers have not yet been certified; per-client hook support and limits are documented in Connect your agent, and the verification record lists exactly what has and has not been checked.
Development
pip install -e '.[dev]'
npm ci --prefix web && npm run build --prefix web
pytest && npm test --prefix web
ruff check src tests scripts && mypy src/hindsightTo work on the documentation site:
pip install -e '.[docs]'
mkdocs serveSee CONTRIBUTING.md. Good first contributions: a capture hook for another agent, or a new redaction rule.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
A shared team wiki your coding agents read and write — across every repo and every MCP client.
Shared project wiki for AI agents: read and write pages, next actions, and activity logs over MCP.
Hosted markdown project wikis your team's AI assistants read, search, and update over MCP.
Team docs served to AI agents over MCP - search, Markdown reads, version pinning, read audit.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server that gives AI coding agents a git-backed markdown wiki to read and update, enabling search, read, write, verify, ingest, promote, and lint operations on versioned knowledge documents with schema validation, staleness tracking, and contradiction detection.4MIT
- AlicenseNot gradedqualityAmaintenanceAn MCP server that enables verified agents to retrieve from, propose changes to, and share capabilities around a human-owned Markdown/Git knowledge base, ensuring curation, exact-byte approval, and Git-based promotion.MIT
- AlicenseNot gradedqualityBmaintenanceA machine-local, agent-writable knowledge base MCP server that lets coding agents autonomously record and retrieve hard-won operational facts, incidents, and corrections as markdown pages in a git repo, with provenance, talk pages, and search.4 npmMIT
- FlicenseAqualityCmaintenanceProvides coding agents with a shared, Markdown-based engineering knowledge base to search, capture, create, and update internal conventions, API details, infrastructure configs, and development setup via lightweight MCP tools.6-