ClawVault
Commands

context

Graph-aware context retrieval for prompt injection

clawvault context

Retrieve task-relevant context by combining search + graph signals.

Usage

clawvault context <task> [options]

Options (Current)

FlagDescriptionDefault
-n, --limit <n>Max result entries5
--format <format>markdown or jsonmarkdown
--recentBoost recency (enabled by default)true
--include-observationsInclude observation memoriestrue
--budget <number>Token budget hint (positive integer)unset
--profile <profile>default, planning, incident, handoff, autodefault
--max-hops <n>Graph expansion depth2
-v, --vault <path>Vault path overridenearest

Examples

# Default markdown output
clawvault context "database migration strategy"

# Incident-focused JSON output
clawvault context "production timeout issue" --profile incident --format json

# Larger context window with deeper graph traversal
clawvault context "Q1 planning priorities" --profile planning --budget 3000 --max-hops 3

# Session/handoff framing
clawvault context "current work status" --profile handoff

Notes

  • --budget must be a positive integer.
  • Use --max-hops (not --graph-depth) to control graph traversal.
  • There is no dedicated verbose explain flag on this command surface.

Common Errors

Invalid budget

clawvault context "task" --budget auto
# Error: Invalid --budget value: auto

Use a number:

clawvault context "task" --budget 2000

Invalid profile

clawvault context "task" --profile unknown

Valid profiles are:

  • default
  • planning
  • incident
  • handoff
  • auto

On this page