# Needs

> A chart says it needs a mind or a channel instead of naming Claude or Telegram. The owner binds each kind once, every chart reuses it, and the sign-ins, services and repairs come with the provider.

A chart says what it **needs**, a mind to think with, a channel to write to its owner, instead of naming Claude or Telegram. The owner binds each kind once, when they set up their world, and every chart they install reuses that choice. The agent never names its provider: it thinks with `"need:mind"`, and the game binds it.

```json [chart.json: needs]
{ "mind": {}, "channel": { "features": ["push"] } }
```

## Before and after

The same morning brief, written with its providers by hand:

```json [before]
"values": { "mind": { "kind": "choice", "choices": [{ "id": "claude", … }, { "id": "local", … }] } },
"signins": { "claude": { "use": "signin.cli", … }, "telegram": { … }, "telegram-pairing": { … } },
"external": { "services": [{ "id": "claude", … }, { "id": "telegram", … }] },
"agents": [{ "model": { "from": "$mind" }, "channel": { "kind": "telegram" }, … }],
"parts": [{ "id": "agent", "requires": ["signin:claude", "signin:telegram"], … }]
```

With needs:

```json [after]
"needs": { "mind": {}, "channel": { "features": ["push"] } },
"agents": [{ "model": "need:mind", "channel": "need:channel", … }],
"parts": [{ "id": "agent", "requires": ["need:mind", "need:channel"], … }]
```

About fifty lines fewer, and an owner whose world thinks with a model on the machine installs it with no sign-in at all.

## Writing a need

- **The kind comes from the name.** `mind` and `channel` are their own kind; `mind-deep` or `channel-alerts` take the kind of their first word. Write `"kind"` only for a name of your own: `"notify": { "kind": "channel" }`.
- **`{}` (or `true`) is broad**: any provider of that kind, and the owner's own choice is reused.
- **Constrained**: `accept` lists the providers allowed, `features` what the provider must offer. A mind: `tools`, `vision`, `long-context`, `json`. A channel: `push` (it can write first), `reply`, `files`, `voice`, `buttons`.
- **Pinned**: `model` puts a mind on one model, such as `"anthropic/claude-sonnet-4-6"`.
- `why` is optional: the game has a sentence for each kind. `prefer` orders the providers when the owner must choose. `optional: true` when the chart works without it. `reuse: "ask"` asks each time, even when the owner has a default.

Leave the defaults out: no `"reuse": "owner"`, no `"optional": false`. Lint warns about them.

## Where a need is named

Always the whole string `"need:<id>"`:

| Where | Means |
|---|---|
| `agents[].model` | the agent thinks with that mind |
| `agents[].channel`, `permissions.channels` | the agent writes on that channel |
| `parts[].requires` | the part waits until the provider is connected |
| a proof `{ "type": "need", "id": "channel" }` | the provider's own check: Claude signed in, Telegram paired |
| `"when": { "need": "mind", "is": ["local"] }` | only when that need is bound to one of these providers |

A value never picks a provider. A choice "Claude or local?" is a need; lint says so ([`chart.need-instead`](https://docs.altasystem.ai/reference/errors#chart-need-instead)).

## The providers

| Provider | Kind | On the machine | Account |
|---|---|---|---|
| `claude` | mind | no: what you ask goes to Claude | a paid Claude subscription |
| `codex` | mind | no: what you ask goes to ChatGPT | a paid ChatGPT subscription |
| `local` | mind | yes; needs 16 GB of memory | none |
| `telegram` | channel | no: messages go through Telegram | a free Telegram account |
| `world` | channel | yes: the game's own inbox | none |

Each provider brings its sign-ins, its online service and its proof. Its repairs (sign in again, reconnect) are carried once for the whole world by Alta System OS: your chart repeats none of them.

## How the game binds

For each need, the first rule that applies:

1. Only the providers that fit: the right kind, inside `accept`, with the `features`, that this machine can run, and only local ones if the owner chose "100% local".
2. None fits: the chart is greyed with the reason ("Asks for a mind with vision; none can."), never hidden.
3. One fits: it is used; the owner connects it if needed.
4. The owner's own choice fits: it is used, with no question.
5. Another provider already connected fits: it is proposed, one question.
6. Nothing connected: the owner chooses, the recommended one first, then connects it.

Reuse is never silent. The first step of every install says it, one line per need:

```text [The consent step]
Morning Brief asks for: 1 agent(s): Helper; 3 sign-in(s). Each change shows its own card before it runs.

- Morning Brief will think with your Claude subscription · change
- Morning Brief will write to you on Telegram · change

Risk: medium. Read why below before you agree.
- It installs programs on your machine.
- It needs you to sign in (Claude, Telegram).
- An agent writes on a messaging channel (Telegram).
- An agent may reach the network where it chooses (message).
- It talks to online services while it runs (Claude, Telegram).

Needs online services to work.
- Claude: It thinks with your Claude subscription: what you ask goes to Claude. A paid account is needed. What leaves your machine: what you ask.
- Telegram: It writes to you on Telegram. An account is needed. What leaves your machine: messages.
```

"change" picks another provider. From a terminal, `alta install <chart> --bind mind=local` does the same, and `--local-only` keeps every need on the machine.

## Locality and risk

A need's online service is not written in your chart: it comes from the provider bound. Before anyone binds, the store lists the chart at the worst case of its providers, and says "can run 100% local" when every need has a local one. The first step of an install shows the real case, for the providers bound. A new version that adds a need, or lets it reach new providers, asks the owner again.

**Next:**

- [Say what your chart needs online](https://docs.altasystem.ai/charts/guides/declare-services)
- [Locality and online services](https://docs.altasystem.ai/charts/concepts/locality)
- [Every field of chart.json](https://docs.altasystem.ai/reference/standards/chart)
