Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions hindsight-integrations/claude-code/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
- Tags that resolve to an empty namespace content (e.g. `"user:"` when
`HINDSIGHT_USER_ID` is unset) are now dropped from retain requests. Previously
such tags were sent as-is. Tags without `:` are unaffected.
- The bundled `settings.json` no longer ships opinionated `bankMission` /
`retainMission` defaults; both are now empty (matching the internal config
defaults). The plugin only seeds missions you explicitly configure, so a
default install never stamps a generic persona onto a bank. Set these
fields to opt into seeding. See #2492.

## [0.1.0] - 2025-03-23

Expand Down
4 changes: 2 additions & 2 deletions hindsight-integrations/claude-code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ A **bank** is an isolated memory store — like a separate "brain." These settin
| Setting | Env Var | Default | Description |
|---------|---------|---------|-------------|
| `bankId` | `HINDSIGHT_BANK_ID` | `"claude_code"` | The bank ID to use when `dynamicBankId` is `false`. All sessions share this single bank. |
| `bankMission` | `HINDSIGHT_BANK_MISSION` | generic assistant prompt | A short description of the agent's identity and purpose. Sent to Hindsight when creating or updating the bank, and used during recall to contextualize results. |
| `retainMission` | — | extraction prompt | Instructions for the fact extraction LLM — tells it *what* to extract from conversations (e.g. "Extract technical decisions and user preferences"). |
| `bankMission` | `HINDSIGHT_BANK_MISSION` | `""` (unset) | A short description of the agent's identity and purpose (the bank's reflect mission). Empty by default so the plugin does not stamp a generic persona; set it to seed a mission onto the bank. |
| `retainMission` | — | `null` (unset) | Instructions for the fact extraction LLM — tells it *what* to extract from conversations (e.g. "Extract technical decisions and user preferences"). Empty by default; set it to seed a retain mission onto the bank. |
| `dynamicBankId` | `HINDSIGHT_DYNAMIC_BANK_ID` | `false` | When `true`, the plugin derives a unique bank ID from context fields (see `dynamicBankGranularity`), giving each combination its own isolated memory. |
| `dynamicBankGranularity` | — | `["agent", "project"]` | Which context fields to combine when building a dynamic bank ID. Available fields: `agent` (agent name), `project` (working directory), `session` (session ID), `channel` (channel ID), `user` (user ID). |
| `bankIdPrefix` | — | `""` | A string prepended to all bank IDs — both static and dynamic. Useful for namespacing (e.g. `"prod"` or `"staging"`). |
Expand Down
4 changes: 2 additions & 2 deletions hindsight-integrations/claude-code/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"hindsightApiUrl": "",
"bankId": "claude_code",
"bankMission": "You are a Claude Code AI assistant. Focus on technical discussions, decisions, and context relevant to the user's projects.",
"retainMission": "Extract technical decisions, architectural choices, user preferences, project context, and people/tool relationships. Ignore routine greetings and transient operational details.",
"bankMission": "",
"retainMission": null,
"autoRecall": true,
"autoRetain": true,
"retainMode": "full-session",
Expand Down