Configuration
Other ways to install docket, what .docket.yaml holds, and the commands you run every day.
Install options
npx @chrisjowen/docket setup asks before it sets up the repository or installs the CLI globally. Run it again
whenever you like: it updates what is installed and leaves an existing .docket.yaml alone.
- Without questions:
--yestakes the recommended answers (set up the repository, no global install);--global,--no-globaland--no-initdecide one each. Without a terminal, as in CI, it installs the plugin and skips the rest unless told otherwise. - For a team:
npx @chrisjowen/docket setup --teamrecords the plugin in.claude/settings.jsoninstead. Commit that file and everyone who clones the repository is offered it. - Just the plugin, from inside Claude Code. It runs the repository's own
docket, or one on your path, and otherwise the release it pins throughnpx:
/plugin marketplace add chrisjowen/docket
/plugin install docket@docketAs a dev dependency, run it through npx or a package.json script. The plugin uses
this copy first:
pnpm add -D @chrisjowen/docket # or: npm install --save-dev @chrisjowen/docket
npx docket init.docket.yaml
docket init writes this file at the root of the repository (less its commented examples):
version: 2
source:
root: .docket # where the case file lives
include:
- "**/*.md"
exclude:
- ".index/**"
- ".cache/**"
ontology:
file: .docket/entities.yaml
watch:
debounceMs: 300
adapters:
- id: local # unique; names the instance in answers and errors
module: "@docket/adapter-jsonl" # a package, or ./a/file.mjs relative to .docket.yaml
roles: [projection, query]
config: # the adapter's own settings
output: .docket/.indexsourceis the case file: the Markdown underroot, less whatexcludenames.ontology.fileis the ontology every file is checked against.watch.debounceMsis how longdocket watchwaits for changes to settle.adapterslists the projections. The defaultlocalinstance is the keyword index in.docket/.index. Aprojectionrole is synced into; aqueryrole is asked questions.
Secrets never go in the file. An adapter takes the name of the environment variable that holds one
(passwordEnv, apiKeyEnv, tokenEnv) and reads the value itself.
Adding adapters
docket adapter add <provider> sets up jsonl, neo4j, mem0, memvid, mempalace or cognee: it asks what the adapter needs, shows the plan, and applies it
once you confirm. Projections covers what each one is for and its settings.
Questions and chat
docket search, docket ask and the web UI put questions to the adapters as query says:
query:
defaultAdapters: [local] # unset: every adapter with the query role
timeoutMs: 30000 # the deadline every adapter answers within
maxConcurrentAdapters: 4 # how many answer at once
synthesis: true # write a summary by defaultdocket open's chat summarizes what search found with the claude CLI, on your own login, with nothing to
set. To choose its model, or to use a local Ollama model instead, set summarize:
summarize:
provider: claude
model: sonnet # passed as `claude --model`; unset, Claude Code picks
# or a local Ollama model, at http://localhost:11434:
# summarize:
# model: "qwen2.5:7b"Everyday commands
docket validate --strict # check the files against the ontology; dangling links are errors
docket sync # project changed files into every adapter enabled for projection
docket watch # or keep projecting as files change
docket rebuild # throw the projections away and rebuild them from the files
docket search who owns orders # what each adapter found, each hit pointing at its file
docket ask "how many services depend on the ledger?" # each adapter's answer, with a cited summary
docket open # browse, search and ask in a web UI on 127.0.0.1:4380
docket adapters status # each adapter's health and how far it lags the filesdocket open listens on 127.0.0.1 unless --host says otherwise. --port picks
the port and --no-open skips launching a browser. It is also docket's local MCP server; see Self-hosting Docket.