Repository navigation
Conversation
The shared config schema declares recallExcludeUris (env OPENVIKING_RECALL_EXCLUDE_URIS) for every harness and forwards it to the context search as exclude_uris: claude-code and codex (volcengine#5436), dsh (volcengine#5312), pi (volcengine#5368), opencode (volcengine#6850) and openclaw (volcengine#6865) all send it. The Hermes plugin does not, so configured exclusions are impossible and generated directory files (viking://agent/skills, viking://user/<uid>/skills, ...) keep matching like ordinary content and consume the per-turn recall budget with boilerplate. Add a recall_exclude_uris setting (YAML list or comma/newline string, env OPENVIKING_RECALL_EXCLUDE_URIS, default unset). The list parser trims, dedupes and caps entries at 200 like the server, and refuses values without the viking:// scheme: the server validates every exclude_uris entry (validate_viking_uri), so a malformed value would turn every context recall into a fallback search. Invalid shapes warn once and fall back to the default, matching the other settings. The provider forwards the list on the mode=context recall payload. exclude_uris is context-only - the server refuses it on list searches - so the search/find fallback path is intentionally unchanged. Documented in CONFIGURATION.md next to the recall compression section.
This branch has not been deployed
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.
Problem
recallExcludeUris(envOPENVIKING_RECALL_EXCLUDE_URIS) is declared in the shared config schema for every harness and forwarded to the context search asexclude_uris: claude-code and codex (#5436), dsh (#5312), pi (#5368), opencode (#6850) and openclaw (#6865) all send it. The Hermes plugin does not — there is no way to exclude a subtree from automatic recall, so generated directory files (viking://agent/skills,viking://user/<uid>/skills) keep matching like ordinary content and consume the per-turn recall budget with boilerplate.Fix
recall_exclude_urissetting: YAML list or comma/newline string, envOPENVIKING_RECALL_EXCLUDE_URIS, unset by default. A new list parser trims, dedupes and caps entries at 200 (the server'sMAX_EXCLUDE_URIS).viking://scheme: the server validates everyexclude_urisentry (validate_viking_uri), so a malformed value would turn every context recall into a fallback search. Only the scheme is checked client-side — scope and path rules stay server-owned. Invalid values warn once and fall back to the default, matching the other settings.mode=contextrecall payload.exclude_urisis context-only (the server refuses it on list searches), so thesearch/findfallback path is intentionally unchanged.Tests
tests/test_recall_exclude_uris.py(against the pinned Hermes test host):Notes
_CONFIG_SCHEMA, compress payload); hunks are semantically independent and this PR rebases cleanly on top of it. Checked with a 3-way patch apply.