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

Using agents

A source plugin translates an agent event into an invocation: tool name, inputs, error, session, and working directory. Failed invocations also become desires. The release’s dp sources command lists the plugins and installer status.

Claude Code

dp init --source claude-code
dp sources

The installer merges ~/.claude/settings.json. In v0.4.0 it adds:

eventcommandpurpose
PostToolUse and PostToolUseFailuredp ingest --source claude-codeCapture calls and failures
PreToolUse, Bashdp signpost-prefetchPrepare optional search guidance
PostToolUse and PostToolUseFailure, Bashdp signpostOffer search guidance
PostToolUseFailuredp pave-correctConsult correction rules

Review the settings after installation. These entries use command hooks without an async flag; do not assume capture has zero latency. For a capture-only configuration and verification, see Claude Code. Signposting needs a search backend; see the evaluation plan and dp init --help for the backend flags. Pave covers active interception as a separate opt-in.

Other source plugins

dp sources in v0.4.0 lists codex, cursor, and kiro as well as claude-code. Use the installed binary’s dp init --help and inspect generated configuration for the chosen source. A parser or installer being present does not establish that every event is emitted by every agent version. The Codex design note records its protocol.

For custom event producers, pipe their supported payloads into dp ingest --source <name>. See writing a source plugin for the interface and architecture for data flow.