Guide
Cascade Protocol v1
Ask a pod in plain English.
The cascade command-line tool includes an agent: describe what you want, and it runs the cascade commands for you, showing each one. It can use a model that runs entirely on your computer, so your records never leave it.
Building on v2? The starter app’s chat add-on (--with chat, then npm run model) answers questions about a pod in plain words, and it can use a model on your computer through Ollama or LM Studio. Guide: Let an AI model read a pod →
Step 1
A minute
Install the tool
The agent comes with it, and so does llama.cpp support (through node-llama-cpp, installed where your computer supports it).
npm install -g @the-cascade-protocol/cli
Step 2
Once, a few minutes
Set up the local model
cascade agent login -p local cascade agent provider local
Setup offers two models and downloads the one you pick, once: Qwen3.5-4B (about 2.5 GB, the default and the more accurate) or Qwen3.5-2B (about 1.5 GB, faster on a smaller machine). After that it runs on your computer: no account, no key, and nothing is sent anywhere.
You can choose a hosted provider instead (Anthropic, OpenAI or Google), or Ollama. A hosted provider receives your requests and the output of the commands the agent runs, which can include health data from your pod.
Step 3
As long as you like
Ask
cascade agent "how many conditions are in ./my-pod?"
Run cascade agent with no request for a conversation. Every command it runs is shown as it runs.
Step 4
Optional
Pull facts out of narrative notes
Hospital documents often hold medicines and diagnoses in free text. The same local model can extract them. Start the extraction service, send it the pod’s notes, then review what it was unsure of:
cascade agent serve # leave running cascade pod extract ./my-pod cascade agent review --pod ./my-pod
Anything the model extracts is marked as AI-extracted.
Step 5
A few minutes
Or connect an AI client
cascade serve --mcp runs an MCP server. Add it to a client such as Claude Desktop:
{
"mcpServers": {
"cascade": {
"command": "cascade",
"args": ["serve", "--mcp", "--pod", "/path/to/my-pod"]
}
}
}The client gets six tools, to read, query, validate, convert and write a pod and to list what the tool can do. Anything the AI writes is marked as AI-extracted, and every operation is logged in the pod’s provenance/audit-log.ttl.