# efficientstreet/hindsight architecture

> Architecture diagram of the GitHub repository efficientstreet/hindsight, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/efficientstreet/hindsight
- Repository: https://github.com/efficientstreet/hindsight

## Overview

Hindsight is an on-demand skill for AI coding assistants: a user triggers a review of the session, which filters for durable lessons and saves them as persistent memory, updating memory indexes as needed. If persistent memory is unavailable, it can provide a written report. The README documents these capabilities; no source excerpts were provided to verify implementation details or finer-grained control flow.

Main entry points: [`SKILL.md`](https://github.com/efficientstreet/hindsight/blob/main/SKILL.md) (Hindsight Skill)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_session["Session"]
node_skill["Hindsight Skill<br/>[SKILL.md]"]
node_memory[("Persistent Memory")]
node_indexes[("Memory Indexes")]
node_report["Written Report"]

node_user -->|"triggers review"| node_skill
node_session -->|"provides context"| node_skill
node_skill -->|"saves lessons"| node_memory
node_skill -->|"updates indexes"| node_indexes
node_skill -.->|"writes fallback"| node_report

click node_skill "https://github.com/efficientstreet/hindsight/blob/main/SKILL.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_session,node_report toneIndigo
class node_skill toneTeal
class node_memory,node_indexes toneAmber
```

## Components

### Other components

- **User**
- **Session**
- [Hindsight Skill](https://github.com/efficientstreet/hindsight/blob/main/SKILL.md): `SKILL.md`
- **Persistent Memory**
- **Memory Indexes**
- **Written Report**

## Connections

- User → Hindsight Skill: triggers review (evidence: `README.md`)
- Session → Hindsight Skill: provides context (evidence: `README.md`)
- Hindsight Skill → Persistent Memory: saves lessons (evidence: `README.md`)
- Hindsight Skill → Memory Indexes: updates indexes (evidence: `README.md`)
- Hindsight Skill → Written Report: writes fallback (evidence: `README.md`)
