diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..4be3b43 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,42 @@ +name: docs +on: + push: + branches: [main] + paths: ['docs/**', 'overrides/**', 'mkdocs.yml', 'CLUE.md', '.github/workflows/docs.yml'] + pull_request: + paths: ['docs/**', 'overrides/**', 'mkdocs.yml', 'CLUE.md', '.github/workflows/docs.yml'] + workflow_dispatch: +permissions: + contents: read +concurrency: + group: pages-${{ github.ref }} + cancel-in-progress: true +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - run: pip install 'mkdocs-material>=9.5,<10' + - run: mkdocs build --strict + env: + NO_MKDOCS_2_WARNING: '1' + - if: github.event_name != 'pull_request' + uses: actions/upload-pages-artifact@v3 + with: + path: site + deploy: + if: github.event_name != 'pull_request' + needs: build + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index e659de7..411f596 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ coverage.xml .coverage playwright-report/ test-results/ +site/ diff --git a/CLUE.md b/CLUE.md index 440ec07..d6ab47b 100644 --- a/CLUE.md +++ b/CLUE.md @@ -43,4 +43,4 @@ The server computes fingerprints from scope, service IDs, alerts, and normalized `source` contains only a bounded redacted excerpt, opaque agent/session identifiers, and optionally a validated safe link. Never store local transcript paths, raw transcripts, environment dumps, credentials, or API keys here. Confidence is a number from 0 to 1, not approval or a probability guarantee. -Storage path: `clues/--.md` or `teams//clues/.md`. Server-created filenames may use UUIDs. Scope comes from the validated path, not frontmatter. The stable UUID is the identity even if a file is renamed. See [all content types](docs/content-model.md) and the seven [sample records](examples/sample-knowledge/). +Storage path: `clues/--.md` or `teams//clues/.md`. Server-created filenames may use UUIDs. Scope comes from the validated path, not frontmatter. The stable UUID is the identity even if a file is renamed. See [all content types](https://drdroidlab.github.io/hindsight/content-model/) and the seven [sample records](https://github.com/DrDroidLab/hindsight/tree/main/examples/sample-knowledge). diff --git a/README.md b/README.md index f523407..ff6c54c 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,47 @@ -# Hindsight +

+ Hindsight logo +

-**Operational memory underneath your engineer's agent. Review what it learned before your team relies on it.** +

Hindsight

-Hindsight turns redacted session learnings into a **review queue**, not another agent dashboard. Inspect evidence, edit a clue without an LLM, approve or reject it, then separately preview and accept a runbook change. Typed services, runbooks, clues, skills, incidents, and outcomes live in human-readable Markdown in git. +

+ Self-hosted operational memory for your team's coding agents.
+ Runbooks, service context and reviewed incident learnings, stored in git and served over MCP to Claude Code, Cursor, Codex and Gemini CLI. +

-- **Your agent stays in charge.** Recall context through MCP in Claude Code, Cursor, Codex, Gemini CLI, or another MCP client. Hindsight is not an AI SRE runtime and does not execute production commands. OpenSRE and other investigation agents are complementary. -- **No telemetry. No required model.** Manual capture, review, and FTS retrieval work offline against a local knowledge repository. Optional extraction and embeddings use your explicitly configured own-key or local OpenAI-compatible endpoint. -- **Trust is explicit.** Proposed means unreviewed. Stale means re-check the evidence. A reported success does not approve a clue, and approval does not silently edit a runbook. -- **Git is knowledge, not authentication.** Each human write preserves verified author attribution. Private identities, key digests, sessions, and pepper need their own protected backup. +

+ CI status + MIT license + Documentation + No telemetry +

-> This MIT-licensed **hindsight-sre** package is not the Vectorize project named Hindsight. There is no managed service or hidden hosted fallback. Redaction is best effort, not a guarantee that every secret will be found. Start with a sanitized remote: existing git objects/history are outside the no-new-raw-store guarantee. +

+ Documentation · + Quickstart · + How it works · + CLUE.md spec · + FAQ +

-## Try the reviewed queue +![Hindsight review queue showing three proposed clues from last night's on-call; the selected clue's session excerpt has a token and an IP address replaced by REDACTED markers](docs/assets/screenshots/review-queue.png) -Prerequisites: Docker with Compose v2, git, a browser, and an available loopback port 8080. The first image build requires network access for dependencies; the running demo has no remote git or model dependency. +## 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. + +## Quickstart + +Requires Docker with Compose v2 and git. The demo runs offline with a seeded sample repo, no model provider and no git credentials. ```sh git clone https://github.com/DrDroidLab/hindsight.git @@ -22,75 +50,64 @@ docker compose -f compose.yaml -f compose.demo.yaml up --build -d docker compose exec hindsight hindsight admin bootstrap ``` -Open **http://localhost:8080/setup**. Paste the single-use enrollment token from your terminal, choose your real human name/email and team, and save the personal key shown once in a password manager. Sign in with that key. Never put a key in a URL, shell history, or project config. +Open , 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`. -The demo initializes a local bare remote at `/data/demo-remote.git` from `examples/sample-knowledge/`. It contains seven fictional shared-scope documents: payments-api, a CrashLoopBackOff runbook, an approved clue, an unreviewed clue, a skill, a resolved incident, and a successful illustrative outcome. No production connection exists. Re-running does not overwrite an existing remote. - -1. Select **Verify a stale mount before restarting** in Proposed. -2. Inspect the explicitly redacted evidence, edit the learned fact, and save. -3. Approve it. This creates a new trust commit, not a runbook edit. -4. On the approved clue, choose **Promote to runbook**, select CrashLoopBackOff, enter a new stable step ID, preview the actual diff, verify it, then commit the separate promotion. -5. Check Git sync status. Local committed changes remain usable during an upstream outage. - -The happy path is a roughly two-minute review once prerequisites and the image are ready, not a promise about downloads, machine provisioning, agent/model response time, or automatic hook delivery. See [the reproducible demo and screenshot recipe](docs/demo.md). - -## Connect one agent - -Install the Python 3.12+ client in an isolated environment (git must also be installed), then use its interactive key prompt: +### Connect your agent ```sh -python3.12 -m venv .venv -. .venv/bin/activate +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 --dry-run -hindsight install claude --server http://localhost:8080 -hindsight install claude --check +hindsight install claude --server http://localhost:8080 # or cursor, codex, gemini ``` -Restart/trust the client as prompted, then ask: **“Recall what we know about payments-api CrashLoopBackOff after credential rotation. Distinguish approved knowledge from unreviewed clues.”** Replace `claude` with `cursor`, `codex`, or `gemini`. Installers preserve unrelated settings and use the distinct `hindsight-sre` MCP alias. Lifecycle capture depends on client version, hook trust, transcript access, and hook time budgets; see [agent capabilities and verification limits](docs/agents.md). Explicit capture always has a CLI fallback: +Restart 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](https://drdroidlab.github.io/hindsight/getting-started/). -```sh -hindsight capture --scope shared --summary 'A fictional mount lagged after simulated credential rotation.' -hindsight recall 'CrashLoopBackOff' --scope shared -hindsight review --status proposed -``` +## Features -Do not put sensitive production content in command arguments. Prefer the capture stdin form for operational content; review it locally first. See `hindsight capture --help`. +| | | +| --- | --- | +| **Typed SRE knowledge** | Services, runbooks with stable step IDs, clues, skills, incidents and outcomes, cross-linked by service and alert ([content model](https://drdroidlab.github.io/hindsight/content-model/)) | +| **Seven MCP tools** | `recall`, `get_runbook`, `list_skills`, `load_skill`, `propose_clue`, `report_outcome`, `whoami` over Streamable HTTP or stdio ([API](https://drdroidlab.github.io/hindsight/api/)) | +| **Review queue** | Approve, reject, edit and promote to runbook, with revision conflict detection; or review as git pull requests with `REVIEW_MODE=git` | +| **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 | -## Deploy with your knowledge remote +## What Hindsight is not -```sh -cp .env.example .env -# Set GIT_REMOTE to a dedicated sanitized repository. Configure git credentials privately. -docker compose up --build -d -docker compose exec hindsight hindsight admin bootstrap -``` +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](https://drdroidlab.github.io/hindsight/comparison/). + +> This MIT-licensed project is published as **`hindsight-sre`** and is unrelated to the Vectorize project also named Hindsight. -`GIT_REMOTE` is the only required normal-mode knowledge setting. Public clone access does **not** grant push permission. The default port is loopback-only; use an operator-managed HTTPS proxy before remote access and set exact `ALLOWED_HOSTS`/`ALLOWED_ORIGINS` and `PUBLIC_ORIGIN=https://your-host`. Run one application worker and one writer per data volume. Knowledge team scopes are application isolation, not git-history encryption. +## Security -Read [operations, backup, offline sync, and conflict recovery](docs/operations.md) and [the security model](docs/security.md) before deployment. Do not expose the demo as a public unauthenticated service. `/health` reports process availability and `/ready` reports initialized repository/index readiness; offline git outages do not inherently invalidate a usable clone. +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](https://drdroidlab.github.io/hindsight/security/) and [operations guide](https://drdroidlab.github.io/hindsight/operations/), and report vulnerabilities privately as described in [SECURITY.md](SECURITY.md). -## Interfaces and limits +## Project status -- HTTP review API and same-origin bundled TypeScript UI; cookie login plus CSRF for browser writes. -- Official Python MCP SDK: authenticated Streamable HTTP at `/mcp`; local stdio and a credential-reading stdio-to-HTTP proxy. -- MCP tools: `recall`, `get_runbook`, `list_skills`, `load_skill`, `propose_clue`, `report_outcome`, `whoami`. -- Incident lifecycle and explicit runbook outcome reporting, not Slack/PagerDuty ingestion, ticket synchronization, or guessed fix success. -- SQLite FTS5 is rebuildable; private auth is not. Optional bounded in-process semantic scoring is not a separate vector database. -- New steps can be promoted to an existing runbook. The API also supports creating a runbook; the queue currently selects an existing target. Arbitrary runbook editing is not a general-purpose CMS feature. -- Offline agent contract tests are not certification of proprietary client UIs. Live clients and provider credentials are opt-in and unverified unless a documented matrix run says otherwise. +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](https://drdroidlab.github.io/hindsight/agents/), and the [verification record](https://drdroidlab.github.io/hindsight/verification/) lists exactly what has and has not been checked. -## Develop and verify +## Development ```sh pip install -e '.[dev]' -npm ci --prefix web -npm run build --prefix web -npm test --prefix web -pytest -ruff check src tests scripts -mypy src/hindsight +npm ci --prefix web && npm run build --prefix web +pytest && npm test --prefix web +ruff check src tests scripts && mypy src/hindsight ``` -Frontend builds into `src/hindsight/static/`; production needs no Node server or external assets. Do not run multiple writers on one data directory. See [CONTRIBUTING.md](CONTRIBUTING.md), [CLUE.md](CLUE.md), [content schemas](docs/content-model.md), and [API reference](docs/api.md). CI builds the image and runs the offline demo smoke in addition to Python and frontend checks. Test results, not this README, are the authority for a particular revision. +To work on the documentation site: + +```sh +pip install -e '.[docs]' +mkdocs serve +``` + +See [CONTRIBUTING.md](CONTRIBUTING.md). Good first contributions: a capture hook for another agent, or a new redaction rule. + +## License + +[MIT](LICENSE) diff --git a/docs/agents.md b/docs/agents.md index ff765f7..189088a 100644 --- a/docs/agents.md +++ b/docs/agents.md @@ -1,3 +1,9 @@ +--- +seo_title: "Connect Claude Code, Cursor, Codex and Gemini CLI to Hindsight over MCP" +description: >- + Install Hindsight's MCP server, retrieval skill and capture hooks into Claude Code, Cursor, Codex and Gemini CLI, with per-client hook support and limits. +--- + # Agent integrations and capability truthfulness Hindsight supplies memory to an existing agent. It never replaces that agent's runtime or assumes its authority. Installers use the noncolliding **hindsight-sre** MCP name, private user-level credentials, owned configuration entries, collision refusal, dry-run/check/uninstall, and isolated backups. Do not use project-tracked secrets or paste keys into shell commands. diff --git a/docs/api.md b/docs/api.md index fefa97e..4f4aebd 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1,3 +1,8 @@ +--- +description: >- + Reference for Hindsight's HTTP review API and its seven MCP tools: recall, get_runbook, list_skills, load_skill, propose_clue, report_outcome and whoami. +--- + # HTTP and MCP reference All API responses are same-origin JSON. Private endpoints require a Bearer key or the HttpOnly browser session. Cookie-authenticated mutations additionally require `X-CSRF-Token`; exchange keys through `POST /api/session`, not a URL. Do not enable wildcard CORS. Errors expose sanitized `{detail: string}` and appropriate 400/401/403/404/409/413 status (503 may indicate an unavailable dependency). Inaccessible IDs use not-found behavior. diff --git a/docs/assets/architecture.svg b/docs/assets/architecture.svg new file mode 100644 index 0000000..a956132 --- /dev/null +++ b/docs/assets/architecture.svg @@ -0,0 +1,62 @@ + + Hindsight architecture + Engineers' coding agents call the Hindsight server over MCP to recall knowledge and use hooks to propose clues. The server redacts, indexes in SQLite FTS5 and commits to any git remote. Reviewers approve clues in the review queue. + + + + + + + + Engineers' laptops + any MCP client + + Claude Code + Cursor + Codex + Gemini CLI + + + + + Hindsight server + one Docker image + + + MCP endpoint + Streamable HTTP + stdio · per-user keys + + Redact → extract + nothing raw is stored + + Search index + SQLite FTS5, rebuilt from git + + + + + Any git remote + GitHub · GitLab · Gitea · bare + Markdown is the source of truth + + + + Review queue UI + approve · reject · promote to runbook + + + + + + + + + + recall, load_skill + propose_clue + report_outcome + commit on write + push on a timer + reviewers + + diff --git a/docs/assets/extra.css b/docs/assets/extra.css new file mode 100644 index 0000000..b9ed65f --- /dev/null +++ b/docs/assets/extra.css @@ -0,0 +1,28 @@ +:root { + --md-primary-fg-color: #245cc2; + --md-primary-fg-color--light: #4a7bd6; + --md-primary-fg-color--dark: #1b4796; + --md-accent-fg-color: #1b4796; +} +[data-md-color-scheme="slate"] { + --md-primary-fg-color: #2c5fb8; + --md-accent-fg-color: #8fb3ff; + --md-typeset-a-color: #8fb3ff; +} + +/* Landing page */ +.hs-hero { text-align: center; margin: 1.5rem auto 2rem; max-width: 46rem; } +.hs-hero h1 { font-size: 2.4rem; font-weight: 750; line-height: 1.15; margin-bottom: 0.8rem; color: var(--md-typeset-color); } +.hs-hero .hs-lede { font-size: 1.05rem; color: var(--md-default-fg-color--light); margin-bottom: 1.4rem; } +.hs-hero .md-button { margin: 0.25rem; } +.hs-shot { border: 1px solid var(--md-default-fg-color--lightest); border-radius: 10px; box-shadow: 0 12px 40px rgba(20, 40, 80, 0.14); display: block; margin: 0 auto; } +.hs-caption { text-align: center; font-size: 0.75rem; color: var(--md-default-fg-color--light); margin-top: 0.6rem; } +.hs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0; } +.hs-card { border: 1px solid var(--md-default-fg-color--lightest); border-radius: 8px; padding: 0.9rem 1rem; } +.hs-card h3 { margin: 0 0 0.4rem; font-size: 0.95rem; } +.hs-card p { margin: 0; font-size: 0.8rem; color: var(--md-default-fg-color--light); } +.hs-diagram { width: 100%; height: auto; display: block; margin: 1rem auto; } +[data-md-color-scheme="slate"] .hs-diagram { filter: invert(0.9) hue-rotate(180deg); } +@media screen and (max-width: 44.9375em) { + .hs-hero h1 { font-size: 1.8rem; } +} diff --git a/docs/assets/favicon.svg b/docs/assets/favicon.svg new file mode 100644 index 0000000..2a305a1 --- /dev/null +++ b/docs/assets/favicon.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/logo.svg b/docs/assets/logo.svg new file mode 100644 index 0000000..2a305a1 --- /dev/null +++ b/docs/assets/logo.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/og-image.png b/docs/assets/og-image.png new file mode 100644 index 0000000..fbba58d Binary files /dev/null and b/docs/assets/og-image.png differ diff --git a/docs/assets/screenshots/review-queue-mobile.png b/docs/assets/screenshots/review-queue-mobile.png new file mode 100644 index 0000000..7b14979 Binary files /dev/null and b/docs/assets/screenshots/review-queue-mobile.png differ diff --git a/docs/assets/screenshots/review-queue.png b/docs/assets/screenshots/review-queue.png new file mode 100644 index 0000000..6930138 Binary files /dev/null and b/docs/assets/screenshots/review-queue.png differ diff --git a/docs/assets/screenshots/runbook-promotion.png b/docs/assets/screenshots/runbook-promotion.png new file mode 100644 index 0000000..4b488f6 Binary files /dev/null and b/docs/assets/screenshots/runbook-promotion.png differ diff --git a/docs/clue-spec.md b/docs/clue-spec.md new file mode 100644 index 0000000..92c3d44 --- /dev/null +++ b/docs/clue-spec.md @@ -0,0 +1,11 @@ +--- +seo_title: "CLUE.md: an open format for reviewed incident learnings - Hindsight" +title: CLUE.md specification +description: >- + The CLUE.md format: a redacted, reviewable operational fact with provenance + and trust state, stored as Markdown with YAML frontmatter. Any tool can emit + clues in this format. +--- + + +--8<-- "CLUE.md" diff --git a/docs/comparison.md b/docs/comparison.md new file mode 100644 index 0000000..206aac9 --- /dev/null +++ b/docs/comparison.md @@ -0,0 +1,31 @@ +--- +seo_title: "Hindsight vs OpenSRE, Krimto and other agent memory tools" +description: >- + How Hindsight compares with OpenSRE, Krimto, Glen, Bhived and Vectorize + Hindsight: an SRE-typed, git-backed memory with a review gate, rather than + an AI SRE agent or a general-purpose memory store. +--- + +# How Hindsight compares + +Hindsight is the memory an engineer's existing agent pulls from, not the agent itself. Projects called OpenSRE *are* the agent. General team-memory tools store notes; Hindsight stores runbooks, services and incident learnings, and knows what an alert is. + +> If you want an agent that gets paged, use OpenSRE. If you want your existing Claude Code or Cursor sessions to share what the team knows, use Hindsight. They are complementary: an OpenSRE agent could be a client of a Hindsight server. + +| Project | What it is | Where it overlaps | Where Hindsight differs | +| --- | --- | --- | --- | +| [OpenSRE (Tracer Cloud)](https://github.com/Tracer-Cloud/opensre) | Apache-2.0 framework for building AI SRE agents that investigate incidents on your infrastructure | Redacts sensitive data in LLM calls; can monitor local Claude Code, Cursor and Codex sessions | Not an agent and has no runtime or telemetry; SRE-typed memory with a review gate instead of an investigation loop | +| [OpenSRE (opensre.in)](https://github.com/swapnildahiphale/OpenSRE) | Apache-2.0 self-hosted AI SRE agent with episodic memory, a Neo4j knowledge graph and chat bots | "Learns from every investigation" is the same instinct as clues | Memory lives in git as reviewable Markdown, not in a graph database owned by one agent; works with any coding agent | +| [Krimto](https://glama.ai/mcp/servers/rrnd4nuegn) | Apache-2.0 team memory for coding agents: Markdown in git, scoped, cross-vendor MCP | Closest architecture: git-backed, MCP, cross-vendor | Typed services, runbooks and clues instead of generic notes, plus redaction and an SRE-shaped review queue | +| [Glen](https://composio.dev/toolkits/glen_mcp/framework/atomic-agent.md), [Bhived](https://github.com/artkeyai/bhived-mcp) | Hosted organisation memory and skills over MCP | Shared memory, skills, session import | Self-hosted only; knows what an alert, a runbook and a service are | +| [Hindsight (Vectorize)](https://github.com/vectorize-io/hindsight) | MIT agent memory server with retain, recall and reflect, and installers for many agent harnesses | Same name; similar hook, MCP and skill install pattern | General-purpose memory for any agent; no SRE object model, review gate or git-as-store | + +## About the name + +This project's package is **`hindsight-sre`** and its MCP server is registered as **`hindsight-sre`** so it does not collide with the Vectorize Hindsight project in agent configs. The two projects are unrelated. + +## When Hindsight is the wrong tool + +- You want an autonomous agent that responds to pages. Use an AI SRE agent; Hindsight can sit underneath it. +- You need a hosted service. Hindsight is self-hosted only. +- You need per-document RBAC or encryption between teams. Team scopes are application-level filtering; anyone with access to the git remote can read every scope. diff --git a/docs/content-model.md b/docs/content-model.md index 1cfb075..91fdee5 100644 --- a/docs/content-model.md +++ b/docs/content-model.md @@ -1,3 +1,8 @@ +--- +description: >- + Schemas for Hindsight's git-stored knowledge: services, runbooks with stable steps, clues, skills, incidents and outcomes, plus team scopes and trust states. +--- + # Content model v1 Git Markdown is canonical. A validated regular UTF-8 file has bounded safe YAML frontmatter and a human-editable Markdown body. No YAML aliases/custom tags, duplicate IDs, symlinks, submodules, arbitrary binary attachments, traversal paths, or hidden control paths. Body HTML is untrusted and is not executed by the UI. Skills are loaded as text, never executed. @@ -39,4 +44,4 @@ A success linked explicitly to a matching clue fact version may renew confirmati Default staleness is 90 days from matching successful confirmation or approval if never confirmed. Daily marking persists a trust-state transition in git. Incident links are references only: Hindsight does not ingest Slack or ticket timelines. The sample's success is clearly fictional, not live evidence. -See [CLUE.md](../CLUE.md) for an annotated clue and `examples/sample-knowledge/` for deterministic UUID examples of all six kinds. +See the [CLUE.md spec](clue-spec.md) for an annotated clue and [`examples/sample-knowledge/`](https://github.com/DrDroidLab/hindsight/tree/main/examples/sample-knowledge) for deterministic UUID examples of all six kinds. diff --git a/docs/demo.md b/docs/demo.md index 6ab7635..9c32529 100644 --- a/docs/demo.md +++ b/docs/demo.md @@ -1,3 +1,8 @@ +--- +description: >- + Run Hindsight's offline Docker demo with a seeded sample repo, walk through review, approval and runbook promotion, and capture reproducible screenshots. +--- + # Reproducible offline demo and screenshot recipe ## Prerequisites and safety diff --git a/docs/faq.md b/docs/faq.md new file mode 100644 index 0000000..30b6bd3 --- /dev/null +++ b/docs/faq.md @@ -0,0 +1,65 @@ +--- +seo_title: "Hindsight FAQ: self-hosted operational memory for coding agents" +description: >- + Frequently asked questions about Hindsight: supported coding agents, LLM + requirements, redaction, git hosting, telemetry, licensing and how it + differs from AI SRE agents. +faq: + - q: What is Hindsight? + a: >- + Hindsight is an open-source, self-hosted operational memory for coding + agents. It stores services, runbooks and reviewed incident learnings + (clues) as Markdown in git, and serves them to Claude Code, Cursor, + Codex, Gemini CLI or any MCP client. + - q: Is Hindsight an AI SRE agent? + a: >- + No. Hindsight never gets paged, runs commands or investigates incidents + on its own. It is the knowledge layer underneath the agent each engineer + already uses, and an AI SRE agent could be one of its clients. + - q: Which coding agents does Hindsight support? + a: >- + The installer configures Claude Code, Cursor, Codex and Gemini CLI, and + any other MCP client can connect over Streamable HTTP or through the + stdio proxy. Automatic capture through lifecycle hooks depends on each + client's version and hook support; explicit capture through the CLI or + the propose_clue MCP tool always works. + - q: Do I need an LLM API key? + a: >- + No. Capture, review and full-text recall all work without a model. If + you configure your own LLM endpoint or a local model, Hindsight uses it + to extract candidate clues from session summaries. There is no hosted + fallback. + - q: How does Hindsight keep secrets out of the knowledge base? + a: >- + Captured text is redacted in the agent hook and again on the server + before it is written to git, indexed or sent to a model. Tokens, keys, + IP addresses, emails and customer IDs become REDACTED markers, and no + raw transcript is stored. Redaction is best effort, so reviewers should + read the evidence before approving. + - q: Where is the data stored? + a: >- + In a git repository you control: GitHub, GitLab, Gitea or a bare repo. + The server keeps a local clone, commits on each write with the real + engineer as author, and pushes on a timer. The search index is SQLite + and can be rebuilt from git at any time. + - q: Does Hindsight collect telemetry? + a: >- + No. Hindsight sends no usage data anywhere, and the web UI loads no + external fonts, scripts or analytics. + - q: Can we review clues as pull requests instead of in the UI? + a: >- + Yes. With REVIEW_MODE=git, captured clues are committed to a proposal + branch and you review and merge them with your normal git workflow and + branch protection. + - q: How is it licensed? + a: Hindsight is MIT licensed. + - q: Is this the same project as Vectorize Hindsight? + a: >- + No. This project is published as hindsight-sre and registers its MCP + server as hindsight-sre to avoid colliding with the unrelated Vectorize + project of the same name. +--- + +# Frequently asked questions + +Short answers to the questions platform and SRE leads ask first. For deeper detail, see [How it works](how-it-works.md) and the [Security model](security.md). diff --git a/docs/getting-started.md b/docs/getting-started.md new file mode 100644 index 0000000..6b30739 --- /dev/null +++ b/docs/getting-started.md @@ -0,0 +1,103 @@ +--- +seo_title: "Quickstart: install Hindsight with Docker and connect your coding agent" +description: >- + Install Hindsight with Docker Compose, run the offline demo, connect Claude + Code, Cursor, Codex or Gemini CLI over MCP, and deploy against your own git + remote. +--- + +# Quickstart + +This page gets you from nothing to an agent recalling reviewed knowledge. The [demo walkthrough](demo.md) covers the review flow in more detail. + +## Prerequisites + +- Docker with Compose v2 +- git +- A browser +- A free loopback port. The default is 8080; set `HINDSIGHT_PORT` to use another. +- Python 3.12+ for the client CLI that connects agents + +The first image build needs network access for dependencies. The running demo needs no remote git, no model provider and no production access. + +## 1. Run the demo server + +```sh +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 bootstrap +``` + +If port 8080 is taken, prefix the `up` command with `HINDSIGHT_PORT=8091` (or any free port) and use that port below. + +The demo creates a local bare git remote at `/data/demo-remote.git` from `examples/sample-knowledge/`. It holds seven fictional documents: the `payments-api` service, a CrashLoopBackOff runbook, an approved clue, an unreviewed clue, a skill, a resolved incident and an outcome. Running it again does not overwrite an existing remote. + +## 2. Enroll and review + +1. Open `http://localhost:8080/setup`. +2. Paste the single-use enrollment token printed by `bootstrap`, then enter your name, email and team. +3. Save the personal API key shown once in a password manager, then sign in with it. +4. Open **Verify a stale mount before restarting** in the Proposed tab, read the redacted evidence and approve it. +5. On the approved clue, choose **Promote to runbook**, preview the diff, and commit it. + +Approval and promotion are two separate git commits, both authored by you. + +!!! warning "Keep keys out of URLs and shell history" + Never put an API key in a URL, a command argument or project config. The CLI prompts for it interactively. + +## 3. Connect an agent + +Install the client CLI in a virtual environment, log in, and install the integration for your agent: + +```sh +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 --dry-run +hindsight install claude --server http://localhost:8080 +hindsight install claude --check +``` + +Replace `claude` with `cursor`, `codex` or `gemini`. The installer adds the `hindsight-sre` MCP server, a retrieval skill and a capture hook, and preserves your other settings. Restart the agent and trust the hook if it asks. + +Then ask your agent: + +> Recall what we know about payments-api CrashLoopBackOff after credential rotation. Distinguish approved knowledge from unreviewed clues. + +Hook support differs by client and version; see [Connect your agent](agents.md). You can always capture and recall from the CLI: + +```sh +printf '%s' 'A fictional mount lagged after simulated credential rotation.' | hindsight capture --scope shared +hindsight recall 'CrashLoopBackOff' --scope shared +hindsight review --status proposed +``` + +## 4. Deploy with your own knowledge remote + +```sh +cp .env.example .env +# Set GIT_REMOTE to a dedicated, sanitized repository and configure git credentials privately. +docker compose up --build -d +docker compose exec hindsight hindsight admin bootstrap +``` + +`GIT_REMOTE` is the only required setting. Everything else is optional and unlocks one feature each: + +| Setting | Unlocks | Without it | +| --- | --- | --- | +| `GIT_REMOTE` | Storage and versioning | The server will not start | +| Git credentials (SSH key or credential helper) | Push to private remotes | Read-only against a public remote | +| `LLM_ENDPOINT`, `LLM_MODEL`, `LLM_KEY` | Automatic clue extraction with your own key or a local model | Captures arrive as redacted drafts and the reviewer writes the fact | +| `EMBEDDINGS_ENDPOINT`, `EMBEDDINGS_MODEL`, `EMBEDDINGS_KEY` | Semantic ranking on top of full-text search | Plain SQLite FTS5 search | +| `REDACTION_RULES` | Extra patterns, hostname allow-list | Built-in rules for tokens, keys, IPs, emails and customer IDs | +| `REVIEW_MODE=git` | Review captures as git branches with your normal code review | Review in the Hindsight queue | + +The server binds to loopback by default. Before exposing it, put it behind an HTTPS proxy and set `PUBLIC_ORIGIN`, `ALLOWED_HOSTS` and `ALLOWED_ORIGINS`. Read [Operations](operations.md) and the [Security model](security.md) first. + +## Next steps + +- [How it works](how-it-works.md): capture, redaction, review and recall in detail +- [Content model](content-model.md): the Markdown schemas for services, runbooks and clues +- [HTTP and MCP API](api.md): the seven MCP tools and the review API diff --git a/docs/how-it-works.md b/docs/how-it-works.md new file mode 100644 index 0000000..302ef41 --- /dev/null +++ b/docs/how-it-works.md @@ -0,0 +1,83 @@ +--- +seo_title: "How Hindsight works: capture, redaction, review and MCP recall" +description: >- + How Hindsight captures incident learnings from coding agent sessions, + redacts them, routes them through a human review queue, stores them in git + and serves them back over MCP. +--- + +# How it works + +Hindsight owns three things: the team's SRE knowledge, the pipeline that captures that knowledge from agent sessions, and the review gate that turns a messy clue into a trusted fact. It deliberately owns nothing else. There is no agent runtime, no production access and no hosted service. + +![Architecture: coding agents call the Hindsight MCP endpoint to recall knowledge and propose clues; the server redacts, indexes in SQLite FTS5 and commits to a git remote; reviewers use the review queue UI](assets/architecture.svg){ .hs-diagram width="960" height="470" } + +## The knowledge model + +Knowledge is typed SRE objects, not free-form notes. Each object is a Markdown file with YAML frontmatter in a git repository, and everything cross-links by service and alert name. + +| Object | Path | Holds | +| --- | --- | --- | +| Service | `services/.md` | Owner, repository, dashboards, alert names, runbook links, dependencies, known quirks. The spine everything else hangs off. | +| Runbook | `runbooks/.md` | Steps with stable IDs, written for an agent to execute and report on step by step. | +| Clue | `clues/-.md` | One learned fact: what fired, what it was, what fixed it, with source, author, confidence and status. A postmortem in miniature. | +| Skill | `skills//SKILL.md` | Standard skill folders; existing ecosystem skills drop in unchanged. | +| Incident | `incidents/.md` | Groups clues and links to the Slack thread or ticket. | +| Outcome | `outcomes/.md` | An explicit report that a runbook step succeeded, failed or partly worked. | + +This is what lets a single `recall` for `payments-api` + `CrashLoopBackOff` return the runbook, the approved clues from last quarter and the owner. Prefix any path with `teams//` to scope it to a team. See the [content model](content-model.md) for full schemas and the [CLUE.md spec](clue-spec.md) for the clue format. + +## Capture: hooks, not hope + +The retrieval skill installed into each agent only says "before investigating, call `recall`". Capture runs through agent lifecycle hooks, so a clue can be written even when the model forgets. + +1. On session end, or on a `/clue` command where the client supports one, the hook reads a bounded transcript, drops tool payloads and environment dumps, redacts locally, and sends a summary to `propose_clue`. +2. The server redacts again. If you configured an LLM endpoint, it extracts candidate clues tagged with service and alert using your own key or local model, never a hosted fallback. +3. Candidates are committed to git as `proposed` and appear in the review queue. + +Without a model, the redacted summary becomes a draft clue and the reviewer writes the fact by hand. Capture is idempotent per `capture_id`, so a retried hook does not create duplicates. + +## Redaction before write + +Every inbound clue passes a redaction stage before it touches git, the index or a model provider. There is no raw store. + +- Built-in rules cover tokens and API keys, private keys, URL credentials, password assignments, IP addresses, emails and customer IDs. +- Operators can add their own patterns and a hostname allow-list through `REDACTION_RULES`. +- Redacted spans show as `[REDACTED:token]`, `[REDACTED:ip]` and so on, so a reviewer can see that something was stripped. + +Redaction is best effort. No detector finds every secret, so reviewers should read the evidence before approving. See the [security model](security.md). + +## Review: the product + +Standardisation comes from the review step, not from storage. A proposed clue shows the extracted fact, the redacted session excerpt, the service and alert it is tagged to, and the incident it belongs to. + +- **Approve** records human trust in the fact as a git commit. It never edits a runbook. +- **Reject** is recorded with a reason, and the clue's fingerprint stops the identical fact being proposed again. +- **Edit** lets a reviewer rewrite the fact without any model. +- **Promote to runbook** turns an approved clue into a new runbook step, after previewing the exact diff. It is a separate commit linked to the clue. + +![Promoting an approved clue to a runbook step: the form shows the target runbook, a stable step ID, heading and content, followed by the exact unified diff that will be committed](assets/screenshots/runbook-promotion.png){ .hs-shot width="1440" height="900" } + +Teams that want full ceremony can set `REVIEW_MODE=git`: captures land on a proposal branch and are reviewed as normal pull requests with branch protection. + +## Trust states in recall + +| Status | Meaning | In `recall` | +| --- | --- | --- | +| `proposed` | Captured, not yet reviewed | Returned with an *unreviewed* flag; agents may use it but must say so | +| `approved` | A human reviewed the evidence | Ranked highest | +| `stale` | Approved, but no confirming outcome for N days (default 90) | Returned with a warning to re-check | +| `rejected` | Reviewed and declined | Excluded, kept for audit and duplicate suppression | + +`report_outcome` lets an agent record "ran runbook X, step `check-mounted-version` fixed it". A reported success can renew a clue's confirmation, but it never approves a proposed clue on its own. + +## Storage, search and auth + +- **Git is the only store.** The server keeps a local clone, commits on every write and pushes on a timer. There is no GitHub API dependency, and local commits stay usable during an upstream outage. +- **Search** is SQLite FTS5, rebuilt from the clone on start and after each pull. Optional embeddings add semantic ranking. +- **Auth** uses per-user API keys issued by the server, so every commit carries a real author. Keys map to team scopes, and scopes are filtered before results, counts and snippets. +- **MCP** is served over Streamable HTTP at `/mcp`, plus stdio for local use and a stdio-to-HTTP proxy for clients that only speak stdio. + +## What it never does + +Hindsight does not run an agent, execute commands against production, host your data, offer RBAC beyond team scoping, or send telemetry. diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..c9a770b --- /dev/null +++ b/docs/index.md @@ -0,0 +1,91 @@ +--- +title: Operational memory for coding agents +seo_title: Hindsight - Self-hosted operational memory for coding agents (MCP) +description: >- + Hindsight is an open-source, self-hosted operational memory for Claude Code, + Cursor, Codex and Gemini CLI. It turns redacted incident learnings into + reviewed runbooks and clues in git, and serves them to every agent over MCP. +hide: + - navigation + - toc +--- + +
+ +# Your coding agent forgets every incident. Hindsight remembers. + +

A self-hosted, git-backed memory layer for your team's coding agents. Hindsight captures what an agent learned on call, redacts it, puts it through a human review queue, and serves the approved runbooks and clues back to Claude Code, Cursor, Codex and Gemini CLI over MCP.

+ +[Run the demo in 2 minutes](getting-started.md){ .md-button .md-button--primary } +[View on GitHub](https://github.com/DrDroidLab/hindsight){ .md-button } + +
+ +
+![Hindsight review queue: a proposed clue about payments-api latency, with the session excerpt showing a token and an IP address replaced by REDACTED markers, and Reject, Edit and Approve actions](assets/screenshots/review-queue.png){ .hs-shot width="1440" height="900" } +
The review queue: three clues proposed from last night's on-call. Secrets in the evidence were redacted before anything touched git.
+
+ +## Give your coding agent the on-call experience your team already paid for + +Every incident teaches someone something: which dashboard lies, which alert means the credential mount is stale, which step in the runbook actually fixed it. Today that knowledge dies in a chat transcript. Hindsight keeps it, without turning into another agent you have to run. + +
+ +
+### Typed SRE knowledge, not notes +Services, runbooks, clues, skills, incidents and outcomes. Each is a Markdown file with frontmatter, cross-linked by service and alert name. +
+ +
+### Review is the product +Proposed clues stay labelled *unreviewed* until a human approves them. Approving a clue never edits a runbook; promotion is a separate, diffed commit. +
+ +
+### Redaction before write +Tokens, keys, IPs, emails and customer IDs become `[REDACTED:type]` before anything is committed or indexed. There is no raw transcript store. +
+ +
+### Works with the agent you already use +One MCP server for Claude Code, Cursor, Codex, Gemini CLI or any MCP client. Lifecycle hooks capture learnings without relying on the model to remember; [support varies by client](agents.md). +
+ +
+### Git is the only store +Any git remote: GitHub, GitLab, Gitea or a bare repo. Every write is a commit with the real engineer as author. Works offline. +
+ +
+### No model required, no telemetry +Capture, review and full-text recall work with no LLM key. Optional extraction and embeddings use your own endpoint. MIT licensed. +
+ +
+ +## How it works + +![Architecture: coding agents call the Hindsight MCP endpoint to recall knowledge and propose clues; the server redacts, indexes in SQLite FTS5 and commits to a git remote; reviewers use the review queue UI](assets/architecture.svg){ .hs-diagram width="960" height="470" } + +1. **Recall.** Before investigating, the agent calls `recall` with a service, an alert or free text. One call returns the runbook, approved clues, open incidents and the owner, with unreviewed and stale results clearly labelled. +2. **Capture.** At session end, or on `/clue`, a hook sends a summarised, locally redacted transcript to `propose_clue`. The server redacts again and commits it as a *proposed* clue. +3. **Review.** A teammate inspects the evidence, edits the fact, then approves or rejects it. Repeated clues can be promoted into a runbook step after previewing the exact diff. +4. **Reuse.** The next engineer's agent, whichever one they use, gets the approved knowledge on its first `recall`. + +[Read the full architecture](how-it-works.md){ .md-button } + +## Try it locally + +```sh +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 bootstrap +``` + +Open `http://localhost:8080/setup`, paste the enrollment token, and review the seeded sample clue. The demo needs no git credentials, no model provider and no network once the image is built. See the [quickstart](getting-started.md) for connecting your agent. + +## What Hindsight is not + +Hindsight is not an AI SRE agent. It does not get paged, run commands against production, or host your data. It is the knowledge layer underneath the agent each engineer already uses. If you want an agent that investigates incidents for you, look at projects like OpenSRE; Hindsight is complementary, and such an agent could be a client of it. [See how it compares](comparison.md). diff --git a/docs/operations.md b/docs/operations.md index 89a9445..6ff4e74 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -1,3 +1,8 @@ +--- +description: >- + Run Hindsight in production: storage layout, configuration, health checks, users and API keys, git sync and conflicts, backup, restore and upgrades. +--- + # Operations ## Storage and process model diff --git a/docs/security.md b/docs/security.md index f083ae2..7344447 100644 --- a/docs/security.md +++ b/docs/security.md @@ -1,3 +1,8 @@ +--- +description: >- + Hindsight's security model: trust boundaries, private auth state, browser and network hardening, redaction before write, git and team isolation, and incident response. +--- + # Security model and deployment ## Trust boundaries @@ -50,4 +55,4 @@ API scopes filter before results, counts, snippets, ranking, references, and dif 4. Sanitize/rewrite affected remote history through your normal reviewed git incident procedure, including clones, derived index, provider caches, spools, proxies, and backups. Hindsight does not automatically rewrite history. 5. Restore validated knowledge and private auth from a consistent encrypted backup, rebuild the disposable index, and verify read/write scopes and audit attribution. -See [SECURITY.md](../SECURITY.md) for private reporting and [operations](operations.md) for backup/recovery. +See [SECURITY.md](https://github.com/DrDroidLab/hindsight/blob/main/SECURITY.md) for private reporting and [operations](operations.md) for backup/recovery. diff --git a/docs/verification.md b/docs/verification.md index 100cfda..ebb3d30 100644 --- a/docs/verification.md +++ b/docs/verification.md @@ -1,3 +1,8 @@ +--- +description: >- + What has and has not been verified in Hindsight: automated test results, Docker smoke tests, and the live agent and provider checks still outstanding. +--- + # Verification record Date: 2 November 2026, IST (UTC+05:30). diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..cdfb435 --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,98 @@ +site_name: Hindsight +site_url: https://drdroidlab.github.io/hindsight/ +site_description: >- + Hindsight is a self-hosted, git-backed operational memory for coding agents. + It captures redacted incident learnings from Claude Code, Cursor, Codex and + Gemini CLI sessions, puts them through a human review queue, and serves + runbooks, services and approved clues back to every agent over MCP. +site_author: DrDroid +repo_url: https://github.com/DrDroidLab/hindsight +repo_name: DrDroidLab/hindsight +edit_uri: edit/main/docs/ +copyright: MIT licensed · No telemetry · Not affiliated with the Vectorize project of the same name + +theme: + name: material + custom_dir: overrides + language: en + # System fonts: no Google Fonts request, faster first paint. + font: false + logo: assets/logo.svg + favicon: assets/favicon.svg + palette: + - media: "(prefers-color-scheme: light)" + scheme: default + primary: custom + accent: custom + toggle: + icon: material/weather-night + name: Switch to dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + primary: custom + accent: custom + toggle: + icon: material/weather-sunny + name: Switch to light mode + features: + - navigation.tabs + - navigation.sections + - navigation.top + - navigation.footer + - navigation.instant + - navigation.tracking + - content.code.copy + - content.action.edit + - search.suggest + - search.highlight + - toc.follow + +extra_css: + - assets/extra.css + +markdown_extensions: + - admonition + - attr_list + - md_in_html + - tables + - toc: + permalink: true + - pymdownx.details + - pymdownx.highlight: + anchor_linenums: true + - pymdownx.inlinehilite + - pymdownx.superfences + - pymdownx.tabbed: + alternate_style: true + - pymdownx.snippets: + check_paths: true + +plugins: + - search + +extra: + generator: false + social: + - icon: fontawesome/brands/github + link: https://github.com/DrDroidLab/hindsight + name: Hindsight on GitHub + og_image: assets/og-image.png + +nav: + - Home: index.md + - Get started: + - Quickstart: getting-started.md + - Demo walkthrough: demo.md + - Connect your agent: agents.md + - Concepts: + - How it works: how-it-works.md + - Content model: content-model.md + - CLUE.md spec: clue-spec.md + - Operate: + - Operations: operations.md + - Security model: security.md + - HTTP and MCP API: api.md + - Project: + - Comparison: comparison.md + - FAQ: faq.md + - Verification record: verification.md diff --git a/overrides/main.html b/overrides/main.html new file mode 100644 index 0000000..5a4aa3f --- /dev/null +++ b/overrides/main.html @@ -0,0 +1,71 @@ +{% extends "base.html" %} + +{% block htmltitle %} + {% if page.meta and page.meta.seo_title %} + {{ page.meta.seo_title }} + {% else %} + {{ super() }} + {% endif %} +{% endblock %} + +{% block extrahead %} + {% set title = (page.meta.seo_title if page.meta and page.meta.seo_title else (page.title ~ " - " ~ config.site_name)) %} + {% set description = (page.meta.description if page.meta and page.meta.description else config.site_description) %} + {% set image = config.site_url ~ config.extra.og_image %} + + + + + + + + + + + + + + + + {% if page.is_homepage %} + + {% endif %} + {% if page.meta and page.meta.faq %} + {% set entities = [] %} + {% for item in page.meta.faq %} + {% set _ = entities.append({"@type": "Question", "name": item.q, "acceptedAnswer": {"@type": "Answer", "text": item.a}}) %} + {% endfor %} + + {% endif %} +{% endblock %} + +{# FAQ entries live once, in front matter, and render as both page content and FAQPage data. #} +{% block content %} + {{ super() }} + {% if page.meta and page.meta.faq %} + {% for item in page.meta.faq %} +

{{ item.q }}

+

{{ item.a }}

+ {% endfor %} + {% endif %} +{% endblock %} diff --git a/pyproject.toml b/pyproject.toml index f648257..75ea90e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,10 +5,19 @@ build-backend = "hatchling.build" [project] name = "hindsight-sre" version = "0.1.0" -description = "Git-backed operational memory for your team's coding agents" +description = "Self-hosted, git-backed operational memory for coding agents: reviewed runbooks and incident learnings over MCP" readme = "README.md" requires-python = ">=3.12" license = "MIT" +keywords = ["mcp", "sre", "runbooks", "incident-response", "coding-agents", "claude-code", "cursor", "operational-memory", "postmortem"] +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: System Administrators", + "Programming Language :: Python :: 3.12", + "Topic :: System :: Systems Administration", + "Topic :: Software Development :: Libraries :: Application Frameworks", +] dependencies = [ "fastapi>=0.115,<1", "uvicorn>=0.32,<1", "mcp==1.30.0", "PyYAML>=6,<7", "regex>=2024.11", "filelock>=3.16", @@ -16,8 +25,15 @@ dependencies = [ ] [project.optional-dependencies] +docs = ["mkdocs-material>=9.5,<10"] dev = ["pytest>=8,<10", "pytest-asyncio>=0.24,<2", "ruff>=0.9", "mypy>=1.13", "types-PyYAML", "build>=1"] +[project.urls] +Homepage = "https://drdroidlab.github.io/hindsight/" +Documentation = "https://drdroidlab.github.io/hindsight/" +Repository = "https://github.com/DrDroidLab/hindsight" +Issues = "https://github.com/DrDroidLab/hindsight/issues" + [project.scripts] hindsight = "hindsight.cli:main"