# Manykind Developer Docs > Developer documentation for Manykind: how to build, test, evaluate, and deploy workflows and agents that run on data their owners keep in a sovereign vault, and how to build on a vault from your own apps. SDK packages are published as @manykind-ai/*; the CLI is `mk` (also installed as `manykind`). Every page is available as Markdown: append `.md` to its path (for example https://developers.manykind.ai/get-started/quickstart.md). The links below point to those Markdown files. - [Complete documentation](https://developers.manykind.ai/llms-full.txt): every page in one file, in sidebar order. The section files below split it into parts of at most 100 KB each. - [Get started](https://developers.manykind.ai/llms/get-started.txt): 6 pages in one file. - [Agents](https://developers.manykind.ai/llms/agents.txt): 2 pages in one file. - [Agents: Workflows (part 1)](https://developers.manykind.ai/llms/agents-workflows-part-1.txt): 7 pages in one file. - [Agents: Workflows (part 2)](https://developers.manykind.ai/llms/agents-workflows-part-2.txt): 4 pages in one file. - [Agents: Workflows: Evaluations](https://developers.manykind.ai/llms/agents-workflows-evaluations.txt): 4 pages in one file. - [Agents: LLM agents](https://developers.manykind.ai/llms/agents-llm-agents.txt): 2 pages in one file. - [Agents: Code agents](https://developers.manykind.ai/llms/agents-code-agents.txt): 4 pages in one file. - [Agents: Building blocks](https://developers.manykind.ai/llms/agents-building-blocks.txt): 8 pages in one file. - [Agents: Ship](https://developers.manykind.ai/llms/agents-ship.txt): 2 pages in one file. - [Vaults](https://developers.manykind.ai/llms/vaults.txt): 13 pages in one file. - [Reference (part 1)](https://developers.manykind.ai/llms/reference-part-1.txt): 8 pages in one file. - [Reference (part 2)](https://developers.manykind.ai/llms/reference-part-2.txt): 3 pages in one file. ## Get started - [What is Manykind](https://developers.manykind.ai/index.md): Build agents and workflows that run on data your users own. The data stays in their vault, you never hold it, and consent is built into the platform. - [How it fits together](https://developers.manykind.ai/get-started/how-it-fits-together.md): The map of Manykind — the agents you build (in your Agent Service), the vault your customer owns, the connection between them, and how one run happens end to end. - [Your Agent Service](https://developers.manykind.ai/get-started/agent-service.md): Your account on Manykind — create an Agent Service in ROC, what it holds (agents, workflows, cubby schemas, widgets, members), and how its identity names every agent you publish. - [Team](https://developers.manykind.ai/get-started/team.md): Add people to an Agent Service, invite them to publish to its storage, and push agents, widgets, and cubbies as a member from the CLI. - [Install the CLI](https://developers.manykind.ai/get-started/install.md): Install the Manykind CLI and the @manykind-ai SDK packages, pick the ones you need, and set up the credentials the CLI pushes and deploys with. - [Quickstart](https://developers.manykind.ai/get-started/quickstart.md): Build, deploy, and run a small support-ticket triage workflow, either in the ROC Workflow Builder or in code with defineWorkflow. ## Agents - [Agents and workflows](https://developers.manykind.ai/agents/overview.md): What runs on Manykind — workflows, LLM agents, and code agents — how they relate, how a workflow uses the other two as steps, and how to choose. - [Runs and events](https://developers.manykind.ai/agents/how-agents-run.md): How work starts and runs on Manykind — events in a vault scope, the Jobs and Tasks they create, how engagements and workflow runs advance, and the sandbox your code runs in. ## Agents: Workflows (part 1) - [Workflows](https://developers.manykind.ai/agents/workflows/overview.md): What a workflow is: an agent whose behavior is a typed graph of steps, built in the ROC Workflow Builder or in code, and run on vault data once connected. - [Steps](https://developers.manykind.ai/agents/workflows/steps.md): Every workflow step kind: what it does, when to use it, its parameters, and a minimal example, grouped as the Workflow Builder palette groups them. - [Triggers](https://developers.manykind.ai/agents/workflows/triggers.md): Start workflow runs from an event, a schedule, a webhook call, or a message arriving through a vault connector, in the Builder or in defineWorkflow. - [People in workflows](https://developers.manykind.ai/agents/workflows/people.md): Park a run until vault members answer: human steps, assignees, closing policies, options and forms, shared documents, loop-back edges, and run participants. - [Split and aggregate](https://developers.manykind.ai/agents/workflows/split-and-aggregate.md): Run a stretch of a workflow once per item of a list with a split step, then collect every item's result with an aggregate step. - [Workflows in code](https://developers.manykind.ai/agents/workflows/author-in-code.md): Declare a workflow with defineWorkflow: project layout, nodes and edges, typed ids, models and cubbies, what mk build produces, and what round-trips with the Workflow Builder. - [Test a workflow](https://developers.manykind.ai/agents/workflows/test.md): The three-rung testing ladder for a workflow: local tests with @manykind-ai/testing and vitest, dataset experiments against a deployed version, and a daily live check of the deployed workflow. ## Agents: Workflows (part 2) - [Release and deploy](https://developers.manykind.ai/agents/workflows/release.md): Move a workflow from draft to live: Save a shared draft, Release it as a numbered version after an AI review and the required datasets pass, Deploy a release, and roll back by deploying an older one, in ROC or with mk release and mk deploy. - [Status and alerts](https://developers.manykind.ai/agents/workflows/status-and-alerts.md): Know whether a deployed workflow is working: its status (Healthy, Failing, Stuck), the Overview tab's runs, failures, durations and GPU units, the Setup checklist, owners, and an alert to Slack, email, or Telegram when it starts failing. - [Monitor runs](https://developers.manykind.ai/agents/workflows/monitor-runs.md): Follow workflow runs in ROC: the Runs tab, a run's steps and data, statuses, re-running and retrying, metrics, and finding out why a run failed, parked, stalled, or never started. - [Best practices](https://developers.manykind.ai/agents/workflows/best-practices.md): Rules for workflows that stay testable and safe to run twice: graph shape, step and payload budgets, cubby migrations, prompts and data, model output, idempotency, versioning, and fixtures. ## Agents: Workflows: Evaluations - [Evaluations](https://developers.manykind.ai/agents/workflows/evaluate/overview.md): Run a workflow version over a dataset of known cases, score each run against the Result it should produce, and compare versions on accuracy, duration, tokens, and cost. - [Datasets](https://developers.manykind.ai/agents/workflows/evaluate/datasets.md): Create a dataset of cases for a workflow in ROC or with mk eval, capture cases from real runs, and understand how cases are revised, versioned, and stored. - [Experiments](https://developers.manykind.ai/agents/workflows/evaluate/experiments.md): Run a dataset against a workflow version from ROC or with mk eval run, read the verdict and per-case results, compare two experiments, and run evaluations in CI. - [Results](https://developers.manykind.ai/agents/workflows/evaluate/results.md): Declare a typed Result on a workflow's Result step with result, resultTypes, and outcome, see what a wrong type does to a run, and learn how cases are matched against the Result. ## Agents: LLM agents - [LLM agents](https://developers.manykind.ai/agents/llm-agents/overview.md): Create an LLM agent in ROC from instructions, a model, tools, connections, and scopes; use it as a workflow step; and shape its answer so later steps can read its fields. - [Bring your own (A2A)](https://developers.manykind.ai/agents/llm-agents/bring-your-own.md): Register an A2A agent you already run elsewhere, from its Agent Card with mk push --kind external or Import agent in ROC, and learn how the platform calls it, maps its task states, and turns its answers into vault events. ## Agents: Code agents - [Write an agent](https://developers.manykind.ai/agents/code-agents/overview.md): Write a code agent in TypeScript: engagement classes, the ctx surface, defineAgent, and schedules, then build, push, and deploy it with the Manykind CLI (`mk`). - [Event streams](https://developers.manykind.ai/agents/code-agents/event-streams.md): Feed a stream of events into a vault scope with the vault SDK, handle each one in a code agent, keep handlers idempotent, and follow the stream from a client. - [Structured output](https://developers.manykind.ai/agents/code-agents/structured-output.md): Get a typed object from an LLM: constrain generation with response_format, validate with Zod, and repair once, so agent code receives a checked value or a typed error. - [Test and debug](https://developers.manykind.ai/agents/code-agents/test-and-debug.md): Test a code agent in-process with testAgent and testPlatform from @manykind-ai/testing, run the local loop, read the agent's logs, and match common failure signals to causes. ## Agents: Building blocks - [Models](https://developers.manykind.ai/agents/building-blocks/models.md): How workflows and code agents use models — the catalogue, binding an alias to a model, writing its input, calling it from a model step or from ctx.models, metering, and failures. - [GPU units](https://developers.manykind.ai/models/gpu-units.md): What a GPU unit measures, how a model's pricing turns each call into GPU units, and where to read them per model and per caller. - [Cubbies](https://developers.manykind.ai/agents/building-blocks/cubbies.md): The SQLite databases an Agent Service's workflows and code agents share — what a cubby is, how a workflow's cubby steps and a code agent's ctx.cubby use it, and when to use the Memory Bank instead. - [Cubby schema and migrations](https://developers.manykind.ai/agents/building-blocks/cubby-schema.md): The schema and migration guide for cubbies: where migrations live, when they run, the rules that keep every vault's copy in step, rebuilding a table, table conventions, and vector search. - [Widgets](https://developers.manykind.ai/agents/building-blocks/widgets.md): The UI an Agent Service ships — browser screens that act as the signed-in person, read the service's cubbies and the vault's Memory Bank, and how a workflow and a code agent each use one. - [Build a widget](https://developers.manykind.ai/agents/building-blocks/create-a-widget.md): Build a widget, a static web page that reads your Agent Service's cubbies and the vault's Memory Bank through window.WidgetRuntime, run it with mk dev, and ship it with an agent or with mk widget push. - [Visualize vault data](https://developers.manykind.ai/agents/building-blocks/visualize-vault-data.md): Render cubby rows and Memory Bank records in a widget, either with the built-in list, record, and dashboard kinds or with a custom page, and keep it live with subscribe. - [Onboard data with a widget](https://developers.manykind.ai/agents/building-blocks/onboard-data-with-a-widget.md): Capture form input and audio in a widget, upload it into the reader's vault, publish an event for your agent, and show the result, with the built-in submit kind or a custom page. ## Agents: Ship - [Push and deploy](https://developers.manykind.ai/agents/ship/push-and-deploy.md): Ship an agent or workflow: build it, push a version to your Agent Service's bucket, and deploy it with deployment records that choose which version runs for which audience, from the CLI or ROC. - [Connect to a vault](https://developers.manykind.ai/agents/ship/connect-to-a-vault.md): Connect an agent or workflow to a vault so it can run on that vault's data: from ROC or with the vault SDK, ship new versions to connected vaults, and set spend limits. ## Vaults - [Vaults](https://developers.manykind.ai/vaults/overview.md): The customer side of Manykind — what a vault is, who owns it, what it holds, and how scopes partition it. - [Sovereign data](https://developers.manykind.ai/vaults/sovereign-data.md): The idea Manykind is built on — the data belongs to the customer and stays in their vault, and your agents and workflows are guests that compute against it under a signed, scoped, revocable agreement. - [Connections and consent](https://developers.manykind.ai/vaults/connections-and-consent.md): How an agent or workflow gets access to a vault — the agreement the owner signs, what the platform checks at connect time, and how access ends. - [Memory Bank](https://developers.manykind.ai/vaults/memory-bank.md): The vault's durable, privacy-classified record of what its agents and workflows learned — what it holds, how knowledge gets in (workflows write cubbies, curators propose, people accept), how agents, workflows, apps, and LLM agents read it, and what ROC shows. - [Build on the Memory Bank](https://developers.manykind.ai/vaults/build-on-the-memory-bank.md): How a workflow learns from the vault's Memory Bank and contributes to it — workflows write cubbies, curators propose, people accept, workflows read what was accepted. - [Connectors](https://developers.manykind.ai/vaults/connectors.md): Vault-level connections to outside systems — Slack, email, Telegram, and MCP servers — how to add one in ROC, how its secrets are held, and how workflows use it as a trigger or an action. - [Members](https://developers.manykind.ai/vaults/members.md): Who can do what in a vault — the owner, members and their roles, per-scope grants, and privacy ceilings. - [Data and trust](https://developers.manykind.ai/vaults/data-and-trust.md): Where every kind of data lives on Manykind, who owns it, and what proves each boundary crossing — so you know where to put things and what your code can and cannot reach. - [Data onboarding](https://developers.manykind.ai/vaults/build-on-a-vault/data-onboarding.md): The routes by which data lands in a customer's vault — another app, a widget, your own app, a connector, a webhook, or a server integration — and why your agents and workflows do not depend on which one was used. - [Work with the Vault SDK](https://developers.manykind.ai/vaults/build-on-a-vault/work-with-the-vault-sdk.md): Use @manykind-ai/vault-sdk from a browser, mobile, or Node app to open a vault, publish events and objects, connect agents, and read cubbies, the Memory Bank, and runs. - [Onboard from your app](https://developers.manykind.ai/vaults/build-on-a-vault/onboard-data-from-an-external-client.md): Write a person's own data into their vault from a web, mobile, or server app with @manykind-ai/vault-sdk, so the agents and workflows they connect can compute on it. - [Build a vault integration](https://developers.manykind.ai/vaults/build-on-a-vault/build-a-vault-integration.md): Build a headless server process that syncs an outside source into a customer's vault, or exports from it, on their behalf under a scoped, revocable delegation token. - [Build a Node vault client](https://developers.manykind.ai/vaults/build-on-a-vault/external-vault-client.md): A tutorial — build a Node.js script that opens a vault, connects an agent, sends it a message, reads its reply and cubby, and follows the run, with @manykind-ai/vault-sdk. ## Reference (part 1) - [CLI (@manykind-ai/cli)](https://developers.manykind.ai/reference/cli.md): Every mk command and flag in @manykind-ai/cli 5.0.0: output modes, errors and exit codes, and init, build, validate, push, deploy, run, runs, vault inspect, schema, help, eval, and the rest. - [Agent SDK (@manykind-ai/agent-sdk)](https://developers.manykind.ai/reference/agent-sdk.md): Reference for @manykind-ai/agent-sdk 5.12.1: decorators, the Context surface, defineAgent, defineWorkflow, isWorkflow, and the workflow runner entry. - [Vault SDK (@manykind-ai/vault-sdk)](https://developers.manykind.ai/reference/vault-sdk.md): Reference for @manykind-ai/vault-sdk 5.9.0: construction, auth, the Vault handle, scopes and events, objects, agents and connections, jobs, memberships, and errors. - [Widget runtime (@manykind-ai/widget-runtime)](https://developers.manykind.ai/reference/widget-runtime.md): Reference for @manykind-ai/widget-runtime 2.4.5: window.WidgetRuntime, built-in kinds, the widget manifest, sign-in, the host contract, and library exports. - [@manykind-ai/testing](https://developers.manykind.ai/reference/testing.md): API reference for @manykind-ai/testing: testAgent for one agent, testPlatform for agents and workflows against a simulated vault, mock agents and models, fetch and object-store fakes, and fault injection. - [@manykind-ai/eval](https://developers.manykind.ai/reference/eval.md): API reference for @manykind-ai/eval: the browser-safe library behind ROC Evaluations and mk eval, with dataset storage, case capture, scoring, experiments, and comparison. - [ESLint plugin (@manykind-ai/eslint-plugin)](https://developers.manykind.ai/reference/eslint-plugin.md): Reference for @manykind-ai/eslint-plugin 1.0.0: the recommended config and each rule, which show mk build's checks in your editor. - [Limits](https://developers.manykind.ai/reference/limits.md): The hard limits the platform enforces on webhooks, events, schedules, connector actions, workflow steps, cubbies, logs, and evaluations, with what happens when you hit each and what to do. ## Reference (part 2) - [Errors](https://developers.manykind.ai/reference/errors.md): Error codes and failure messages from the vault API, the SDKs, the Manykind CLI, deployments, and runs, with what each means and what to do. - [Glossary](https://developers.manykind.ai/reference/glossary.md): Definitions of the core Manykind terms — Agent Service, vault, connection, workflow, agent, Memory Bank, connector, Job, scope, and more — with links to the pages that cover each. - [Build with AI](https://developers.manykind.ai/reference/build-with-ai.md): 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.