| name | ov-search-context |
| description | Search context data(memories, skills and resource) from OpenViking Context Database (aka. ov). Trigger this tool when 1. need information that might be stored as memories, skills or resources on OpenViking; 2. is explicitly requested searching files or knowledge; 3. sees `search context`, `search openviking`, `search ov` request. |
| compatibility | CLI configured at `~/.openviking/ovcli.conf` |
OpenViking (OV) context searching
The ov search command performs context-aware retrieval across all memories and resources in OpenViking — combining semantic understanding with directory recursive retrieval to find the most relevant context for any query.
Table of Content
- When to Use
- Sub-commands for search
- List directories (
ov ls)
- Tree view (
ov tree)
- Semantic Search (
ov find)
- Content Pattern Search (
ov grep)
- File Glob Search (
ov glob)
- Full content read (
ov read)
- Get overview (
ov overview)
- Get Abstract (
ov abstract)
- Prerequisite
When to Use
- Finding specific information within imported resources or saved memories
- Retrieving context about topics, APIs, or patterns previously added
- Searching across project documentation, code, and learnings
- When an agent needs to reference previously stored knowledge
note: cli command can be outdated, when sees error, use --help to get latest usage
Sub-commands for search
List Contents (ov ls)
Browse directory structure:
ov ls
ov ls viking://resources/my-project/docs/
ov ls viking://resources --simple
ov ls viking://resources --all
ov ls viking://resources --node-limit 50
ov ls viking://resources --abs-limit 128
Tree View (ov tree)
Visualize directory hierarchy:
ov tree viking://resources
ov tree viking://resources --level-limit 2
ov tree viking://resources --node-limit 100 --abs-limit 128
ov tree viking://resources --all
Semantic find (ov find)
Find method with semantic relevance ranking:
ov find "how to handle API rate limits"
ov find "authentication flow" --uri "viking://resources/my-project"
ov find "error handling" --node-limit 5 --threshold 0.3
Content Pattern Search (ov grep)
Literal pattern matching:
ov grep "viking://resources" "TODO:" --uri "viking://resources/my-project"
ov grep "viking://resources" "API_KEY" --ignore-case --uri "viking://resources/my-project"
ov grep "viking://resources" "API_KEY" --node-limit 5 --uri "viking://resources/my-project"
File Glob Search (ov glob)
File path pattern matching:
ov glob "**/*.md" --uri "viking://resources/my-project"
ov glob "**/*.md" --uri "viking://resources/my-project" --node-limit 5
Read File Content (ov read)
Retrieve full content (L0-L2 layer):
ov read viking://resources/docs/api/api-1.md
ov read viking://resources/docs/api/api-2.md | head -n 10
ov abstract viking://resources/docs/api/
ov read viking://resources/docs/api/.abstract.md
ov overview viking://resources/docs/api/
ov read viking://resources/docs/api/.overview.md
Combining Search
Use search results to guide further actions:
ov ls viking://resources/
ov search "authentication" --uri "viking://resources/project-A"
ov overview viking://resources/project-A/backend
ov read viking://resources/project-A/backend/auth.md
Prerequisites
- CLI configured:
~/.openviking/ovcli.conf
- Resources or memories previously added to OpenViking