feat: add full-text search over personal and code wikis - #592
Open
yashi (yashibuilds) wants to merge 1 commit into
Open
feat: add full-text search over personal and code wikis#592yashi (yashibuilds) wants to merge 1 commit into
yashi (yashibuilds) wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: fab66ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Agents often explore wiki memory with multi-hop ls/grep/read. Add a dedicated searchWiki helper, openwiki search CLI, and openwiki_search_wiki agent tool so retrieval is a first-class path for Personal and Code Brain. Co-authored-by: Cursor <cursoragent@cursor.com>
yashi (yashibuilds)
force-pushed
the
feat/wiki-search
branch
from
August 5, 2026 05:07
f0d7e69 to
fab66ea
Compare
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
searchWiki()over markdown wiki roots (personal~/.openwiki/wikiand code./openwiki)openwiki personal search <query>/openwiki code search <query>/openwiki search [--mode personal|code] [--limit <n>] <query>openwiki_search_wikiplus a prompt nudge to use it before broad wikils/grepcrawlsWhy
OpenWiki Brains called out better retrieval as next work. After dogfooding Personal Brain, chat agents often spent multiple exploratory filesystem hops (
ls→grep→ morels→read_file) to find pages that a dedicated wiki search can surface in one tool call. Humans also had no non-agent way to search the brain.This is intentionally an MVP keyword scan (not embeddings). Under the hood it is in the same family as
grep; the product change is a first-class CLI + ranked wiki search tool + guidance so retrieval is not only generic filesystem exploration.Closes #591
Relation to #529
#529 explores richer code-repo / MCP retrieval. This PR is a smaller Personal/Code Brain surface that can land independently.
Test plan
searchWiki+parseCommandsearch parsing (test/search-wiki.test.ts)pnpm run format && pnpm run lint && pnpm testnode dist/cli.js personal search "middleware"against a real Personal Brainopenwiki personal -pwith local build and confirmopenwiki_search_wikiis usedFollow-ups (not in this PR)
rg/ FTS index for very large brainsMade with Cursor