# Mindset docs > An agent framework with optimization at its core. Docs, demos, skills and the platform deck for Mindset: an agent framework with optimization at its core. Every link below is the markdown mirror of a page on this site; drop the `.md` for the HTML page. ## Docs - [Documentation](https://docs.mindset.ai/docs.md): Mindset delivers AI by using AI. Your builders build agents with a coding agent, and your operators run them in production from their AI client. Both work through Mindset's MCP server on one platform, and people decide what goes live. ### How it works - [How Mindset fits together](https://docs.mindset.ai/docs/how-mindset-fits-together.md): Mindset holds your agents and the plumbing they run on. Builders and operators change it through the MCP server, and your product reaches agents through the SDK and API. - [Agents](https://docs.mindset.ai/docs/agents.md): An agent is a prompt, a model and, optionally, a script. It uses only the connections, functions, widgets and other agents you give it. - [Scripts](https://docs.mindset.ai/docs/scripts.md): A script holds an agent to an order of phases, each with a gate it must pass. Most agents don't need one. - [Connections and operations](https://docs.mindset.ai/docs/connections-and-operations.md): A connection links Mindset to one outside system and holds its credential. Operations are the single reads and writes agents make through it. - [Functions](https://docs.mindset.ai/docs/functions.md): A function runs fixed steps and returns one answer. Agents call functions as tools, for work with one right answer. - [Widgets](https://docs.mindset.ai/docs/widgets.md): A widget is a table, card, form or chart an agent shows in a conversation, filled with data each time. - [Versions, testing and going live](https://docs.mindset.ai/docs/versions-and-going-live.md): Saving records a version. Activating or publishing puts it in front of people, and the go-live gate refuses one that calls an untested operation. - [Runs](https://docs.mindset.ai/docs/runs.md): A run is one execution of an agent, from what started it to how it ended. - [How agents are started and reached](https://docs.mindset.ai/docs/how-agents-are-started-and-reached.md): An agent's availability is one switch and a checkbox for each way in, deciding what can start the agent and who can reach it. - [Environments](https://docs.mindset.ai/docs/environments.md): An environment is a named partition of your org, such as Sandbox or Production, with its own agents, connections and API keys. - [Sessions and trust](https://docs.mindset.ai/docs/sessions-and-trust.md): A session lets a signed-in user of your app talk to one agent from your page, while your org API key stays on your server. - [Security and approval](https://docs.mindset.ai/docs/security-model.md): The rules Mindset enforces for every agent with no setup, how write operations are approved, how credentials are kept and where your data goes. ### Builders - [Get started](https://docs.mindset.ai/docs/get-started.md): Takes you from a new org to an agent running in your product, with your coding agent doing the building through Mindset's MCP server. - [Keep your agents in your code](https://docs.mindset.ai/docs/keep-your-agents-in-your-code.md): Keeps each agent's prompt, model, script, functions and widgets as files in your repo, and has your coding agent apply them to Mindset as versions. - [Start with your coding agent](https://docs.mindset.ai/docs/work-from-claude-code.md): Connects Claude Code, Cursor or another coding agent to Mindset, so it builds, tests and changes your agents for you. - [Work with the MCP server](https://docs.mindset.ai/docs/work-with-the-mcp-server.md): Has your coding agent read Mindset's current method before it builds, start from worked examples, and hand a person's decisions back to them. ### Builders: Bring your agents - [Move an agent from another framework](https://docs.mindset.ai/docs/move-an-agent-from-another-framework.md): Rebuilds an agent written with the OpenAI Agents SDK, LangGraph, CrewAI or your own code as a Mindset agent, kept as files in your repo. - [Turn a skill or spec into an agent](https://docs.mindset.ai/docs/turn-a-skill-or-spec-into-an-agent.md): Turns a Claude skill, a prompt file, a spec or an MCP server you already have into a Mindset agent and the resources it needs. ### Builders: Build - [Choose what to build](https://docs.mindset.ai/docs/choose-what-to-build.md): Decides which part of an agent's work goes in its prompt, a script, a function, a widget or another agent. - [Build an agent](https://docs.mindset.ai/docs/build-an-agent.md): Creates an agent with its prompt, model and resources, hands work between agents, and chooses where people can reach it. - [Connect a system](https://docs.mindset.ai/docs/connect-a-system.md): Lets an agent read from or write to one of your systems, through operations you choose. - [Post to Slack or send email](https://docs.mindset.ai/docs/post-to-slack-or-send-email.md): Lets an agent post to a Slack channel through your own Slack bot, or send email through your Postmark account. - [Add a function](https://docs.mindset.ai/docs/build-a-function.md): Gives an agent a fixed pipeline of steps it calls as one tool, for the part of its work that must come out the same every time. - [Show a widget](https://docs.mindset.ai/docs/build-a-widget.md): Gives an agent a table, card, form or chart it shows in a conversation, laid out the same way every time. - [Make it follow steps](https://docs.mindset.ai/docs/write-a-script.md): Gives an agent ordered phases for the part of its work that must wait or happen in order, including waiting for a person's answer. ### Builders: Test and ship - [Test before it goes live](https://docs.mindset.ai/docs/test-before-it-goes-live.md): Runs the test parameters of an agent's script and functions, runs its behavior tests, and keeps a change staged until they pass. - [Move it to Production](https://docs.mindset.ai/docs/move-it-to-production.md): Applies the same agent files to Production once Sandbox passes, with Production's own connections, credentials and API key. ### Builders: Put it in your product - [Put an agent on your page](https://docs.mindset.ai/docs/put-an-agent-on-your-page.md): Runs a Mindset agent in your web app with one backend endpoint and the mindset-agent element, in plain HTML, React or Vue. - [Use your own UI](https://docs.mindset.ai/docs/use-your-own-ui.md): Drives a Mindset agent from your own chat interface with the UI-less client, and draws its quick replies, cards and widgets. - [Let the agent act on your page](https://docs.mindset.ai/docs/page-tools.md): Lets an agent call functions in your page, tells it what the user is looking at, and fills in values the model must never choose. - [Layout and theming](https://docs.mindset.ai/docs/layout-and-theming.md): Sizes the mindset-agent element, puts it in a floating bubble or a side panel, and matches its colors and dark mode to your app. - [Start it from your server or a schedule](https://docs.mindset.ai/docs/start-it-from-your-server.md): Starts an agent from your backend, on a schedule or from another product's webhook, with no person in a chat. ### Operators - [See what happened](https://docs.mindset.ai/docs/check-what-happened.md): Finds out what an agent did, whether it ran as often as it should, and whether it uses what it was given. - [Diagnose and improve](https://docs.mindset.ai/docs/diagnose-and-improve-an-agent.md): Works out why an agent didn't do what you expected, and stages a fix as a version you test before it goes live. - [Test behavior](https://docs.mindset.ai/docs/test-an-agents-behavior.md): Proves every step of a script works, checks how an agent behaves across many runs, and compares a change before you make it. - [See and control cost](https://docs.mindset.ai/docs/see-and-control-what-it-costs.md): Shows what agents spend by agent, function, model, provider and user, and brings it down without making them worse. - [Change something that's live](https://docs.mindset.ai/docs/change-something-thats-already-live.md): Changes an agent people already use, tries it before they meet it, puts it live, and rolls back if it goes wrong. - [Approve what agents can do](https://docs.mindset.ai/docs/approve-what-an-agent-can-do.md): Decides which write operations agents can call, approves or withdraws each one once, and has a person decide single actions in Slack. - [Audit and personal data](https://docs.mindset.ai/docs/audit-and-personal-data.md): Shows an auditor what agents did and what protects them, and keeps personal data away from model providers. - [Roll out Mindset](https://docs.mindset.ai/docs/roll-out-mindset.md): Sets up your org, signs people in, makes the day-one decisions and takes the first agent to production, then keeps the fleet in shape. - [Use your agents from AI clients](https://docs.mindset.ai/docs/use-your-agents-from-claude-and-other-ai-clients.md): Calls your org's agents from Claude, Claude Code, Cursor or Copilot, and runs them on your own model provider keys. - [Host it yourself](https://docs.mindset.ai/docs/host-it-yourself.md): Runs Mindset inside your own AWS account, operates it from Backstage, and keeps it current release by release. ### Leaders - [Why Mindset](https://docs.mindset.ai/docs/why-mindset.md): Why a CTO or Chief Product Officer chooses Mindset, who it suits and who it doesn't. - [Compliance](https://docs.mindset.ai/docs/compliance.md): One compliance posture, set by your admins, that every agent follows whoever built it and however it's set up. - [Mindset for your security review](https://docs.mindset.ai/docs/mindset-for-your-security-review.md): The answers your security or procurement team will ask for, each linked to the page with the detail. ### Reference: MCP server - [MCP tools](https://docs.mindset.ai/docs/mcp-tools.md): Every tool on the mindset-admin MCP server, grouped by job, and the two tools on the users' mindset server. ### Reference: SDK - [The mindset-agent element](https://docs.mindset.ai/docs/the-mindset-agent-element.md): Reference for the drop-in chat element. Attributes, configure() fields, methods, events, error codes and theming. - [The UI-less client](https://docs.mindset.ai/docs/the-ui-less-client.md): Reference for driving a Mindset agent from your own interface. Loading, commands, events, state, conversation lists and page tools. - [Session API](https://docs.mindset.ai/docs/session-api.md): The server-to-server call that creates a session for one of your users: endpoint, request and response fields, attribution, and errors. - [Events reference](https://docs.mindset.ai/docs/events-reference.md): Every event an embedded agent sends while a turn runs and after it finishes, with each payload and how to handle it. - [Errors and resilience](https://docs.mindset.ai/docs/errors-and-resilience.md): Every way an embedded agent can fail, from the session call to a turn, and what your code should do about each one. - [Content security policy](https://docs.mindset.ai/docs/content-security-policy.md): The Content-Security-Policy directives a page needs to run an embedded Mindset agent, with a ready policy to copy. - [SDK versions and updates](https://docs.mindset.ai/docs/sdk-versions-and-updates.md): How the Mindset SDK updates itself, how to tell which build a page is running, and why the script must load only once. ### Reference: API - [Skills API](https://docs.mindset.ai/docs/skills-api.md): The server-to-server routes that keep an environment's Skills in step with the ones your system holds: endpoints, request and response fields, activating a version, enabling and disabling a Skill, listing, deleting, limits, errors and what version 1 promises. ### Reference: Product - [Connection types](https://docs.mindset.ai/docs/connection-types.md): Work out which of the seven connection types reaches a particular system, what each asks for, and what to do when a system fits none of them. - [Limits](https://docs.mindset.ai/docs/limits.md): The default limits on an agent turn, a scheduled firing, a function run, delegation, waits and recovery, and how to size a job against them. - [Org settings](https://docs.mindset.ai/docs/org-settings.md): Every security and data setting in Settings, where it is, its default, and what it does. - [Glossary](https://docs.mindset.ai/docs/glossary.md): Every term Mindset uses in the Studio and the SDK, with the invoice exceptions agent as the example, plus how the same words differ in Microsoft and Claude. - [Troubleshooting](https://docs.mindset.ai/docs/troubleshooting.md): Short answers to the problems and questions people hit in their first month with Mindset, each with the page to read next. ## Demos - [Demos](https://docs.mindset.ai/demos.md): Working Mindset agents you can try, read the source of, and see explained. - [Trip planner demo](https://docs.mindset.ai/demos/trip-planner.md): Plan a Lisbon trip that uses every feature, each one lit on the Features tab as it fires. - [Trip planner demo: source](https://docs.mindset.ai/demos/trip-planner/source.md): The code that makes the Trip planner demo work, walked through snippet by snippet. - [How the Trip planner demo works](https://docs.mindset.ai/demos/trip-planner/how.md): How the Trip planner demo is built, step by step. - [What’s wrong with this one? demo](https://docs.mindset.ai/demos/relay.md): Ask about a delayed shipment: an agent with no tools answers from what the page tells it. - [What’s wrong with this one? demo: source](https://docs.mindset.ai/demos/relay/source.md): The code that makes the What’s wrong with this one? demo work, walked through snippet by snippet. - [How the What’s wrong with this one? demo works](https://docs.mindset.ai/demos/relay/how.md): How the What’s wrong with this one? demo is built, step by step. - [Store assistant demo](https://docs.mindset.ai/demos/store.md): The agent filters an outdoor store’s product grid, points at its pick and fills your basket. - [Store assistant demo: source](https://docs.mindset.ai/demos/store/source.md): The code that makes the Store assistant demo work, walked through snippet by snippet. - [How the Store assistant demo works](https://docs.mindset.ai/demos/store/how.md): How the Store assistant demo is built, step by step. - [Add a new employee demo](https://docs.mindset.ai/demos/admin-form.md): A copilot fills a long HR form field by field, flags a salary outside its band and leaves Save to you. - [Add a new employee demo: source](https://docs.mindset.ai/demos/admin-form/source.md): The code that makes the Add a new employee demo work, walked through snippet by snippet. - [How the Add a new employee demo works](https://docs.mindset.ai/demos/admin-form/how.md): How the Add a new employee demo is built, step by step. - [Ask your data demo](https://docs.mindset.ai/demos/ask-your-data.md): Ask sales questions and a dashboard draws the answers from what the agent’s functions return. - [Ask your data demo: source](https://docs.mindset.ai/demos/ask-your-data/source.md): The code that makes the Ask your data demo work, walked through snippet by snippet. - [How the Ask your data demo works](https://docs.mindset.ai/demos/ask-your-data/how.md): How the Ask your data demo is built, step by step. - [Guided intake demo](https://docs.mindset.ai/demos/guided-intake.md): A home insurance claim runs through fixed phases, moving on only when each gate passes. - [Guided intake demo: source](https://docs.mindset.ai/demos/guided-intake/source.md): The code that makes the Guided intake demo work, walked through snippet by snippet. - [How the Guided intake demo works](https://docs.mindset.ai/demos/guided-intake/how.md): How the Guided intake demo is built, step by step. - [Widget round trip demo](https://docs.mindset.ai/demos/kettle.md): The agent offers a grind picker in the chat, and your tap changes the coffee page in reply. - [Widget round trip demo: source](https://docs.mindset.ai/demos/kettle/source.md): The code that makes the Widget round trip demo work, walked through snippet by snippet. - [How the Widget round trip demo works](https://docs.mindset.ai/demos/kettle/how.md): How the Widget round trip demo is built, step by step. - [Help widget demo](https://docs.mindset.ai/demos/widget.md): A billing help agent reads charges over MCP and stops at a refund nobody has approved. - [Help widget demo: source](https://docs.mindset.ai/demos/widget/source.md): The code that makes the Help widget demo work, walked through snippet by snippet. - [How the Help widget demo works](https://docs.mindset.ai/demos/widget/how.md): How the Help widget demo is built, step by step. - [Plain HTML counter demo](https://docs.mindset.ai/demos/ferrier.md): A hardware store’s hand-made website mounts its counter with one script tag and one element. - [Plain HTML counter demo: source](https://docs.mindset.ai/demos/ferrier/source.md): The code that makes the Plain HTML counter demo work, walked through snippet by snippet. - [How the Plain HTML counter demo works](https://docs.mindset.ai/demos/ferrier/how.md): How the Plain HTML counter demo is built, step by step. - [Conversation list demo](https://docs.mindset.ai/demos/orbit.md): A returning customer reopens an earlier conversation about the same order instead of starting again. - [Conversation list demo: source](https://docs.mindset.ai/demos/orbit/source.md): The code that makes the Conversation list demo work, walked through snippet by snippet. - [How the Conversation list demo works](https://docs.mindset.ai/demos/orbit/how.md): How the Conversation list demo is built, step by step. - [Halcyon demo](https://docs.mindset.ai/demos/halcyon.md): A sleep app draws the agent’s breathing widget as its own orb, with no Mindset UI on screen. - [Halcyon demo: source](https://docs.mindset.ai/demos/halcyon/source.md): The code that makes the Halcyon demo work, walked through snippet by snippet. - [How the Halcyon demo works](https://docs.mindset.ai/demos/halcyon/how.md): How the Halcyon demo is built, step by step. ## Skills - [Skills](https://docs.mindset.ai/skills.md): SKILL.md files that teach a coding agent to work with Mindset. Download one, or copy it to the clipboard. ## Decks - [Decks](https://docs.mindset.ai/deck.md): Build your difference, not your plumbing, Launch is day one ### Build your difference, not your plumbing - [Build your difference, not your plumbing · Build your difference, not your plumbing](https://docs.mindset.ai/deck/build-your-difference/title.md): Spend your developers on what makes you different. - [You’ve promised customers agents. The date keeps moving · Build your difference, not your plumbing](https://docs.mindset.ai/deck/build-your-difference/the-promise.md): Assistants in your product that act for the user: answer from their data, fill in a form, run a report. - [The first agent is easy. The last ten per cent takes all the time · Build your difference, not your plumbing](https://docs.mindset.ai/deck/build-your-difference/the-last-ten-per-cent.md): Any competitor can build the same pilot. - [Most of an agent is plumbing · Build your difference, not your plumbing](https://docs.mindset.ai/deck/build-your-difference/the-plumbing.md): Every agent needs it. Almost none of it makes you different. - [Everything joins the same queue · Build your difference, not your plumbing](https://docs.mindset.ai/deck/build-your-difference/the-queue.md): - Only developers can change an agent - Every customer wants its own version - Every security review becomes a project - Nobody can see what is going wrong - [Would a customer choose you because of it? · Build your difference, not your plumbing](https://docs.mindset.ai/deck/build-your-difference/the-test.md): If not, it’s plumbing. Building it yourself only makes you later. - [Rent the plumbing. Build the difference · Build your difference, not your plumbing](https://docs.mindset.ai/deck/build-your-difference/rent-the-plumbing.md): Keep every agent’s design in your own hands. - [Five things to insist on · Build your difference, not your plumbing](https://docs.mindset.ai/deck/build-your-difference/what-to-look-for.md): For leadership teams: why agents need a platform underneath them, and what to look for in one. - [Seven questions show where the time goes · Build your difference, not your plumbing](https://docs.mindset.ai/deck/build-your-difference/questions-for-your-team.md): 1. How much of next year goes on plumbing? 2. What happens when customers want their own version of an agent? 3. Can we keep a customer’s data where they need it? 4. Can we guarantee compliance, and p - [Nobody builds their own e-commerce platform any more · Build your difference, not your plumbing](https://docs.mindset.ai/deck/build-your-difference/boring-is-the-goal.md): Agent plumbing is going the same way. Spend your team on the difference, and hear it from a customer who has made the choice. ### Launch is day one - [Launch is day one · Launch is day one](https://docs.mindset.ai/deck/launch-is-day-one/title.md): Building an agent is the short job. Running it well is the long one. - [The web learned this. Launch was the easy part · Launch is day one](https://docs.mindset.ai/deck/launch-is-day-one/the-web-learned-this.md): Sites were built once. The work that mattered came after: analytics, testing, page speed, security. It never stopped. - [An agent is never finished · Launch is day one](https://docs.mindset.ai/deck/launch-is-day-one/never-finished.md): Customers ask new things, models change price, connected systems change and rules change. Each one moves how the agent performs. - [Three things to get right: cost, outcome, security · Launch is day one](https://docs.mindset.ai/deck/launch-is-day-one/three-things.md): And the speed people feel, which sits under all three. - [One loop, every week · Launch is day one](https://docs.mindset.ai/deck/launch-is-day-one/the-loop.md): See what happened, find what went wrong, change it, test it, put it live. Or roll it back. - [See what every agent costs, and bring it down · Launch is day one](https://docs.mindset.ai/deck/launch-is-day-one/cost.md): Spend by agent, model and person. Prove a cheaper model still passes before you switch. - [Prove a change is better before anyone meets it · Launch is day one](https://docs.mindset.ai/deck/launch-is-day-one/outcome.md): Tests built from real conversations. Compare a change with the live version first. - [Set the rules once. Every agent follows them · Launch is day one](https://docs.mindset.ai/deck/launch-is-day-one/security.md): Personal data, approvals and record keeping, for every agent. An audit trail nobody can edit. - [Change a live agent without a product release · Launch is day one](https://docs.mindset.ai/deck/launch-is-day-one/change-without-a-release.md): Every change is a version: try it, test it, put it live, roll it back. - [Build it once. Improve it for as long as it runs · Launch is day one](https://docs.mindset.ai/deck/launch-is-day-one/close.md): Start with one agent: who owns it, how it’s tested and what it costs. ## Optional - [Full text](https://docs.mindset.ai/llms-full.txt): every page above in one file