From 151f26070b04db162fe5afb515cfc4bbc5f4325d Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 6 Mar 2026 08:55:58 -0500 Subject: [PATCH] docs: context engine --- docs/concepts/context.md | 6 ++++++ docs/plugins/manifest.md | 4 ++++ docs/tools/plugin.md | 2 ++ 3 files changed, 12 insertions(+) diff --git a/docs/concepts/context.md b/docs/concepts/context.md index d7a16fa70fa..abc5e5af47c 100644 --- a/docs/concepts/context.md +++ b/docs/concepts/context.md @@ -153,6 +153,12 @@ What persists across messages depends on the mechanism: Docs: [Session](/concepts/session), [Compaction](/concepts/compaction), [Session pruning](/concepts/session-pruning). +By default, OpenClaw uses the built-in `legacy` context engine for assembly and +compaction. If you install a plugin that provides `kind: "context-engine"` and +select it with `plugins.slots.contextEngine`, OpenClaw delegates context +assembly, `/compact`, and related subagent context lifecycle hooks to that +engine instead. + ## What `/context` actually reports `/context` prefers the latest **run-built** system prompt report when available: diff --git a/docs/plugins/manifest.md b/docs/plugins/manifest.md index d5ea2a28b2d..d23f036880a 100644 --- a/docs/plugins/manifest.md +++ b/docs/plugins/manifest.md @@ -66,6 +66,10 @@ Optional keys: - The manifest is **required for all plugins**, including local filesystem loads. - Runtime still loads the plugin module separately; the manifest is only for discovery + validation. +- Exclusive plugin kinds are selected through `plugins.slots.*`. + - `kind: "memory"` is selected by `plugins.slots.memory`. + - `kind: "context-engine"` is selected by `plugins.slots.contextEngine` + (default: built-in `legacy`). - If your plugin depends on native modules, document the build steps and any package-manager allowlist requirements (for example, pnpm `allow-build-scripts` - `pnpm rebuild `). diff --git a/docs/tools/plugin.md b/docs/tools/plugin.md index 087c89d38dc..f40a0540a42 100644 --- a/docs/tools/plugin.md +++ b/docs/tools/plugin.md @@ -66,6 +66,7 @@ Plugins can register: - Agent tools - CLI commands - Background services +- Context engines - Optional config validation - **Skills** (by listing `skills` directories in the plugin manifest) - **Auto-reply commands** (execute without invoking the AI agent) @@ -370,6 +371,7 @@ Fields: - `allow`: allowlist (optional) - `deny`: denylist (optional; deny wins) - `load.paths`: extra plugin files/dirs +- `slots`: exclusive slot selectors such as `memory` and `contextEngine` - `entries.`: per‑plugin toggles + config Config changes **require a gateway restart**.