Syntax
Description
Searches the knowledge graph for execution flows related to a concept. This is a direct CLI wrapper for thequery MCP tool, bypassing MCP overhead for use in scripts, CI, and evaluation.
Results are grouped by execution flows (processes), showing how the matched symbols participate in call chains.
Arguments
The concept to search for (e.g., “authentication flow”, “database connection”, “error handling”).
Options
Target repository name. Omit if only one repository is indexed.Example:
--repo my-appTask context to improve ranking (e.g., “debugging login failures”).
What you want to find (e.g., “find where auth tokens are validated”).
Maximum number of processes to return.Default:
5Include full symbol source code in results.Default:
falseUsage Examples
Basic search
Search with context
Search with goal
Search specific repository
Include source code
Limit results
Output Format
Results are returned as JSON on stderr (because KuzuDB captures stdout at the OS level):When to Use
Usegitnexus query instead of the MCP tool when:
- Writing shell scripts
- Running in CI/CD pipelines
- Performing batch analysis
- Evaluating GitNexus (e.g., SWE-bench)
- You need machine-readable output
Multi-Repo Support
If you have multiple repositories indexed, specify which one to query:--repo with multiple repos indexed, you’ll get an error:
Output Destination
All output goes to stderr instead of stdout because KuzuDB’s native module captures stdout at the OS level during initialization. To redirect to a file:Related Commands
gitnexus context— 360-degree symbol viewgitnexus impact— Blast radius analysisgitnexus cypher— Raw graph queries