Retrieval And Graph Queries
Jumpspace has two retrieval modes: evidence retrieval and graph queries.
Use retrieval when you need likely relevant tasks. Use graph queries when you need exact structural constraints.
npx jumpspace find approvalnpx jumpspace find approval review --mode anynpx jumpspace find approval --module project-management --jsonfind defaults to --mode all so scripts keep strict matching. Use --mode any when recall matters more than precision.
npx jumpspace ask "How does approval work?"npx jumpspace ask "How does approval work?" --jsonask returns an evidence summary, not an authoritative answer. It should include task IDs, paths, retrieval sources, match reasons, matched terms, unanswered terms, coverage, graph expansion paths, connected tasks, and linked code/tests.
Semantic Retrieval
Section titled “Semantic Retrieval”Build the local semantic index:
npx jumpspace semantic buildnpx jumpspace semantic status --jsonnpx jumpspace semantic search approval flow --jsonnpx jumpspace semantic eval --jsonThe default backend is deterministic and local. Optional LanceDB and ONNX/Transformers support can be used when local dependencies and models are available.
The differentiating idea is task-vector retrieval plus graph expansion: match the task, then expand across dependencies, refs, modules, spaces, and supersession chains.
Deterministic Graph Queries
Section titled “Deterministic Graph Queries”npx jumpspace query --depends-on-transitive PM-ROADMAP-001 --no-tests --jsonnpx jumpspace query --where module=project-management --where tests=nonenpx jumpspace query --ref implements:JS-008 --jsonUse graph queries for questions like:
- Which tasks depend on an ADR and have no tests?
- Which tasks in this module have gaps?
- Which verified tasks reference a decision?
- Which tasks are ready but blocked by missing dependencies?
Link Suggestions
Section titled “Link Suggestions”npx jumpspace link suggest DOC-EXAMPLE-001 --since main --jsonnpx jumpspace link update DOC-EXAMPLE-001 --code src/foo.ts --test src/foo.test.ts --dry-run --jsonChanged-file status is context, not enough evidence by itself. Link suggestions should rank candidates by task-intent terms found in paths, basenames, identifiers, phrases, and bounded file content.
Compact Mode
Section titled “Compact Mode”Use compact JSON for cheap first-pass orientation:
npx jumpspace find approval --json --compactnpx jumpspace ask "approval flow" --json --compactnpx jumpspace related DOC-EXAMPLE-001 --json --compact