首页openclaw插件 › contexto — Contexto — 长时运行上下文引擎

代码插件 安全

contexto — Contexto — 长时运行上下文引擎

v0.1.13

为长时运行OpenClaw智能体设计的上下文引擎,缓冲并发送完整对话片段到托管API,防止长会话后关键指令被压缩丢失。

0· 13·0 当前
by @sm86·ClawHub
下载插件包 项目主页
License
ClawHub
最后更新
2026/4/8
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
Contexto与其描述内部一致:它实现了一个上下文引擎,使用插件配置API密钥将完整对话片段发送到托管API(api.getcontexto.com)——没有无法解释的权限或安装,但安装它会将完整对话(包括工具输出)发送到外部服务,因此在生产环境启用前请审查数据处理。
安全有层次,运行前请审查代码。

License

ClawHub

请查看许可证条款了解详情。

版本

latestv0.1.132026/4/7
● 无害

安装命令 点击复制

官方npx clawhub@latest install @ekai/contexto
镜像加速npx clawhub@latest install @ekai/contexto --registry https://cn.clawhub-mirror.com

插件文档

Contexto

Keep long-running OpenClaw agents reliable after the context window fills.

A drop-in OpenClaw context engine that retrieves old constraints instead of losing them to summaries.

Quick Start · Why Contexto · How It Works · Website · Discord

OpenClaw works well until long sessions start compacting away the exact instruction that mattered. Contexto is the context engine built for that failure mode.

The Problem in 15 Seconds

Turn 2:
"Flag suspicious emails.
Do NOT delete anything."

[... 30 more turns:
tools, retries, compaction ...]

Without Contexto

Turn 35: Agent deletes 12 flagged emails.
The constraint was lost in compaction.

With Contexto

Turn 35: Agent flags 4 new suspicious emails.

Retrieved context:
  -> user constraint: flag only, never delete

The instruction survives compaction.

Why Contexto

Contexto is a context engine for OpenClaw. It is built for the exact moment OpenClaw starts dropping or blurring the context your agent still needs:

  • early instructions get compacted away
  • summaries turn into summaries of summaries
  • unrelated topics blur together
  • the agent becomes less reliable the longer you use it

Contexto fixes that by storing full episodes and retrieving only the context that is relevant right now.

What You Get

  • Keeps important constraints retrievable even after long sessions and compaction
  • Stores full episodes instead of collapsing everything into lossy summaries
  • Separates topics with semantic clustering so retrieval stays clean
  • Surfaces explainable paths such as travel -> Japan -> visa docs
  • Drops into OpenClaw as one plugin with one config key

Quick Start

Built for OpenClaw today. Managed hosting is available, so you do not need to run retrieval infrastructure yourself.

openclaw plugins install @ekai/contexto
openclaw plugins enable contexto
openclaw config set plugins.slots.contextEngine contexto
openclaw config set plugins.entries.contexto.config.apiKey YOUR_KEY
openclaw gateway restart

Get an API key at getcontexto.com.

If your agent ever forgets a rule, preference, or prior decision after a long run, this is the switch to try first.

Who Should Use This

  • OpenClaw users whose sessions run long enough to compact
  • Agents where forgotten constraints are costly
  • Teams that want better reliability without prompt hacks
  • Not for one-shot chats or very short sessions

How Contexto Compares

If you are deciding whether this is worth installing, this is the short version.

Default OpenClaw**Contexto**
**When the context window fills**Older turns get compacted into a summary entry; recent messages stay intactFull episodes get ingested and indexed
**Keeps earlier instructions?**Degrades over timeYes, original episodes remain retrievable
**Keeps topics separated?**No, unrelated topics get blurred togetherYes, semantic clustering keeps branches distinct
**Can you explain what was retrieved?**NoYes, full path tracing (`travel -> Japan -> visa docs`)
**Setup time**Built-inOne plugin install, one config key

How It Works

Contexto turns aging conversation history into a searchable context tree instead of a lossy summary blob.

  1. OpenClaw buffers conversation turns as full episodes.
  2. When the prompt budget crosses the compaction threshold, the oldest episodes are ingested.
  3. Episodes are clustered with hierarchical similarity, so related work lands in the same branch.
  4. Retrieval uses beam search to pull back the most relevant episodes for the current prompt.

That means old context is not gone. It is organized.

Under the Hood

  • Episodes and sliding window: the storage unit is a full turn, including tool output.
  • Hierarchical clustering (AGNES): related episodes are grouped without predefined categories.
  • Multi-branch beam search: retrieval can pull from several relevant branches in one pass.
  • Hybrid rebuild strategy: periodic full rebuilds plus cheaper incremental inserts between them.

For the deeper technical reasoning:

Configuration

PropertyTypeRequiredDescription
`apiKey`stringYesYour Contexto API key

Community

License

Apache 2.0


数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务