How kattanandini2007-code/hindsight-coding-assistant works
A Python CLI coding assistant recalls project-specific memories before generating code, then stores the request, response, and feedback. Users can also ask Hindsight to reflect on accumulated memories and summarize conventions. The runtime is concentrated in main.py; the README documents the hosted Hindsight and Groq-backed LLM capabilities, while the source excerpt shows the OpenAI-compatible client calls but not the configured provider endpoint.
Main entry points: main.py CLI loop
Components 9
CLI interaction
- CLI loop
main.py
Project memory
- Memory bank setup
main.py - Memory recall
main.py - Interaction retention
main.py - Convention reflection
main.py
Code generation
- Prompted generation
main.py
Other components
- User
- Hindsight Cloud
- LLM API
Connections 13
- User → CLI loop: enters requests
README.md - CLI loop → Memory bank setup: ensures bank
main.py - CLI loop → Memory recall: requests context
main.py - Memory recall → Hindsight Cloud: recalls memories
main.py - Memory recall → Prompted generation: provides context
main.py - CLI loop → Prompted generation: sends request
main.py - Prompted generation → LLM API: requests completion
main.py - LLM API → Prompted generation: returns code
main.py - Prompted generation → CLI loop: returns code
main.py - CLI loop → Interaction retention: submits feedback
main.py - Interaction retention → Hindsight Cloud: stores exchange
main.py - CLI loop → Convention reflection: dispatches command
main.py - Convention reflection → Hindsight Cloud: summarizes memories
main.py