Skip to content

feat(integrations): default recallTypes to ['observation'] for openclaw + claude-code#1808

Merged
nicoloboschi merged 1 commit into
mainfrom
feat/observation-only-recall-default
May 28, 2026
Merged

feat(integrations): default recallTypes to ['observation'] for openclaw + claude-code#1808
nicoloboschi merged 1 commit into
mainfrom
feat/observation-only-recall-default

Conversation

@nicoloboschi
Copy link
Copy Markdown
Collaborator

Summary

Switches the default recallTypes from ["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:

  • OpenClawgetPluginConfig normaliser default, PluginConfig.recallTypes JSDoc, openclaw.plugin.json schema description + default + uiHints placeholder, README config table.
  • Claude CodeDEFAULTS["recallTypes"] in scripts/lib/config.py, settings.json template, README config table.

Server-side recall and reflect defaults are intentionally unchanged.

Test plan

  • npx vitest run in hindsight-integrations/openclaw/ — 239/239 pass
  • uv run pytest tests/ in hindsight-integrations/claude-code/ — 180/180 pass
  • ./scripts/hooks/lint.sh — green

…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.
@nicoloboschi nicoloboschi merged commit 4b19a0f into main May 28, 2026
57 checks passed
@nicoloboschi nicoloboschi deleted the feat/observation-only-recall-default branch May 28, 2026 10:03
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
…aw + claude-code (#1808) (#1812)

* docs(integrations): default recallTypes to ["observation"] for openclaw (#1808)

* docs(integrations): default recallTypes to ["observation"] for claude-code (#1808)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant