# Run Scintilla with your agent

Use Scintilla for local chat, or ask its routing head which kind of model should answer a request. [Get Favilla for Mac](https://www.fornace.app/favilla/download?src=scintilla) for the recommended app setup. To bring your own agent, use the standalone download below. It needs an Apple Silicon Mac running macOS 27 or later, with no app, account, Python, or package manager required.

## Download the Q4 pack

The installer requires [`b3sum`](https://github.com/BLAKE3-team/BLAKE3/tree/master/b3sum) on your `PATH` to verify the download. Install that command separately if needed. [Download the setup script](./install.sh), save it as `install.sh`, and read it before running it. From the directory where you saved it:

```sh
/bin/bash ./install.sh "$HOME/Models/scintilla-1.0-20261125-q4"
```

Choose your own destination if you prefer. Its parent directory must already exist; for example, use `"$HOME/scintilla-1.0-20261125-q4"` if you do not have `~/Models`. The script only downloads into that directory. It checks byte counts and the release's pinned BLAKE3 digest for every file, including resumed downloads and files already present. It also verifies Fornace's Developer ID signature on each executable. It does not launch them, change your `PATH`, install a service, or repoint an existing model. Rerun the same command to resume an interrupted download. For chat without the decision heads, add `--chat-only` before the destination.

| Download | Bytes |
| --- | ---: |
| Q4 chat and decision heads | 2,709,827,579 (2.71 GB) |
| Q4 chat only, including the Q4 drafter | 2,663,798,390 (2.66 GB) |
| Q4 reader weights alone (`text-q4.bin`, included in both) | 2,470,023,538 (2.47 GB) |

The [public release inventory](https://pub-06296f388be24ad49bd4b3555598523b.r2.dev/scintilla-1.0-20261125/release.json) lists the original URLs. Run `/bin/bash ./install.sh --list` for the exact compact subset, or `/bin/bash ./install.sh --chat-only --list` for chat only. The shared pack keeps `text-q4.bin`, `tokenizer.json`, `chat_template.jinja`, `generation.json`, `MANIFEST.json` and `kernels/` together. Chat adds `runtime/sc11_serve` and `drafter/` with its Q4 weights and release metadata. Decisions add `runtime/sc11_jev` and `jev-heads/v1/` with `head.json`, `weights.f32`, the skills and tools banks, and the head's evaluation report. The two runtimes use the same reader weights on disk. Neither download fetches the Q8, BF16 or media lanes.

## Chat: point your agent at localhost

Run the native chat server in a terminal. Use the destination you chose above:

```sh
PACK="$HOME/Models/scintilla-1.0-20261125-q4"
"$PACK/runtime/sc11_serve" --model-dir "$PACK" --lane q4 --ctx 4096 \
  --prefix-store off --http-port 8080
```

Keep the server running. If port `8080` is taken, choose another free port with `--http-port` and use it in the URLs below. From another terminal, check readiness and list the available models:

```sh
curl --fail --silent --show-error http://127.0.0.1:8080/healthz
curl --fail --silent --show-error http://127.0.0.1:8080/v1/models
```

| Agent setting | Value |
| --- | --- |
| API | OpenAI-compatible Chat Completions (HTTP, with SSE when streaming) |
| Base URL | `http://127.0.0.1:8080/v1` |
| Model ID | `scintilla-direct` for direct replies or `scintilla-thinking` for reasoning |
| API key | None required by the local runtime |

This works with agents that accept a custom Chat Completions base URL. An agent with an HTTP tool can call the same endpoint directly:

```sh
curl --fail --silent --show-error http://127.0.0.1:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  --data-binary '{"model":"scintilla-direct","messages":[{"role":"user","content":"Write a one-sentence invitation to a Friday lunch."}],"max_tokens":48,"stream":false}'
```

Read the reply from `choices[0].message.content`. The server binds to `127.0.0.1`; keep it on loopback. Stop it with Control-C. The runtime also supports `scintilla.serve.v1` JSON lines over standard input and output when started without `--http-port`.

## Routing: call the decision head separately

With the chat and decision heads download, run Jev on a separate loopback port:

```sh
PACK="$HOME/Models/scintilla-1.0-20261125-q4"
"$PACK/runtime/sc11_jev" --model-dir "$PACK" --head-dir "$PACK/jev-heads/v1" \
  --lane q4 --ctx 4096 --host 127.0.0.1 --port 8129
```

If port `8129` is taken, choose another free port with `--port` and use it in the URLs below. From another terminal, send the task as state to the decision endpoint:

```sh
curl --fail --silent --show-error http://127.0.0.1:8129/health
curl --fail --silent --show-error http://127.0.0.1:8129/v1/jev/multi \
  -H 'Content-Type: application/json' \
  --data-binary '{"state_text":"I have two expense reports with different totals. Compare their assumptions, reconcile the line items and explain the discrepancy."}'
```

Read `fast_heads.model_route.label` and `fast_heads.model_route.probabilities`. The result is a recommendation, not generated text. Your agent can map `local_direct` to `scintilla-direct` and `local_thinking` to `scintilla-thinking`, then send the original messages to the chat endpoint under that model ID. For other labels or an unavailable head, use a configured local default or ask the user. A routing label does not authorize a cloud call, spending, or a tool action.

To route an incoming message while your agent works, include the active job in `state_text`. This request returned `fast_heads.input_gate.label: "queue_todo"` on the released Q4 pack:

```sh
curl --fail --silent --show-error http://127.0.0.1:8129/v1/jev/multi \
  -H 'Content-Type: application/json' \
  --data-binary '{"state_text":"busy: true\ngoal: Compare the two sales reports\ntodos: none\nuser: Add a to-do: draft an email when you finish."}'
```

When your integration receives `queue_todo`, append the message to the agent’s to-do list without sending it into the turn that is already running. The agent owns the queue; the local model supplies the choice.

The `scintilla.jev-heads.v1` runtime also serves `POST /v1/systemone` for named decisions with supplied choices or scoring criteria. It is separate from the chat API.
