Repository navigation
Conversation
Retrieval is project-first but always pads with up to two cross-project results, with no way to turn that off. In a project with few pages, or when the neighbour is a large `miscellaneous` bucket, agents following "query the brain first" read and act on another project's context. `--local` on search/query/ask drops the cross-project slice in both the gbrain-backed path and the offline fallback. devbrain consumes the flag (it never reaches the engine); `--local --global` is rejected; the default is unchanged. stripGlobal is generalised to stripFlag. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Why
devbrain brain search/query/askis project-first but always pads the result list with up to two cross-project hits, and there was no way to turn that off. In a project with few pages, or when the nearest neighbour is a largemiscellaneousbucket, agents following the standing "query the brain first" instruction read and act on another project's context.--globalalready exists for the opposite direction;--localis its counterpart.What
--localonsearch,queryandaskdrops the cross-project slice in both the gbrain-backed path (prioritizeEngineResults) and the offline fallback (fallbackSearch).--local --globalis rejected with exit 1. Default behaviour is unchanged.stripGlobalgeneralised tostripFlag; README line updated.How verified
TestBrainSearchLocalFlagEngine(stub engine that exits 2 if it ever sees--local) andTestBrainSearchLocalFlagOffline(two seeded projects, gbrain absent, plus the exclusive-flags case). Both failed before the change — flag forwarded to the engine; flag tokenised as a search term — and pass after.make test(vet, full suite, dashboard node checks) is green.🤖 Generated with Claude Code