Skip to content

Feat/memory adapter#9

Merged
HeinrichvH merged 2 commits intomainfrom
feat/memory-adapter
Apr 24, 2026
Merged

Feat/memory adapter#9
HeinrichvH merged 2 commits intomainfrom
feat/memory-adapter

Conversation

@HeinrichvH
Copy link
Copy Markdown
Owner

No description provided.

Adds a memory subsystem separate from intercept rules. Recall runs on
UserPromptSubmit and injects worker stdout as additionalContext. Store
runs on configured lifecycle events (Stop, PreCompact, SessionEnd, ...)
and pipes the full Claude Code hook payload to the worker on stdin.
Optional adapter stage lets users forward extracted memories to an
external backend without coupling to exactor internals.

Fail-open on every path — memory outage must never block work.

- config: MemoryConfig (recall + store + adapter)
- hooks: user_prompt_submit, _store_event dispatcher, 10KiB context clamp
- router: extract run_worker_with_query for non-rule callers
- cli: kebab→Pascal event dispatch, Claude Code is the source of truth
  for which hook events exist
- recipes/memory: goose-home extractor + store.py reference implementation
@HeinrichvH HeinrichvH merged commit 118e125 into main Apr 24, 2026
4 checks passed
@HeinrichvH HeinrichvH deleted the feat/memory-adapter branch April 24, 2026 11:18
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