openclaw/src/plugins
Radek Paclt ebfeb7a6bf feat(memory): add lifecycle hooks and vector memory plugin
Add plugin lifecycle hooks infrastructure:
- before_agent_start: inject context before agent loop
- agent_end: analyze conversation after completion
- 13 hook types total (message, tool, session, gateway hooks)

Memory plugin implementation:
- LanceDB vector storage with OpenAI embeddings
- kind: "memory" to integrate with upstream slot system
- Auto-recall: injects <relevant-memories> when context found
- Auto-capture: stores preferences, decisions, entities
- Rule-based capture filtering with 0.95 similarity dedup
- Tools: memory_recall, memory_store, memory_forget
- CLI: clawdbot ltm list|search|stats

Plugin infrastructure:
- api.on() method for hook registration
- Global hook runner singleton for cross-module access
- Priority ordering and error catching

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 06:34:43 +00:00
..
runtime chore(gate): fix lint and formatting 2026-01-18 06:01:25 +00:00
bundled-dir.ts feat: bundle provider auth plugins 2026-01-17 09:38:53 +00:00
cli.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
discovery.test.ts feat: bundle provider auth plugins 2026-01-17 09:38:53 +00:00
discovery.ts feat: bundle provider auth plugins 2026-01-17 09:38:53 +00:00
hook-runner-global.ts feat(memory): add lifecycle hooks and vector memory plugin 2026-01-18 06:34:43 +00:00
hooks.ts feat(memory): add lifecycle hooks and vector memory plugin 2026-01-18 06:34:43 +00:00
install.test.ts feat: unify hooks installs and webhooks 2026-01-17 07:08:04 +00:00
install.ts feat: unify hooks installs and webhooks 2026-01-17 07:08:04 +00:00
installs.ts chore: run format and fix sandbox browser timeouts 2026-01-16 09:18:58 +00:00
loader.test.ts test: cover bundled memory plugin package metadata 2026-01-18 06:30:01 +00:00
loader.ts feat(memory): add lifecycle hooks and vector memory plugin 2026-01-18 06:34:43 +00:00
providers.ts fix: align config types after upstream changes 2026-01-16 01:49:07 +00:00
registry.ts feat(memory): add lifecycle hooks and vector memory plugin 2026-01-18 06:34:43 +00:00
runtime.ts fix: add plugin runtime registry 2026-01-15 02:44:45 +00:00
services.ts feat: add plugin architecture 2026-01-11 12:11:12 +00:00
status.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
tools.optional.test.ts feat: add optional plugin tools 2026-01-18 04:08:00 +00:00
tools.ts fix: resolve plugin tool meta typing 2026-01-18 04:24:16 +00:00
types.ts feat(memory): add lifecycle hooks and vector memory plugin 2026-01-18 06:34:43 +00:00
voice-call.plugin.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00