<!-- https://tinyactors.dev/docs/agents/ -->
# Build with a coding agent · tinyactors

Kind: how-to. For: [Agent-platform engineer](https://tinyactors.dev/audiences/agent-platform.xml), [Workflow developer who tests](https://tinyactors.dev/audiences/workflow-tester.xml).
Voice: [How-to](https://tinyactors.dev/voices/how-to.xml).

> Connect a coding agent to the tinyactors support server for the guides, the skill for writing charts and known issues, and read every page of the site as Markdown.

Your agent writes the charts; the support server gives it the guides, a skill for building with tinyactors and the known issues with their workarounds. Every page of this site is Markdown for it too.

[Connect the server](https://tinyactors.dev/docs/agents/index.md#connect) · [See what people build](https://tinyactors.dev/recipes/index.md)

<a id="why"></a>

## An agent writes one actor at a time

An actor reaches the world only through events. So an agent writes one from the events entering and leaving it, without reading the rest of your system.

A review of the agent's change reads one chart, where every state and transition is written down. In CI, `tinyactors diff` catches what a review can miss: here a renamed state that running orders still wait in.

```shell
tinyactors diff --breaking --exit-code deployed.tai order.scxml
```

```text title="output"
#### States

| State | Change | Breaking | Before | After |
| --- | --- | --- | --- | --- |
| paying | removed | yes | atomic in /scxml |  |
```

`deployed.tai` is the chart you last deployed, compiled with `tinyactors compile` ([CI checks · tinyactors CLI](https://tinyactors.dev/cli/guides/ci/index.md#deployed)). The command installs with mise or a release archive ([Overview · tinyactors CLI](https://tinyactors.dev/cli/index.md#install)).

[Check charts in CI](https://tinyactors.dev/cli/guides/ci/index.md) adds `check`, `lint` and `diff` to every pull request, so an agent's change that breaks a chart fails before anyone merges it.

<a id="connect"></a>

## Connect the support server

An agent that guesses at an API it has not seen writes code that fails at the first run. The server at `https://mcp.tinyactors.dev/mcp` lets it read the packages' guides instead, and reading needs no account.

In Claude Code, `claude mcp add` registers it under the name `tinyactors-support`:

```shell
claude mcp add --transport http tinyactors-support https://mcp.tinyactors.dev/mcp
```

On claude.ai, add it under Settings, Connectors, Add custom connector, with the same URL. Any other agent that connects to MCP servers over HTTP takes that URL too.

Then start with a prompt that names the skill, so the agent reads it whether or not your host lists the server's skills by itself:

```text
Use the using-tinyactors skill from tinyactors-support to model my checkout as actors.
```

<a id="tools"></a>

## What your agent can do there

- **Search the docs**: `search_docs` searches the packages' guides, and `get_doc` reads one whole.
- **Read the skills**: Hosts with MCP's Skills extension list each skill as a `skill://` resource; for the others, `list_skills` and `get_skill` read them.
- **Find a workaround**: `known_issues` lists the open issues, costliest first, with their workarounds, and `get_issue` reads one.
- **Report what cost it time**: `report_issue`, `attach_workaround` and `attach_file` start a GitHub login the first time. Reports of the same problem become one issue, and the reporter hears when it changes.
- **Know what a report sends**: Only the fields your agent fills in, under your GitHub login. They are the repository and directory, a title, a body of what it did and saw, the minutes it cost, its commit and its session's link. No code goes with it unless the agent writes it into the body or attaches a file. Anyone can read an issue's title and first report, so keep secrets and private code out of them.

Where the host renders MCP Apps, as Claude, ChatGPT and VS Code do, `known_issues` opens an issue list to filter, read and report from.

<a id="skill"></a>

## The skill teaches your agent the workflow

The server's [using-tinyactors](https://github.com/tinyactors-dev/tinyactors/tree/main/tinyactors-support/skills/using-tinyactors) skill says when a chart is worth its cost and how to build with one. Your agent reads it from the server, so there is nothing to install. Its workflow has five steps:

1. **Model the entities**: Decide which things are actors, who creates each kind, how they are named and how they end.
2. **Write the charts**: One `.scxml` file per kind of actor, every side effect a send to an I/O processor or an invoked service.
3. **Make the host and its processors**: One I/O processor per external system, such as a database or an HTTP client.
4. **Test on a simulated clock**: A `SimulatedClock` and a stand-in for every processor, so timeouts take no time.
5. **Decide what survives a restart**: Per kind of actor: a store with hibernation, snapshots of the whole host, or your own database.

A second skill, [reporting-tinyactors-issues](https://github.com/tinyactors-dev/tinyactors/tree/main/tinyactors-support/skills/reporting-tinyactors-issues), has the agent look for a known issue before it reports one.

<a id="pages"></a>

## Every page is Markdown too

Add `index.md` to a page's address for its Markdown, as in [/guides/hibernation/index.md](https://tinyactors.dev/guides/hibernation/index.md). [/llms.txt](https://tinyactors.dev/llms.txt) lists every page, and [/llms-full.txt](https://tinyactors.dev/llms-full.txt) holds every page but the changelog in one file.
