Docs · Configuration

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: --yes takes the recommended answers (set up the repository, no global install); --global, --no-global and --no-init decide 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 --team records the plugin in .claude/settings.json instead. 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 through npx:
claude code
/plugin marketplace add chrisjowen/docket
/plugin install docket@docket

As a dev dependency, run it through npx or a package.json script. The plugin uses this copy first:

shell
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):

.docket.yaml
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/.index
  • source is the case file: the Markdown under root, less what exclude names.
  • ontology.file is the ontology every file is checked against.
  • watch.debounceMs is how long docket watch waits for changes to settle.
  • adapters lists the projections. The default local instance is the keyword index in .docket/.index. A projection role is synced into; a query role 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:

.docket.yaml
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 default

docket 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:

.docket.yaml
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

shell
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 files

docket 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.