Skip to content

Needs ​

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.

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

examples/chart-agent/morning-brief/chart.json#/needs

Before and after ​

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

before
json
"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:

after
json
"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>":

WhereMeans
agents[].modelthe agent thinks with that mind
agents[].channel, permissions.channelsthe agent writes on that channel
parts[].requiresthe 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).

The providers ​

ProviderKindOn the machineAccount
claudemindno: what you ask goes to Claudea paid Claude subscription
codexmindno: what you ask goes to ChatGPTa paid ChatGPT subscription
localmindyes; needs 16 GB of memorynone
telegramchannelno: messages go through Telegrama free Telegram account
worldchannelyes: the game's own inboxnone

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 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:

The consent step
text
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.

What's next

Alta OS is open source (MIT).