Command Palette
Search for a command to run...

claim & snippet

docref claim <ref...> and docref snippet <ref>

Print paste-ready text with the shas computed: claim emits a claim block (several refs make one multi-source claim), snippet emits a fully materialized fence. The shell is the CLI's staging area:

docref claim src/lib/server/site.ts#siteConfig >> docs/config.md
docref snippet src/lib/server/markdown.ts#hashSlug >> docs/internals.md

Both fail closed (exit 2) when a ref does not resolve, and --json returns the text plus the resolved sources for agents. Nobody computes a hash by hand; either the tool emits it here, or approve/refresh record it later.