Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Desire Path agent primer

What dp is

Desire Path (dp) records failed tool calls and reveals repeated mistakes. It turns that evidence into searchable patterns, aliases and signposts. In the Quipu stack, Quipu remembers knowledge, Bobbin searches code, Yupana explains structure, and dp captures capabilities agents expected.

Agent workflow

  1. Query Quipu for prior decisions and incidents before acting.
  2. Use Bobbin for code search and Yupana for impact.
  3. Inspect dp’s recorded evidence before proposing an alias or correction.
  4. Make recording, initialization and alias changes explicitly; dp prime only reads.

Core commands

CommandUse
dp primeFull orientation followed by bounded read-only state
dp prime --briefShort orientation for stack aggregation
dp prime --jsonStructured stack-prime/1 output for agents
dp prime --staticEmbedded guidance without config or state reads
dp prime --section core --staticOne section by case-insensitive heading prefix
dp list --since 7dRecent recorded failures
dp paths --top 10Frequently requested tool names
dp inspect TOOLEvidence for a recorded pattern
dp stats --invocationsCaptured invocation statistics
dp similar TOOLSimilar known tool names
dp ingest --source claude-codeExplicitly record a supplied payload
dp alias FROM TOExplicitly create a tool-name correction
dp init --source claude-codeExplicitly install recording integration

MCP tools

None. The CLI and hooks are the agent surfaces. Hook installation is separate from orientation.

Reading live state

The live read has a 650 ms deadline. Local mode reports only the configured existing database file’s size and modification time; it never opens SQLite, creates sidecars, or migrates a schema. File metadata does not establish valid schema, row counts, capture coverage, or database health. Remote mode makes one GET to the configured server’s /api/v1/stats, with no retries or redirects and a 64 KiB response cap. It reports only total desires and unique paths.

Status is ok, partial at the deadline, absent, unreachable, unreadable, or skipped with --static. JSON includes elapsed milliseconds and reports degraded for an incomplete live read; guidance remains usable and exit is 0. Plain live state names the path or credential-free URL and a next command. --db overrides the configured local path. Usage errors exit 2.

Next steps

  • Book
  • README
  • Skill
  • Command help: dp help and dp prime --help (no shipped man page).