openclaw - 💡(How to fix) Fix Custom ContextEngine plugin backed by OpenViking — openviking-enhanced

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

openclaw config set plugins.slots.contextEngine openviking-enhanced
openclaw config set plugins.entries.openviking.enabled false
RAW_BUFFERClick to expand / collapse

Built a custom ContextEngine plugin that replaces the built-in OpenViking plugin with:

  • Hybrid search in assemble() — semantic + grep + RRF merge
  • 5-scope system — CWD-based scope resolution (system, infra, project, knowledge, personal)
  • 7-dimension ranking + MMR diversity + temporal decay
  • Content merge in ingest() — >0.85 similarity appends instead of duplicating
  • Auto-link — project relations + tool mentions + incident tagging
  • Scope hints via systemPromptAddition
  • Transcript cleanup in maintain() — strips stale <relevant-memories> blocks
  • Subagent isolation — prepareSubagentSpawn/onSubagentEnded with scope markers
  • Retry with backoff — 2 retries on 5xx/timeout

Uses definePluginEntry() + registerContextEngine() from the Plugin SDK. Delegates compaction to OC runtime via delegateCompactionToRuntime().

openclaw config set plugins.slots.contextEngine openviking-enhanced
openclaw config set plugins.entries.openviking.enabled false

Repo: https://github.com/benediktkraus/openviking-hooks (see openclaw-plugin/ directory)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Custom ContextEngine plugin backed by OpenViking — openviking-enhanced