Hindsight™ is an agent memory system built to create smarter agents that learn over time. Most agent memory systems focus on recalling conversation history. Hindsight is focused on making agents that learn, not just remember.
It eliminates the shortcomings of alternative techniques such as RAG and knowledge graph and delivers state-of-the-art performance on long term memory tasks.
from hindsight_client import Hindsightclient = Hindsight(base_url="http://localhost:8888")# Retain: Store informationclient.retain(bank_id="my-bank", content="Alice works at Google as a software engineer")# Recall: Search memoriesclient.recall(bank_id="my-bank", query="What does Alice do?")# Reflect: Generate disposition-aware responseclient.reflect(bank_id="my-bank", query="Tell me about Alice")
Below is a code snippet demonstrating how to add Hindsight to your existing LLM layer.
// install the hindsight-llmpip install hindsight-litellm
from openai import OpenAIfrom hindsight_litellm import wrap_openai# Wrap your existing LLM client and you're done.# Defaults to Hindsight Cloud; pass hindsight_api_url for a self-hosted server.client = wrap_openai( OpenAI(), bank_id="user-123", hindsight_api_url="http://localhost:8888",)# Hindsight recalls relevant memories before the call# and retains the conversation after it.response = client.chat.completions.create( model="gpt-5-mini", messages=[{"role": "user", "content": "What do you know about me?"}],)
You just have to wrap your LLM client as shown above and then memories are stored, retrived automatically on every call, with no other changes to code.
I spent 3+ years studying OSS codebases and wrote 400+ articles on what makes the production-grade. Now I'm putting that into practice differently - instead of writing every fix myself, I run coding agents that do it.
How it works? Register your machine as a Runtime, point it at your repo. Agents pick up issues. write the fix, open the PR. You just review, they execute.