General concepts¶
An agentic platform is a system to augment a language model with tools, memory, and instructions to work through a task across multiple steps. Each component below plays a specific role in that system.
Model¶
A large language model (LLM) trained on large amounts of text. Models are trained once; the result is a fixed set of weights that determines how the model responds.
Context window¶
The information loaded into a model at runtime. It augments what the model was trained on and gives it what it needs to complete the task at hand. Measured in tokens: input tokens are what goes in, output tokens are what the model produces. Most frontier models today support around one million tokens, and keeping context within that limit is a core constraint in any agent system.
Prompt¶
The initial set of instructions loaded into the context window. It describes the model's role, responsibilities, and guardrails. The prompt is static and loaded once at the start of each agent run.
Tool¶
An executable piece of code the model can call. Tools are registered at the start of the agent run and the model decides which ones to invoke based on the task. Tools can be local, operating within the same environment (reading or writing to the filesystem, for example), or remote, communicating with an external service like a CRM or data warehouse. Remote tools are packaged inside an MCP (Model Context Protocol) server and typically require authorization. Mash ships a set of built-in local tools and an interface for registering custom local and remote MCP server tools.
A shell is a local tool with a wider reach than the rest. The model writes each command itself, so it can install packages, write and run scripts, and keep files between steps. Because that code comes from the model, it usually runs in a sandbox.
Sandbox¶
An isolated environment where the code a model writes runs, typically a container or virtual machine with its own filesystem. It is kept apart from the agent's credentials, the application's data, and other users' work, and commands in it run as an unprivileged user. Files the model writes persist in the sandbox, so later steps and later sessions can build on them. A platform can give each user their own sandbox, start a fresh one per session, or share one across an agent's users. In Mash, each policy gets its own sandbox, with a folder per agent.
Browser¶
A web browser the agent drives through tools: it opens pages, reads them, clicks, types and downloads files. Most agent browsers read a page as its accessibility tree, a text outline of the page's elements, and some also look at screenshots. The browser's profile keeps cookies, so a site the user signed in to stays signed in for later tasks. That makes the profile a credential, and platforms keep it apart from the code the model writes and limit which sites an agent may open. A site that needs a sign-in is usually handed to the person, who signs in through a view of the same browser. In Mash, each policy gets its own browser, shared by the agents running under it.
User¶
The person an agent works for in a given request. The application identifies who that is, and that identity decides what the request can reach: past conversations, memory, a sandbox and a browser. When one agent hands work to another, the second works for the same people. Mash has no user record: the app each event names scopes memory, and the policy scopes the sandbox and the browser.
Skill¶
A markdown file containing instructions for a specific task. Each skill has a short frontmatter description and the full instructions below it. Only the frontmatter is loaded into the context window at startup; the model pulls in the full instructions only when the task calls for them. This is called progressive disclosure. A skill has no code to execute; it is instructions the model reads and follows. Skills live in a folder that gets registered with Mash.
Memory¶
What an agent keeps beyond one conversation: facts, preferences and past exchanges it can draw on in a later session. It is usually stored outside the model and reached through a tool or loaded into the prompt. In Mash, memory belongs to the app, and Cortex builds it from the app's conversations.
Conversation¶
Models are stateless. To preserve continuity within a session, the back-and-forth between user and model is chained together and loaded into the context window. Long conversations can exceed the context window limit, so they are capped to recent turns or compacted: summarized into a shorter form once they pass a token or turn threshold. In Mash, every agent in a conversation reads its shared board, which is compacted by size.
Provider¶
An inference provider that hosts and serves a model. Each provider exposes its own API. Mash supports OpenAI, Anthropic, and Gemini out of the box. Open-source models including Gemma, Qwen, DeepSeek, and Llama can be served locally or through a hosted gateway like OpenRouter. Mash ships a general-purpose provider that works with any endpoint supporting the OpenAI Chat Completions API.
Agent¶
A specification that combines a prompt, tools, skills, memory, and a provider. Together they give the model what it needs to work through a large, multi-step task. Each step in the process is a turn; the full sequence is the agent loop. Individual turns can run autonomously or pause for human input. Because the loop can be long-running and run in the background, durability matters: retries, resumability, replays, and observability.
Every agent framework offers its own way to define an agent spec and execute the loop. Mash provides a Python SDK for authoring agents and runs each request on a loop that records every step in an event log in Postgres.
To make the spec concrete, here is what a Morning Brief agent looks like, one that assembles a personalized daily digest:
- Prompt: the agent's role and the brief format it should produce
- Tools:
web_searchto pull local news,slack_digestto fetch unread messages,rss_feedto check for new episode drops from subscribed creators - Skill: instructions for curating the brief, including how to weight topics by the past seven days of engagement data and how to lay out the output
- Memory: stores past briefs and engagement signals so each new brief can reflect what the user has actually read and followed up on
- Sandbox: where it runs the scripts it writes to parse feeds and score topics, and keeps their files for the next morning
- Provider: the model provider of your choice
Events¶
Events let you observe the agent loop while it is running. Each event has a defined schema and is recorded in the database. Common events include tool calls, model invocations, and terminal states. Events are sequential and ordered, which underpins the durable execution model. Mash names its events after the OpenTelemetry spans they start and end, so a request's events read as a trace; see Durable Agent Loop.
Host¶
A host is a set of agents deployed together. It is the bridge between a user application and one or more agents. A host holds agents and workflows, all as equal members, and a router decides for each message which of them handle it. Workflow agents run a deterministic sequence of tasks and return structured output.
Host is a Mash-only concept for structuring how applications interface with agents. The interaction model between user application, host, and agents is governed by the H2A Protocol. Putting agents behind a host means you can add or remove agents without changing the application. Hosts are self-hosted services, accessible over HTTP or via the CLI. The host is also the trust boundary: the application tells it which app and policy each request acts under.
Eval¶
A dataset of test inputs plus a weighted scoring rubric to evaluate the host. There are two types of evals: Synthetic evals are generated based on the host's declared capabilities and used for evaluating before any real traffic exists and Live evals are generated from traces of real user traffic when they exist.
Each eval run is an Experiment that takes a given Eval configuration and current snapshot of the host's agents and measures deterministic operational metrics (latency, tokens, steps) alongside qualitative criteria scored by an LLM judge. Experiments can then be compared against each other to see the relative performance difference between two sets of changes.
Mash Python SDK for building agents, a runtime for deploying and managing a Host with its agents and their sandboxes, and exposes an interface for embedding agents into any application.