Skip to main content

Davies · Developer documentation

CLAIMPILOT chat.

The assistant that talks to the claim. We document how it is built, how to run it, how to extend it and how to embed it in another claims system.

19
capabilities
16
claim tools
34
demo scenarios
2
products, one code path
1
Cloudflare Worker

Find your way in

One turn, in three steps

  1. 1

    The page hands over the claim

    The claim screen sends the document it is already showing with every turn. The assistant can only ever see that one claim.

  2. 2

    The Worker reads it through tools

    A system prompt with the safety rules first, a short brief, then tool calls for the detail: policy, diary, documents, money.

  3. 3

    The answer streams back, with its lookups

    Server-Sent Events carry the text, an activity chip per tool, screen highlights and a turn id for feedback.

Follow a turn through the code →

Built to be extended

Every moving part sits behind one seam. A capability is one object in one file. Prompt text lives in one catalogue. The model is reached through one port, the claims store through another. Adding a capability, a scenario, a model or a store is a matter of adding a file.

Read the architecture →

npm install
cp api/.dev.vars.example api/.dev.vars
npm run db:migrate
npm run dev          # Worker :8787, Vite :5173

npm test             # offline, in seconds
npm run test:e2e     # real Worker, scripted model