feat(integrations): default recallTypes to ['observation'] for openclaw + claude-code#1808
Merged
Merged
Conversation
…aw + claude-code Observations are the consolidated, deduplicated view that Hindsight builds from raw world/experience facts. When the recall default surfaces all three types, the same answer often appears multiple times because many raw memories restate the same belief. Switching the default to 'observation' avoids those duplicates by design while keeping the option to opt back in to raw facts via explicit `recallTypes` config. OpenClaw: - `getPluginConfig` default → ['observation'] - types.ts comment, openclaw.plugin.json schema/uiHints, README config table Claude Code: - `DEFAULTS["recallTypes"]` → ['observation'] - settings.json template, README config table Server-side recall and reflect defaults are intentionally unchanged — this PR scopes the switch to the two integrations that drive the most duplicate-noise complaints.
r266-tech
added a commit
to r266-tech/hindsight
that referenced
this pull request
May 28, 2026
r266-tech
added a commit
to r266-tech/hindsight
that referenced
this pull request
May 28, 2026
nicoloboschi
pushed a commit
that referenced
this pull request
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Switches the default
recallTypesfrom["world", "experience"]to["observation"]in the OpenClaw and Claude Code integrations.Why
Observations are the consolidated, deduplicated view Hindsight builds from raw world/experience facts. With the old default, the same answer often surfaced multiple times because many raw memories restated the same belief (e.g. "User prefers dark mode" appearing across half a dozen sessions). Observations dedupe that by design — each one is a single evidence-grounded belief with a proof count.
Scope
Limited to the two integrations, as discussed:
getPluginConfignormaliser default,PluginConfig.recallTypesJSDoc,openclaw.plugin.jsonschema description + default + uiHints placeholder, README config table.DEFAULTS["recallTypes"]inscripts/lib/config.py,settings.jsontemplate, README config table.Server-side
recallandreflectdefaults are intentionally unchanged.Test plan
npx vitest runinhindsight-integrations/openclaw/— 239/239 passuv run pytest tests/inhindsight-integrations/claude-code/— 180/180 pass./scripts/hooks/lint.sh— green