Store team knowledge, project conventions, and learnings from tasks. Use to remember what works and recall context before new tasks. Connects to Hindsight Cloud. (user)
You have persistent memory via Hindsight Cloud. This memory bank is shared with the team, so knowledge stored here benefits everyone working on this codebase.
Proactively store team knowledge and recall context to provide better assistance.
Before using memory commands, verify the Hindsight CLI is configured:
cat ~/.hindsight/config
If the file doesn't exist or is missing credentials, help the user set it up:
Install the CLI (if hindsight command not found):
curl -fsSL https://hindsight.vectorize.io/get-cli | bash
Create the config file - ask the user for their API Key (get it from https://ui.hindsight.vectorize.io):
mkdir -p ~/.hindsight
cat > ~/.hindsight/config << 'EOF'
api_url = "https://api.hindsight.vectorize.io"
api_key = "<user's API key>"
EOF
chmod 600 ~/.hindsight/config
Get the bank ID - ask the user for their team's bank ID (e.g., team-myproject)
After setup, use the bank ID in all commands below.
Replace <bank-id> with the user's actual bank ID (e.g., team-frontend).
Use memory retain to store what you learn:
hindsight memory retain <bank-id> "Project uses ESLint with Airbnb config and Prettier for formatting"
hindsight memory retain <bank-id> "Running tests requires NODE_ENV=test" --context procedures
hindsight memory retain <bank-id> "Build failed when using Node 18, works with Node 20" --context learnings
hindsight memory retain <bank-id> "Alice prefers verbose commit messages with context" --context preferences
Use memory recall BEFORE starting tasks to get relevant context:
hindsight memory recall <bank-id> "project conventions and coding standards"
hindsight memory recall <bank-id> "Alice preferences for this project"
hindsight memory recall <bank-id> "what issues have we encountered before"
hindsight memory recall <bank-id> "how does the auth module work"
Use memory reflect to synthesize context:
hindsight memory reflect <bank-id> "How should I approach this task based on past experience?"
This is a shared team bank. Store knowledge that benefits the team. For individual preferences, include the person's name.
Always recall before: