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/cli task find approvalnpx @jumpspace/cli task find approval review --mode anynpx @jumpspace/cli task 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/cli task ask "How does approval work?"npx @jumpspace/cli task 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/cli task semantic buildnpx @jumpspace/cli task semantic status --jsonnpx @jumpspace/cli task semantic search approval flow --jsonnpx @jumpspace/cli task 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/cli task query --depends-on-transitive PM-ROADMAP-001 --no-tests --jsonnpx @jumpspace/cli task query --where module=project-management --where tests=nonenpx @jumpspace/cli task 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/cli task link suggest DOC-EXAMPLE-001 --jsonnpx @jumpspace/cli task link suggest DOC-EXAMPLE-001 --since main --jsonnpx @jumpspace/cli task link update DOC-EXAMPLE-001 --code src/foo.ts --test src/foo.test.ts --dry-run --jsonWithout --since or --path, link suggest uses current working-tree
candidates. Changed-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/cli task find approval --json --compactnpx @jumpspace/cli task ask "approval flow" --json --compactnpx @jumpspace/cli task related DOC-EXAMPLE-001 --json --compact