WeilaiSun/dsh-hindsight-memory ↗★ 1

dsh-hindsight-memory

Semantic long-term memory for DeepSeek Harness: hindsight_retain / hindsight_recall / hindsight_reflect tools over the local Hindsight daemon (PostgreSQL + pgvector + DeepSeek embeddings), with optional per-turn auto-recall injection. 适合需语义记忆与自动召回的进阶用户,需自建 PostgreSQL 与向量环境。

패키지
dsh-hindsight-memory
호환성
미검증
Harness peer 범위
^0.1.0-rc.6
Cordis peer 범위
^4.0.1
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 14.

같은 패키지 이름의 다른 저장소

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

Configuration

KeyDefaultDescription
venvPythonF:\Hermes\HERMES_HOME\hermes-agent\venv\Scripts\python.exePython with hindsight_embed installed
configJsonF:\Hermes\HERMES_HOME\hindsight\config.jsonJSON with llm_api_key / llm_base_url / llm_model (source of the DeepSeek key; never hardcoded)
llmBaseUrl / llmModel / llmProviderDeepSeek defaultsEmbedding endpoint; deepseek/openai_compatible/openrouter map to openai
profiledeepseekHindsight profile name (own daemon port + PG instance + bank)
bank= profileBank id used by retain/recall/reflect
autoRecallfalseInject relevant memories before each agent step
recallTypes["observation","experience","world"]Fact types searched
recallLimit4Max memories per recall
recallMinUserChars20Min user-message length before auto-recall triggers
recallBudgetTokens1200Token budget for auto-recall injection

Usage

The model calls the tools directly. Example retention policy (mirrors a self-evolution protocol):

  • Retain after complex tasks (5+ tool calls), after resolving a pitfall, when the user expresses a durable preference, or after key design decisions.
  • Recall at the start of complex tasks, when the user references past work, or when a situation smells like a repeat.