# decision-cascade > Local, machine-native decision engine: typed, calibrated probabilities instead of generated text. Noul (yes/no), Choice, Score, plus a cost-aware cascade and the SystemOne protocol. Python 3.11+, runs offline on CPU; the big LLM is only paid for when confidence is low. Website: https://dc.dcns.ru/. Install: `pip install decision-cascade`. Run: `python -m uvicorn api.server.main:app --port 8000`, or `decision mcp --stdio` for MCP clients. No API key, no model download, no GPU. ## Use it when - you need a probability, not prose: routing, moderation, escalation, priority, refund, tool choice; - you want to decide when to call an expensive model (cascade) instead of always calling it; - an agent needs one typed tool that answers many binary/choice/score questions. Do not use it for free-form text, summarization or code generation. ## Start here - [Agent integration guide](https://github.com/slavabars/decision-cascade/blob/main/docs/en/agent-integration.md): install, MCP config, SDK snippet, limitations. - [MCP server](https://github.com/slavabars/decision-cascade/blob/main/docs/en/mcp.md): `capabilities`, `decide`, `feedback`, `calibrate`; stdio and loopback HTTP. - [HTTP API reference](https://github.com/slavabars/decision-cascade/blob/main/README.en.md): `/decisions`, `/decisions/batch`, `/v1/systemone`, `/v1/feedback`, `/v1/questions`, `/v1/stats`. - [Tool routing](https://github.com/slavabars/decision-cascade/blob/main/docs/en/tool-routing.md): choose a tool or model with calibrated confidence. - [Benchmarks](https://github.com/slavabars/decision-cascade/blob/main/docs/en/benchmarks.md): ECE, Brier, latency, public datasets, competitors. - [Hugging Face packs](https://github.com/slavabars/decision-cascade/blob/main/docs/en/huggingface.md): pre-trained heads, `DECISION_PACK_REPO`. - [Stability policy](https://github.com/slavabars/decision-cascade/blob/main/docs/en/stability.md): what `1.x` guarantees and what is still beta. - [Troubleshooting](https://github.com/slavabars/decision-cascade/blob/main/docs/en/troubleshooting.md): startup, readiness, packs, limits. ## Questions and answers - Noul: `{"type": "noul", "instructions": "Escalate?"}` → `p` in `[0, 1]`, `confidence = 2·|p − 0.5|`. - Choice: `{"type": "choice", "instructions": "Which team?", "options": ["billing", "support"]}` → selected option plus a distribution. - Score: `{"type": "score", "instructions": "How urgent?", "levels": ["low", "normal", "high"]}` → value plus a distribution. - `state` is an opaque string. If it is JSON, serialize it canonically on the client (`sort_keys=True`). - `trained=false` means no weights match the schema; the head answers randomly. Use packs in production. - Media: `images`/`videos` (paths inside `DECISION_MEDIA_ROOT` or data URIs) plus `media_kwargs.max_frames`; video needs `ffmpeg`/`ffprobe` 4.4+, otherwise the server advertises images only. ## Python and SDK - [Python SDK](https://github.com/slavabars/decision-cascade/blob/main/api/sdk/client.py): `DecisionClient` / `AsyncDecisionClient`, canonical state, response validation. - [TypeScript SDK](https://github.com/slavabars/decision-cascade/blob/main/sdk/typescript/README.md): zero-dependency ESM client with types. - [Agent example](https://github.com/slavabars/decision-cascade/blob/main/examples/integrations/chat_agent.py): typed decisions turned into actions. ## Training and packs - [Training recipe](https://github.com/slavabars/decision-cascade/blob/main/docs/en/benchmarks.md): SFT, temperature calibration and head export. - [Pack publisher](https://github.com/slavabars/decision-cascade/blob/main/training/recipe/publish_hf.py): build, sign and publish head packs. ## Optional - [Changelog](https://github.com/slavabars/decision-cascade/blob/main/CHANGELOG.md) - [Security policy](https://github.com/slavabars/decision-cascade/blob/main/SECURITY.md) - [Full LLM context](https://github.com/slavabars/decision-cascade/blob/main/llms-full.txt): the English docs concatenated into one file.