# Agent Charts

> The package format for personal agents. One folder says what an agent needs; the owner installs it step by step, and agrees to each one.

**Package an agent once. Anyone installs it, with a yes.**

An Agent Chart is one folder that says what your agent needs: a model, accounts, memory, a machine big enough. Alta OS turns it into steps the owner follows. Nothing is written until they agree, and every step is proven by the machine.

```sh [Terminal]
alta chart new morning-brief --kind agent
alta lint morning-brief
alta install morning-brief
```

## Helm for agents

Helm made one idea ordinary: a package, plus your values, gives a running system. Agent Charts bring that idea to agents that live on a person's own machine, and change two things.

| | |
|---|---|
| **No templates** | A chart is typed data. Values are referenced by name (`"$hour"`), never pasted into text. There are no loops and no conditions to debug. |
| **Nothing runs by itself** | Every change shows a plan first. The owner says yes, or it does not happen. |
| **Proof, not promises** | A step is done when a read-only check passes. "Installed", "ready" and "still alive" are three different proofs. |

## One file to read

This is a whole chart, as `alta chart new` writes it. It asks for one choice, connects one account, and creates one agent.

```json [morning-brief/chart.json]
{
  "schema": "alta.chart/0.1",
  "id": "morning-brief",
  "version": "0.1.0",
  "kind": "agent",
  "title": {
    "en": "Morning Brief",
    "fr": "Morning Brief"
  },
  "summary": {
    "en": "Replace this summary: what the owner gets, in one sentence.",
    "fr": "Remplace ce résumé : ce que tu obtiens, en une phrase."
  },
  "author": "you",
  "license": "MIT",
  "price": "free",
  "origin": "community",
  "privacy": "personal",
  "source": {
    "git": "https://example.invalid/you/morning-brief",
    "commit": "0000000000000000000000000000000000000000",
    "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
  },
  "support": {
    "platforms": [
      {
        "os": "macos"
      },
      {
        "os": "linux"
      }
    ],
    "hosted": "ok"
  },
  "requires": {
    "charts": [
      {
        "id": "alta-os",
        "version": ">=0.1.0 <1.0.0"
      }
    ]
  },
  "capabilities": [
    "install"
  ],
  "locality": "local-first",
  "needs": {
    "mind": {}
  },
  "agents": [
    {
      "id": "helper",
      "name": {
        "en": "Helper",
        "fr": "Helper"
      },
      "files": [
        "SOUL.md",
        "AGENTS.md"
      ],
      "model": "need:mind",
      "permissions": {
        "tools": {
          "allow": [
            "read",
            "message"
          ],
          "deny": [
            "write",
            "edit",
            "exec",
            "browser"
          ]
        }
      }
    }
  ],
  "parts": [
    {
      "id": "agent",
      "do": "agent.create",
      "args": {
        "agent": "helper"
      },
      "requires": [
        "need:mind"
      ],
      "undo": "archive",
      "proof": [
        {
          "type": "agent",
          "id": "helper"
        }
      ]
    }
  ],
  "proofs": {
    "ready": [
      {
        "type": "agent",
        "id": "helper"
      }
    ],
    "alive": [
      {
        "id": "agent-there",
        "check": {
          "type": "agent",
          "id": "helper"
        },
        "every": "1h"
      }
    ]
  }
}
```

[Every section, explained →](https://docs.os.altasystem.ai/charts/concepts/anatomy)

## What a chart declares

| Section | What it is |
|---|---|
| [Values](https://docs.os.altasystem.ai/charts/concepts/values) | What the owner chooses: a model, an hour, a folder. Never a secret. |
| [Sign-ins](https://docs.os.altasystem.ai/charts/concepts/sign-ins) | Accounts to connect, in the owner's own browser. Works on a server with no screen. |
| [Parts](https://docs.os.altasystem.ai/charts/concepts/parts) | The changes, in order. Each names an action from a closed list, and waits for a yes. |
| [Proofs](https://docs.os.altasystem.ai/charts/concepts/proofs) | Installed, ready, alive. Read only; they never return a secret. |
| [Repairs](https://docs.os.altasystem.ai/charts/concepts/repairs) | Fixes the owner may allow in advance, one by one. Everything else asks. |
| [Dependencies](https://docs.os.altasystem.ai/charts/concepts/dependencies) | The charts it builds on, and the services it owns. |

## Safe to install from a stranger

- **No code from a file.** A chart names actions from a closed list that ships with Alta OS. It cannot add one.
- **Pinned.** A community chart points at one full commit and its digest. Never a moving branch.
- **Everything it asks for is on the first screen.** Accounts, what each agent may do, what the server must allow.
- **A new version that asks for more asks again.** It is never applied in the background.
- **Secrets stay on the owner's machine.** A chart names accounts, never values.

[How trust works →](https://docs.os.altasystem.ai/charts/concepts/trust)

## Start here

- [Your first chart in 5 minutes](https://docs.os.altasystem.ai/charts/quickstart): create a chart, lint it, see its install plan.
- [Package an agent](https://docs.os.altasystem.ai/charts/guides/agent): end to end, with a sign-in and a schedule.
- [Coming from Helm](https://docs.os.altasystem.ai/charts/guides/from-helm): the same ideas, side by side.
- [How the game renders a chart](https://docs.os.altasystem.ai/charts/concepts/from-chart-to-quests): the install, as the owner plays it.

Reference: [chart reference](https://docs.os.altasystem.ai/charts/reference) · [every field of chart.json](https://docs.os.altasystem.ai/reference/standards/chart) · [errors](https://docs.os.altasystem.ai/reference/errors) · [specification](https://docs.os.altasystem.ai/reference/advanced/specs/alta-chart-0.1) · [the `alta` commands](https://docs.os.altasystem.ai/reference/cli/)
