feat: add recallMode with adaptive intent routing (beta.10)#342
Merged
chenjiyong merged 1 commit intoCortexReach:masterfrom Mar 25, 2026
Merged
feat: add recallMode with adaptive intent routing (beta.10)#342chenjiyong merged 1 commit intoCortexReach:masterfrom
chenjiyong merged 1 commit intoCortexReach:masterfrom
Conversation
Add recallMode config (full/summary/adaptive/off) for granular control over auto-recall injection depth. Adaptive mode uses zero-LLM-cost pattern matching to analyze query intent and route to appropriate memory categories with depth-aware formatting. - New: src/intent-analyzer.ts — analyzeIntent(), applyCategoryBoost() - New: test/intent-analyzer.test.mjs — 23 tests (all passing) - Modified: index.ts — integrate intent analysis into before_prompt_build - Modified: openclaw.plugin.json — add recallMode schema + UI field Rewritten for v1.1.0-beta.10 (replaces PR CortexReach#313 which was based on beta.9). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AliceLJY
added a commit
to AliceLJY/memory-lancedb-pro
that referenced
this pull request
Mar 25, 2026
Combines the following rebased changes onto latest cortexreach/master: - feat: add session compression and adaptive extraction throttling - fix: disable extraction throttle and session compression in smart-extractor-branches test - fix: address Codex review for session compression - fix: address PR CortexReach#318 review — align opt-in defaults, CJK-aware scoring, rate limiter docs Session compression scores conversation texts before auto-capture and drops low-signal content; extraction throttling adds a sliding-window rate limiter and a low-value conversation skip gate. Both features default to opt-in (disabled) to avoid surprising existing users. Resolves merge conflicts with memory-compaction (CortexReach#343) and recall-mode-v2 (CortexReach#342) that landed on master since the original branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces #313, rewritten for v1.1.0-beta.10 (
before_prompt_buildhook path).recallModeconfig:full(default) |summary(L0 only) |adaptive(intent-based) |offopenclaw.plugin.jsonHow adaptive mode works
Automatic fallback: if category boosting still yields zero results, no filtering is applied.
New files
src/intent-analyzer.ts—analyzeIntent(),applyCategoryBoost(),formatAtDepth()test/intent-analyzer.test.mjs— 23 tests (all passing)Test plan
recallModeunchanged🤖 Generated with Claude Code