Repository navigation
Keep agents in their project's notes wherever the knowledge base points - #246
Merged
Merged
Conversation
Follow-ups from a code review of the notes stack (#222, #226, #227, #230). Knowledge tools fence by real paths: a document path that lands in the notes folder must land in the turn's own project, whether the knowledge base is the notes folder, a workspace inside it, a folder that holds it, or a content.dir inside it. Search over such a base is read locally, asynchronously and bounded, skipping other projects' notes. Before, only a base that was exactly the notes root was confined, and a content.dir broke the prefix. Pages and knowledge tools look up the project's notes on every call, so moving them to another workspace mid-turn no longer refuses every call. A read-only turn finds the project's notes without making them, and an unknown project gets none rather than every project's. NotesStore: a copied workspace or project folder gets its own id instead of making the store unreadable; detachProject drops the cached look; linkProject answers from the last look when already linked; the watcher ignores dot folders (.modex, .ok, .git) but not markers; pageRels() serves a whole call. The sidebar hides a workspace whose projects a filter hides. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage-agent
View coverage of the 3 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
This was referenced Oct 16, 2026
This branch was successfully 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.
Follow-ups from a
/code-review highpass over the notes stack (#222, #226, #227 with #230/#238). The repair PRs (#235, #237, #238) addressed other findings. These ten were still open on main after #227.Knowledge isolation (the most serious finding)
~/.modex/notes/Personal(a workspace) or~/.modexlet every project's agents read and write every other project's notes..ok/config.ymlcontent.dirbroke the prefix: search threw ENOENT, and writes landed in the wrong place.content.dir, or another project's folder (which then refuses everything).fs.promises, so the main process keeps answering, and it's bounded to 20 results, 20,000 entries and 64 MB.Following a move mid-turn
Read-only turns and unknown projects
create. Only a turn that may write callslinkProject; a read-only turn usesprojectForand refuses with "this project has no notes yet" instead of creating folders.null). Before,undefinedmeant unscoped.NotesStore
detachProject: it drops the cached look, so a removed project unlinks on the very next read, not after a watcher event or 10 seconds.linkProject: it answers from the last look when the project is already linked. Before, it did a fresh walk, and it runs at the start of every agent turn and once per project at open..modex, Open Knowledge's.ok,.git) but not workspace or project markers. Before, every Open Knowledge write made Space re-walk the whole folder. The filter is nowwatchedChange(), tested directly.pageRels(): it returns every page's place from one look. Pages search andlistuse it, and a page map built once per call, instead of a full read per page.Sidebar: a workspace whose projects are all hidden by a search or the active-only filter no longer shows an empty header.
Tests
watchedChange()cases.Docs:
docs/status.mdanddocs/notes.md(copied folders).