# Build with AI

> Point Claude Code, Cursor, or any coding agent at Manykind's machine-readable docs, let it drive the mk CLI, and add the manykind plugin.

Source: https://developers.manykind.ai/reference/build-with-ai/

These docs are published in machine-readable form, so a coding agent has
accurate, current platform context instead of guessing.

## Machine-readable files

Every build generates these from the same Markdown as the pages you read
here, so they never drift:

| File | What it is | Use it when |
|---|---|---|
| [`/llms.txt`](https://developers.manykind.ai/llms.txt) | An index: every page with its one-line description and a link to its Markdown. | The agent should discover what exists and fetch only what it needs. |
| `/<page>.md` | One page as Markdown. Append `.md` to any page's path, for example [`/get-started/quickstart.md`](https://developers.manykind.ai/get-started/quickstart.md). | The agent needs one page, without navigation and markup. |
| `/llms/<section>.txt` | One sidebar section in one file, at most 100 KB each. `llms.txt` lists them. | The agent needs a whole area, such as workflows or the reference. |
| [`/llms-full.txt`](https://developers.manykind.ai/llms-full.txt) | The entire documentation in one Markdown file. | The agent has a large context window and should load everything. |

Each page in these files starts with its title, its description, and a
`Source:` line with the page's URL, and its links are absolute. They follow
the [llms.txt convention](https://llmstxt.org/). Every page also has **Copy
page** and **View as Markdown** under its title.

## Use it in your coding agent

```text
Read https://developers.manykind.ai/llms.txt and the pages it links that you need,
then help me write a workflow that …
```

Give the agent the vocabulary up front: an **Agent Service** holds your agents
and workflows; a customer's **vault** holds their data, **Memory Bank**, and
**connectors**; an agent or workflow runs on a vault only after the owner
**connects** it.

## Let the agent drive the CLI

The `mk` CLI is built to be run by a coding agent. It detects Claude Code,
Codex, Cursor, Gemini CLI, and other agents from their environment (or
`AI_AGENT`), and then prints JSON on stdout, never prompts, and reports a
failure as one object with a stable `reason` and the commands to run `next`.
See [Output, prompts, and errors](https://developers.manykind.ai/reference/cli/#output-prompts-and-errors).

A good loop for an agent:

| Step | Command | Why |
|---|---|---|
| Find the command | `mk help "<task>"`, then `mk help <command>` | Offline. The agent reads the real flags instead of recalling them. |
| Check a shape | `mk schema workflow`, `mk schema config`, `mk schema cli.<command>` | The JSON Schema of what it is about to write, or of what a command prints. |
| See what is there | `mk vault inspect --vault <id>` | Agents, workflows, schedules, cubbies, connections, webhooks, versions, and datasets in the vault, read-only. |
| Check the edit | `mk validate` | Every problem at once, each with a stable `code`, file, and line. |
| Preview | `mk push --dry-run`, `mk deploy --dry-run` | What would change; a push preview needs no credentials. |
| Apply | `mk push --yes`, `mk deploy --yes` | Without `--yes` the agent gets `confirmation_required` and the exact command to re-run. |
| Try it | `mk run <workflowId> --input <file> --vault <id> --yes` | Runs the workflow once and returns its outcome, every step, and token usage. |
| Debug | `mk runs list --workflow <id>`, `mk runs logs <runId> --tasks` | The runs and their event and task logs. |

`mk run` runs real steps: a step can message people or call a connector. Give
the agent a vault meant for testing.

The commands the CLI suggests in `next` never carry a credential flag such as
`--access-token` or `--secret-phrase`. Keep credentials in `MANYKIND_*`
environment variables rather than in the agent's command lines.

## Scaffolded projects include agent instructions

`mk init` writes `AGENTS.md`, `CLAUDE.md`, and a `.claude/` settings folder
into a new project, so a coding agent opened in it starts with the project's
conventions: find commands with `mk help`, trust `--help` and `mk schema` over
memory, run `mk validate` after every change, and preview side effects with
`--dry-run`. Pass `--no-ai` to skip them.

## The manykind plugin for Claude Code

The `manykind` Claude Code plugin, at
[manykind-ai/plugin](https://github.com/manykind-ai/plugin), holds the
authoring playbook for agents and workflows. A project made by `mk init` turns
it on in `.claude/settings.json`: trust the folder in Claude Code and it
installs. To add it by hand:

```text
/plugin marketplace add manykind-ai/plugin
/plugin install manykind@manykind-ai
```

## Related

- [Install the CLI](https://developers.manykind.ai/get-started/install/)
- [CLI reference](https://developers.manykind.ai/reference/cli/)
- [Quickstart](https://developers.manykind.ai/get-started/quickstart/)
- [How it fits together](https://developers.manykind.ai/get-started/how-it-fits-together/)
- [Glossary](https://developers.manykind.ai/reference/glossary/)
