Launch Flow

Whitepapers

Agent Harness

The Fontana Agent Harness

How an AI agent keeps working on a task until it is done, on models you choose, inside the permissions of the person it works for.

Technical whitepaper
Oleg Skrinda · November 2026

Executive summary

The Fontana Agent Harness is the runtime in which a language model operates as an agent. A model on its own answers one request. The harness supplies tools, executes them, returns the results to the model, and repeats until the task is complete. It manages what the model reads, so that a long task stays within the model's limits. It determines which model is called and with whose key, and it runs every action with the permissions of the person on whose behalf the agent works.

The harness is one of the three parts of Fontana, an AI platform that runs in your cloud account, in Fontana's managed cloud, or on your own hardware. The Knowledge Graph holds what your organisation knows. Workspaces is where a team builds workflows that process data. The Agent Harness is the runtime in which agents work on both, and it is the subject of this paper.

  • Work continues until the task is complete

    One message can start dozens of steps. The agent plans, calls tools in parallel, waits for a run or a person where necessary, and continues without further prompting. A schedule or an event can start it with no person in the conversation.

  • Context is managed on every step

    Stale tool results are evicted, old conversation is summarised, and goals are kept. The agent can also evict material it no longer needs, and keep a short extract in its place.

  • A computer, a browser, and a voice

    An agent can run code on a short-lived computer, operate a web page in Fontana Browser, read its replies aloud, and answer in Slack, Microsoft Teams, and email.

  • Control stays with your organisation

    Your organisation chooses the models and holds the keys. Every call runs as the person who asked, is recorded, and counts against a spending cap. An action can be made to wait for a person's approval before it happens.

The sections that follow explain each of these in the order a task encounters them: the agent, one turn, the loop, context, tools, and then the controls that apply throughout.

Docs:Agent Harness overview

Introduction

A language model is a function from text to text. It keeps no memory between calls, it cannot open a file, and it reads only a fixed amount of text at once. Useful work is rarely a single question and answer. Reconciling two reports means reading both, running a comparison, checking the differences, and writing up the ones that matter.

An agent harness is the software that bridges this gap. It lets the model request an action, performs the action, returns the result, and asks the model for its next step. The quality of a harness determines what an agent can be trusted with: whether it completes a long task, whether it retains the goal after an hour of work, whether it can wait for an event without a chat window held open, and whether the record afterwards shows what it did.

An organisation has a second set of concerns: whose authority the agent uses, which documents it can open, which model reads the text and under whose contract, and who can stop it. The Fontana Agent Harness addresses both sets in one runtime.

Where the harness sits

Fontana is an AI platform with three parts, run and governed as one. The Knowledge Graph holds documents, data, and the citations an answer is built from. Workspaces is where a team turns a process into a workflow that runs again on new data. The Agent Harness, the subject of this paper, is the runtime in which agents work. People use all three in Flow, the Fontana web application. The Knowledge Graph whitepaper and the Workflow Engine whitepaper describe the other two. This paper can be read independently of them.

Who this paper is for

This paper is written for architects, engineers, and the security and risk teams who review how an AI agent runs, what it can reach, and what it leaves behind. It assumes no prior knowledge of Fontana.

How this paper is organised

The paper begins with what an agent is and what happens in one turn. It then follows a long task: the loop that keeps the agent working, the task list that holds the plan, and the context management that keeps a long thread within the model's limits. Next come the resources an agent can use: tools, memory, skills, a computer, and a browser. The final part covers how an agent is started, which models it runs on, how it speaks, where it answers, and how it is approved, permitted, and measured.

Key terms

These terms recur throughout the paper. Later sections introduce their own vocabulary where it is first used.

TermMeaning
AgentAn AI that works on a person's behalf, inside that person's permissions. It is stored as a folder of files that can be read and edited.
ModelThe language model an agent thinks with. The agent is the instructions, tools, and limits around it. The model is replaceable.
ThreadOne conversation with an agent: the person's messages, the agent's replies, and every tool call with its result.
TurnThe agent's work in response to one trigger, such as a message, a schedule, or a workflow step. A turn can take many steps.
StepOne call to the model. A step ends in a reply, or in a request for one or more tool calls.
ToolA function an agent calls by name, such as a search, a workflow run, or a file read. Each call is checked and recorded.
ContextThe text sent to the model on one step: instructions, the conversation so far, and the results of earlier tool calls.
TokenThe unit in which a model measures text. Model limits and model costs are both counted in tokens.
SkillA procedure an agent opens when the work calls for it: a SKILL.md file plus the references and scripts it needs.
WorkspaceAn organisation's Fontana environment: its people, agents, files, workflows, and secrets.
NamespaceA named library of files inside a workspace, with its own access list. Agents, skills, documents, and saved threads are all stored in namespaces.
GatewayThe connection through which Fontana calls a model provider. Administrators approve which gateways and models a workspace may use.
VaultThe workspace's own store for keys and passwords. A key is written once and read when a call needs it.
MCPThe Model Context Protocol, an open standard through which AI clients and agents call tools.
FlowThe Fontana web application, where people chat with agents and build workflows.

What an agent is

An agent is a folder of files. Any folder that holds an AGENT.md file is an agent. That file is the agent's brief. The files beside it hold its schedules and anything else it needs. Because an agent is a folder, it can be read, edited, copied, and compared with any of its earlier versions.

PartContents
InstructionsAGENT.md: a short header of settings, then the brief the agent follows, written in Markdown. The brief covers the role, who the agent serves, the steps it takes, and when it hands off.
AbilitiesWhat the agent may do, switched on one by one: search the Knowledge Graph, query workflow data, read and write files, find and run workspaces, send and receive email, post in Slack or Microsoft Teams, browse the web, use a terminal session, delegate to other agents, plus one ability per connected MCP server.
SkillsThe procedures the agent may open. Each skill is granted by name.
Schedulesschedules.json: the times and events that start this agent without a message.
Model settingsAn optional model override, the reasoning effort, sampling settings, and the voice the agent speaks with.
Context strategyHow much of a long thread the agent carries, and when it trims. Default, or custom limits per agent.

The id of an agent is its namespace plus its folder path, such as finance/agents/nav-analyst. If a saved file cannot be read, the agent keeps running on its last valid version, and the error remains visible until a valid file is saved.

  • A new agent starts with three abilities: search the Knowledge Graph, use a terminal session with no internet access, and delegate to other agents. Every other ability is granted explicitly.
  • Fontana ships a general agent, a workflow agent, and agents for images, audio, and video, together with an Agent Library of more than 75 pre-built agents across 12 business areas.
  • An agent can be edited from the Agents page in Flow, from the file browser, or by another agent on request. Each edit is a new version of the file.

Docs:AgentsAuthor agents

One turn

A turn is the agent's work in response to one trigger. Most turns start with a message from a person. A turn can equally start from a schedule, an event, an email, or a step in a workflow.

One agent turnYou send a message. The agent works on your behalf, inside your permissions and its own allow-list. It calls tools, such as search, workflows and files. Every call is written to the activity log.YOUYouthe person who askedAGENTAgentyour permissions, its toolsTOOLSToolssearch, workflows, filesRECORDActivity logevery call, linked to you
Figure 1. A turn runs as the person who asked. The tools it may call are the ones that person can use and that this agent was given. Every call is recorded.
  1. Flow sends the message with the context of the current page: the open workflow, the selected steps, the document, or the agent being edited. With auto-search on, matching passages from the Knowledge Graph accompany it.
  2. The agent works. It calls tools, reads their results, and decides what to do next. Each tool runs as the person who sent the message, inside that person's permissions.
  3. A change with consequences waits for that person's approval, in a structured form, before it happens.
  4. The agent replies. An answer built on the organisation's documents cites the namespace and the path of every source it used.
  5. The thread is saved to the person's own threads namespace as files: one folder per conversation, with one Markdown file per turn. It can be opened like any other document.
  6. The activity log records each tool call, the person it ran for, and whether it was allowed.

Docs:AgentsActivity log

The agentic loop

A turn is a loop of model calls. The model takes a step and requests tool calls. The harness runs them, saves the results, and starts the next step automatically. The loop repeats until the model replies without requesting another tool, so a single message can drive an extended piece of work.

The agentic loopA message, a schedule or an event starts a turn. The model takes a step and asks for tool calls. The calls run and their results are saved. The next model step starts by itself, and the loop repeats until the work is done. When a step asks for no tool, the agent replies and the thread goes idle. When a call has to wait for a person, a timer or a workflow run, the turn is parked and resumes when the answer arrives.NEXT STEP, UNTIL THE WORK IS DONESTARTA triggermessage, schedule, eventSTEPModel stepdecides what to do nextTOOLSTool callsrun side by sideRESULTSResults savedeach call recordedREPLYReplyno more calls: idleWAITParkeda person, a timer, a runRESUMES
Figure 2. The loop. Each step is saved before its tools run. The next step starts when the results are in, with no person in between. A call that has to wait parks the turn, and the turn resumes when the answer arrives.

Three properties make the loop dependable.

  • Every step is saved first. The model's step and the tool calls it asked for are written to the thread before any tool runs. The stored thread is therefore always an accurate record of how far the work has progressed.
  • Tools run outside the model call. The model is not held open while a tool works. A tool can take a second or a day, and no model is running while it does.
  • Exactly one continuation follows. When every call in a batch has settled, the thread resumes once. Two results arriving at the same moment do not start two steps.

What makes a turn continue

A turn needs no prompt to continue. It resumes automatically when the event it was waiting for occurs.

EventEffect
A tool call finishedThe results of the batch are saved, and the next step starts.
A person answeredA form the agent presented, or a secret it asked a person to set, is returned, and the turn resumes with the answer.
A wait endedA timer the agent set has run out, or the workflow run it was waiting for has finished.
A sub-agent finishedA delegated task returns its result to the parent thread.
A task closedThe server promotes the next task in the list, and the agent carries on with it.
A budget was extendedA long turn in an open chat gets more steps, and continues where it was.

Messages during a turn

A person can send a message while a turn is in progress. The send mode determines its effect.

ModeBehaviour
AutoThe default. A new message interrupts while the agent is writing, and steers while tools are running.
SteerThe message joins the turn in progress, and the agent reads it on its next step.
InterruptThe agent stops its current work and answers the new message.
QueueThe message waits in a queue. One queued message is sent each time the agent goes idle, and stopping the agent pauses the queue.

Stopping and recovering

  • Stopping a turn ends the loop. Calls that are already running are allowed to settle, and no further step starts. A single pending tool call can also be cancelled. That call is recorded as cancelled, and the turn continues with the rest.
  • A turn has a step budget, 50 steps by default. An open chat extends the budget as the work continues, unless the turn was stopped.
  • If the server restarts in the middle of a turn, the thread recovers. Calls that never received an answer close with a visible error, and a message sent in the meantime is answered once the thread is idle.

Docs:AgentsTools and MCP

Task lists and long work

The loop keeps an agent working, and a task list keeps that work directed. For work of more than a few steps, the agent writes its plan as a tree of tasks and closes them one by one. The list is displayed in the conversation as it changes.

ToolPurpose
system_createTaskTreeWrites the plan: a tree of tasks, up to three levels deep.
system_addSubtasksUnderActiveTaskSplits the active task into smaller ones when it proves larger than planned.
system_addSubtasksUnderParentAdds work under another task in the tree.
system_closeTaskCloses a task with a reason and a result. Closing a parent cancels its unfinished children.

The server, and not the model, determines which task is active. After each message from the person, the agent is shown the list in three groups: done, do now, and pending. When the agent closes a task, the server promotes the next one, and the loop continues with it. The agent's position in the plan is held by the server, so it does not depend on what the model retains.

  • Closing a task needs a reason and a result, so the list doubles as a record of what was done and what came of it.
  • A finished list is kept as one line in the agent's durable state, for the ten most recent. An agent asked "what did you do this morning?" can answer after the detail has left its context.
  • The plan is not part of the text that gets summarised or evicted. It is rebuilt from the stored list on every step.

Docs:Author agents

Context management

Every model has a limit on how much text it can read in one call, and every token it reads is paid for. A working agent fills that space quickly. One file read can be thousands of lines. A query can return hundreds of rows. After thirty tool calls, most of what the model reads is material it no longer needs.

A common approach is to wait until the thread is full and then summarise all of it. That discards detail the agent still needs, and it adds a model call when the thread is already at its limit. Fontana manages context on every step. The harness knows the role of each part of the thread, so it keeps what is needed, drops what is stale, and summarises only the remainder.

How an agent's context is kept smallOne model request holds five parts. The instructions are sent unchanged on every step. The conversation is summarised when the thread is over its limit, and the summary is kept as durable state. The working set of tool results and evidence is evicted first, by the runtime or by the agent itself, leaving a stub or the agent's own extract. Durable state holds the goals and the finished tasks. Live state holds the open skills and the current task, and is rebuilt on every step.ONE MODEL REQUESTHOW IT IS KEPT SMALLINSTRUCTIONSBrief, skills list, tool guidancesent unchanged on every stepCONVERSATIONYour messages and the agent's repliesplus the name of each tool calledWORKING SETTool results and evidencefile reads, query rows, search resultsDURABLE STATEGoals, decisions, finished tasksone block after your latest messageLIVE STATEOpen skills and the current taskrebuilt on every stepSUMMARYSummarised when over the limitconversation text onlyEVICTIONEvicted firstby the runtime, or by the agent itselfTHE SUMMARY BECOMES DURABLE STATE
Figure 3. What one request to the model holds, and how each part is kept small. Tool results are evicted first. Conversation is summarised only when the thread is still over its limit, and the summary joins the durable state.

Five parts, managed separately

PartContentsHow it is managed
InstructionsThe agent's brief, the list of skills it may open, and its tool guidance.Sent unchanged on every step. A provider that caches repeated input can reuse it instead of reading it again.
ConversationThe person's messages and the agent's replies, with the name of each tool it called.Kept in full until the thread is over its limit. Then the oldest part is summarised.
Working setThe results of tool calls: file contents, query rows, search results, Knowledge Graph evidence.Evicted first. This is the largest part of a long thread and the part that goes stale fastest.
Durable stateGoals, decisions, the latest summary, and one line per finished task list.A compact block placed after the person's latest message. It survives every eviction and every summary.
Live stateThe skills that are open, the current task list, and any notice about context size.Rebuilt on every step, so it is always current and never accumulates.

Before each step

  1. The harness builds the request and measures it.
  2. If it is over the agent's compress target, an eviction pass drops stale material from the working set.
  3. If it is still over the token limit, the oldest conversation text is summarised, and the summary joins the durable state.

The measurement follows the token count the model provider billed for the previous step, so tables, code, and other dense output count at their real size and not at an estimate.

Automatic eviction

Eviction follows fixed rules. It does not call a model, so it is immediate and incurs no model cost.

RuleWhat is dropped
A file was read againThe older read is dropped, because the newer one is current.
A file was written againThe earlier write is dropped once a later one exists.
A tool result has aged outTool results older than the retention window are dropped. The window is 12 rounds of tool calls by default.
Knowledge Graph evidence has agedAfter 3 turns by default, an evidence body collapses to its index line. The agent can reopen it by its id.
A result is larger than the whole budgetIt is not sent. The agent sees a stub asking it to call the tool again with narrower arguments.
  • An evicted result leaves a short stub that names the tool, what it was called on, and how large the result was, with a hint for running it again. The agent therefore always knows what was removed and how to retrieve it.
  • Eviction decisions are stored with the thread. The request the model sees is the same from one step to the next apart from what is new, so a provider that caches repeated input keeps reusing the earlier part.

Self-eviction

Fixed rules can establish that a result is old. They cannot establish that it is no longer needed. Only the agent knows, for example, that it has finished with the March statements and moved on to April. The agent therefore has a tool, system_evictContext, which it applies to its own working set.

The call names the tool results to drop, gives a one-line reason, and can carry an extract to keep. The extract is the agent's own distillation of what mattered: the two figures out of a four-hundred-row result, the one clause out of a long contract. It takes the place of the evicted material, marked as distilled, and is later folded into the summary.

{
  "refs": [{ "order": 14 }, { "order": 15 }],
  "reason": "March is reconciled. Only the two breaks matter from here.",
  "keep": "March breaks: account 1042 is short by 1,250.00 on 12 March. Account 2210 has a duplicate credit on 28 March."
}
  • Every tool result in the thread carries a label, such as [order=14], and Knowledge Graph evidence carries an id. Those are what the agent names.
  • The extract can be up to 4,000 characters. Evicting the same result again with a shorter extract, or with none, shrinks it or drops it.
  • The harness prompts the agent only when the request is large. When the packed request passes the self-eviction ceiling, 80,000 tokens by default, the agent is told by how much, and which results the next automatic pass would remove. It can accept that selection or make its own.
  • The agent can evict tool results and evidence. It cannot evict the conversation, its task list, or the results of its sub-agents.

The ceiling is set per agent, as a token count or as a percent of the model's window. An agent on a model with a small window can be set to stay within a tenth of it.

Summarising

Summarising is the final stage, and its scope is narrow. Only conversation text is summarised. Tool results and evidence never reach the summariser, because eviction has already handled them. A separate agent writes the summary in a fixed structure. The person's most recent messages are excluded from it, so the agent always has the latest request in its original wording.

  • A compaction is marked in the conversation, with the summary available behind the mark. It is recorded as an ordinary tool call, which shows why it ran, what it covered, and the token count before and after.
  • A compaction that fails is recorded as failed, and the next attempt covers half the range. A compaction with nothing to summarise is also recorded as failed.
  • Compaction keeps running when a spending cap has paused the chat, so a paused conversation can still be resumed.

Keeping context small from the start

  • Skills load progressively. The agent sees a line or two about each skill, opens the full procedure when a task calls for it, and reads supporting files one at a time.
  • Sub-agents do deep work in their own threads. The parent receives the result, and none of the reading that produced it.
  • The conversation shows the current context size and the size at each reply, so changes in context are visible.

Docs:AgentsAuthor agentsTools and MCP

Parallel calls and waiting

Two capabilities determine how much an agent can accomplish in one turn: performing several actions at once, and waiting for an action that takes longer than a chat reply. The harness provides both. One step can request several tool calls at once, and a call that needs time can park the turn for seconds or for days.

Parallel tool callsOne model step asks for three calls: a Knowledge Graph search, a workflow data query, and a sub-agent. The three run side by side, each with its own bounded wait. When every call has a result, a failure or a cancellation, the thread resumes once with all three results.STEPOne model stepasks for three callsCALL 1Knowledge Graph searchbounded waitCALL 2Workflow data querybounded waitCALL 3Sub-agentits own thread and contextSETTLEDAll settledresult or errorSTEPNext stepone resume
Figure 4. One step, three calls. They run side by side. The searches each have a bounded wait, and the sub-agent stays pending until its own thread finishes. The thread resumes once, when all three have a result, an error, or a cancellation.

Parallel tool calls

  • Calls from one step run at the same time and finish independently. Three searches take as long as the slowest one.
  • Each call has a bounded wait. A call that stalls or fails records a clear error for that call alone. The others are unaffected, and the agent decides what to do about the one that failed.
  • The bounds are settings an operator can change. The shipped defaults are 10 seconds for most tools, 20 seconds for Knowledge Graph tools, and 10 minutes for browser tools.
  • A single pending call can be cancelled. The turn continues with the results of the rest.

Waiting

Waiting is implemented as a tool call, so it follows the same rules as every other call. The turn is parked and does not poll. No model runs during the wait, and no browser window needs to stay open. When the wait ends, the loop resumes at the next step.

ToolWaits forBehaviour
system_waitA length of timePauses, then continues. One call can wait up to seven days. The agent uses it while a page loads, while a browser session is being prepared, or while a document is being processed.
workflow_waitForA workflow runParks the turn until a named run ends, or until the caller's newest run of a workflow completes. The default timeout is 30 seconds, and it can be set up to seven days. A timeout leaves the run untouched and tells the agent it timed out.
hitl_askHumanA personShows a form and waits for the answer. The form stays open for 24 hours.
A sub-agent callAnother agentStays pending until the child thread finishes. There is no time bound on it.

Together these allow an agent to start a workflow run, wait for it to finish, read the rows it published, and report, in one turn and without supervision.

Docs:Tools and MCPAuthor agents

Memory

Context is what an agent holds during one thread. Memory is what it keeps between threads. Each person has one private memory namespace, and every agent that person talks to can save to it and recall from it. Memory requires no setup.

FolderContents
personal/Facts about the person that the agent was asked to keep.
working-style/How the person prefers work to be done: formats, tone, and standing checks.
people/The colleagues and contacts the person works with.
projects/<project>/The current state of each piece of work.
how-to/Procedures the person taught the agent.
agents/<agent-name>/Notes that belong to one agent.
  • A memory is one Markdown file per topic. The person can open the namespace, read every file, correct one, or delete it.
  • The agent saves with knowledge_addMemory and removes with knowledge_forgetMemory. Relevant memories are recalled at the start of a turn, before the agent's first step.
  • Memory is personal. In a shared channel thread and in an eval run, agents neither save nor recall it, so one person's notes do not surface in front of others.
  • A scheduled run saves to the memory of the person it runs as.

Docs:Author agents

Skills and tools

Instructions define how an agent behaves. A skill defines how it performs one kind of job. A tool is the function it calls to do that job. Each is granted separately, so a capable agent is still limited to the procedures and functions it was explicitly given.

Skills

A skill is a folder in the open agentskills.io format: a SKILL.md file, plus optional references, scripts, and assets. The agent sees a short description of each skill it was granted and opens one when the turn needs that procedure. While a skill is open it can widen the agent's tools for that session alone. Closing it returns the agent to its baseline. Opening, reading, and closing all appear in the thread, so the record shows which procedure ran.

Tools

Built-in tools cover the Knowledge Graph, workflows and their data, files, documents, email, chat channels, schedules, and the agent's own task list and context. External systems connect over MCP: a server is added once, and its tools become an ability that can be granted to an agent. Secrets those tools need stay in your Vault. The agent can check whether a secret is set and ask a person to set a missing one. It never sees a value.

Docs:SkillsTools and MCP

The agent's computer

Some tasks are best done by running code: reshaping a file, testing a script, or comparing two exports. An agent with the terminal session ability can open a computer of its own. It is a short-lived, isolated machine that the agent starts when it needs one and that is deleted afterwards.

PropertyDetail
NetworkNone by default. Allow internet access is a separate switch on the agent. It grants DNS plus public HTTP and HTTPS.
Languages and toolsPython 3.11 with pandas 3.0, matching Python inside workflows. The transform terminal adds ripgrep, jq, DuckDB, Node.js 22, Java with Saxon-HE for XSLT 3.0, dbt with the DuckDB adapter, and Jinja2.
One commandStops at 120 seconds, and keeps the first 1 MiB of each output stream.
LifetimeA computer left idle ends after 30 minutes. None lasts longer than 4 hours.
FilesEmpty by default. The agent can attach one namespace, including its history, so earlier versions of a file are readable.
Saving changesLive commits each change to the namespace. Review pushes the changes to a session branch, and a person chooses Approve or Reject. A person with view access cannot push.
  • The computer starts with no network access. An agent granted internet access can fetch public pages and packages. Two risks follow, and the documentation states both: a fetched page can carry instructions written for an AI, and anything on a connected computer can leave it. For that reason, internet access is a separate setting.
  • Each computer is created for one workspace, with a credential that belongs to that workspace alone.
  • A shipped skill, Export a workflow as code, uses the computer to rewrite a workflow as XSLT, Python, SQL, dbt, JavaScript, or Jinja, runs both versions, and compares the output rows. A step that cannot be reproduced outside Fontana, such as an AI call, is identified by name and is not approximated.

Docs:Tools and MCP

Fontana Browser

Some systems offer no programmatic interface. For those that offer only a web page, an agent with the web browsing ability can use Fontana Browser: a full browser, running in an isolated environment, which the agent operates as a person would.

  • A session starts on demand and is deleted when the agent releases it. Each person has one active session at a time.
  • For reading, the agent can fetch a page as text, as a screenshot, or as a PDF in one call. For interaction, it opens a session, navigates, reads what is on the page, clicks and types, and releases the session.
  • A session is observable. A screenshot is shown with each browser call in the conversation, and a live view of the page is available beside it.
  • A person can take control of the page, for example to sign in or to complete a CAPTCHA, and then return control to the agent. A password is entered by the person, directly into the page.
  • When every browser is in use, or a page is still loading, the agent waits and retries, and the task continues.

Docs:Tools and MCP

Schedules

An agent can start without a message from a person. A schedule is a trigger and a prompt, stored in the agent's folder. When the trigger fires, the prompt starts a turn, and the loop described above carries out the work.

How a schedule starts an agentA trigger fires: a time, a workflow or exception event, an inbound email, or a manual run. Fontana finds each person who has turned that schedule on. The prompt is added to that person's persistent thread for the schedule. The agent then runs a turn as that person, in the same loop and under the same limits as a chat.TRIGGERA trigger firestime, event, email, manualACTIVATIONYour activationon for you, runs as youTHREADOne persistent threadthe prompt is appendedTURNAgent turnsame loop, same limits
Figure 5. A schedule fire. The definition is shared with the agent. Each person turns it on for themselves, and the turn runs as that person.
TriggerWhen it fires
A timeA cron expression in UTC: every weekday at 07:00, the first of the month, every fifteen minutes.
A workflow eventA run completed, a run succeeded, or a run failed.
An exception eventAn exception ticket was raised on a row, or its status changed.
An emailA message arrived in the agent's mailbox.
ManualA person ran the schedule on demand, or another agent fired it.
  • A trigger can carry a condition: a property, an operator, and a value. A schedule can fire for failed runs of one workflow and no other.
  • The definition is shared and the activation is personal. A schedule runs as the person who turned it on, with that person's permissions, memory, and spending cap. A colleague who turns the same schedule on has separate runs.
  • Each fire appends the prompt to one persistent thread for that schedule. Monday's run can read what Friday's run found.
  • A workflow build that raises many exception tickets starts one turn, not one per ticket.
  • A schedule can be fired on demand, and its condition can be tested against the current tickets without starting the agent.
  • An agent can create a schedule from an instruction in a conversation, such as "Check this every morning at eight", and can fire one.

Guards for unattended work

  • A schedule that reaches the conversation's spending cap or the turn's step budget turns itself off and records the reason.
  • A loop guard watches for agents answering each other. When the recent history on every matching ticket comes only from agents, the fire is rejected and recorded as a possible loop.
  • At a monthly spending cap, schedules skip.

Docs:Agent schedules

Gateways and models

The harness is independent of any one model. An agent calls a language model through a gateway: a connection to a model provider that your organisation has approved, using a key that it holds. The model behind an agent is a setting, and changing it leaves the agent's instructions, tools, and history unchanged.

Kind of gatewayConnects
Unified routersOpenRouter and LLM API: one key, many vendors.
Direct vendor APIsThe model vendor's own endpoint, under your own contract with that vendor.
Cloud accountsAWS Bedrock, Azure OpenAI, Microsoft Foundry, and Vertex AI, called with your cloud credentials. Models you imported into Bedrock appear in the catalogue by name.
Custom and self-hostedAny endpoint that speaks the OpenAI /v1 API: Ollama, LM Studio, vLLM, llama.cpp, LocalAI, SGLang. This is how an agent runs on a model inside your own network.
ControlDetail
Approved modelsThe catalogue lists 600+ models across 23 gateways. Your administrators decide which of them are on.
Your keysBring Your Own Key. A key lives in your Vault at organisation, team, or person scope, and the narrowest scope wins. Fontana operates no shared model account.
RetentionZero Data Retention, a provider's commitment not to store prompts or replies, applies on every gateway where the provider offers it. It follows the account and the settings you configured.
Per agentA model override, the reasoning effort from Off through Max, and sampling settings. Two agents in one workspace can run on different models.
SpendOne cost row per model call: chat steps, sub-agents, schedules, evals, workflow AI steps, and Knowledge Graph processing. Monthly caps apply to the organisation, a gateway, or a person, and a separate cap applies to one conversation.
  • Inference never runs through an account Fontana operates and shares between customers. Text leaves your deployment only for a provider you selected, and Fontana does not train models on your data.
  • When a cap is reached, chat pauses, schedules skip, and workflow AI steps fail with an error that names the cap.
  • A decision model is a different kind of model and is handled separately. TypeSafe System One answers a structured question with a confidence. An agent can ask it for a decision as a tool call, and it is never used as a chat model.
  • Fluid, Fontana's own model for writing Formula from plain English, appears on the same approved list. The Fluid whitepaper describes it.

Docs:GatewaysModelsBring Your Own KeyZero Data RetentionCost center

Voice

An agent can speak its replies, and a person can speak to an agent. Voice is a setting of the agent, like its model. Each agent has its own voice, so two agents in one conversation can be told apart by ear.

PortalSource of the speech
Local browserThe browser's built-in speech.
Fontana VoiceSpeech generated inside your deployment. On by default.
OpenAIThe provider's text-to-speech model, with your key.
ElevenLabsThe voice library of your ElevenLabs account, including voices designed or cloned there.
  • Any reply can be read aloud. With auto-read, each sentence is spoken as soon as it is complete, while the rest of the reply is still being written.
  • Dictation is available in the chat prompt and in the Flow search bar.
  • An agent can produce audio as a result. With Snippets, it generates MP3 clips in its own voice: a spoken briefing, or an audio version of a summary. The speech tool receives the text to speak and nothing else.
  • The voice is bound to the agent. There is no workspace default and no silent switch to another provider, so an agent set to generate speech inside your deployment continues to do so.

Docs:Voice

Where an agent works

An agent is available in several places. The same agent, with the same loop, the same permissions, and the same record, answers in every channel your organisation has connected.

PlaceHow it runs
Flow chatA person converses with an agent in the Flow web application. The agent receives the context of the current page, so it can work on the workflow or the document that is open.
Slack and Microsoft TeamsAgents answer in the channels a team already uses. Each person links their identity once with a one-time code. Each question then runs with that person's permissions and that person's spending cap.
A scheduleA time or an event starts a turn on a persistent thread, so the work is done before anyone asks.
A workflowA workflow step can ask an agent a question for each row, and an agent can build and run a workflow. The Workflow Engine paper covers the run.
EmailAn agent with the email ability has its own mailbox. A receive list limits whose mail it sees, and it sends only to addresses on its send list. An empty send list blocks every send.
An external AI clientClaude, ChatGPT, Cursor, and other MCP clients connect to one address and act as one selected agent. The client receives that agent's tools, instructions, and skills, and every call still runs as the signed-in person.
  • In a channel, a message sent while a turn is running is queued. The reply is saved to the thread first and delivered second, so an answer is not lost if delivery fails.
  • Agent email is signed and authenticated with the standard mail checks, DKIM, SPF, and DMARC. A reply to an agent's email continues the conversation that sent it.
  • An external client signs in as a person. Claude and ChatGPT open the Fontana sign-in, and other clients use a personal access token bound to one agent.

Docs:Chat channelsAgent emailExternal agents

Human approval

An agent that can work unattended for long periods needs defined points at which it stops and asks. Human in the loop provides them. The agent asks in a structured form, and the action waits until a person answers. Approval always precedes the action.

What needs a personHow it works
A question with a formThe agent calls hitl_askHuman with the fields and the buttons it needs. The turn waits. The answer returns as the button that was pressed and the values that were entered.
A secretThe agent asks a person to set a workspace secret, and the person enters it into Vault. The agent learns only that it is set, declined, forbidden, or invalid. It never sees the value.
A workflow editThe agent's changes are applied to a draft. A person reviews the difference and applies it. Automatic application is an opt-in setting.
A file change from the computerIn review mode, changes go to a session branch. A person approves or rejects them.
An approval in SlackApproval buttons in the channel resume the turn. In Microsoft Teams, the agent sends a link to the Flow thread, where the person answers.
  • An unanswered form stays open for 24 hours. The turn is parked for that time, as with any other wait.
  • A reply in the conversation also closes the form, so the agent does not remain waiting on a question that has already been answered.

Docs:Human in the loop

Permissions and delegation

An agent has no authority of its own. Each tool call runs with the intersection of two sets of permissions: what the person it works for may do, and what the agent was granted. An agent cannot reach further than that person, and it cannot use a tool it was not granted, whoever is asking.

  • The intersection applies to every call, in every place the agent works: chat, a channel, a schedule, or an external client.
  • A call that is refused is recorded as refused. The activity log shows what was allowed and what was not.

Working with other agents

One agent can pass work to another in two ways. A sub-agent runs a delegated task in a child thread and returns the result, which keeps the reading it did out of the parent's context. A handoff transfers the same thread to a different agent, which then answers the person directly. In both cases, the receiving agent is limited by the same intersection, so delegation cannot be used to gain access.

ProtocolKindWhat it connects
MCPToolsFontana agents call tools on external MCP servers, and external AI clients call a Fontana agent's tools.
A2A 1.0Agent to agentThe Agent2Agent protocol. A Fontana agent exchanges a task with an agent in another product, inbound and outbound.
ACP 0.2.0Agent to agentThe Agent Communication Protocol, inbound and outbound.
ANP 1.2Agent to agentThe Agent Network Protocol, inbound and outbound.
OFP 1.1.0Agent to agentThe Open Floor Protocol, inbound and outbound.

Docs:Agent interopExternal agents

Evals

A change to a brief or a model changes how an agent behaves, and reading a few conversations does not quantify the change. An eval measures it. An eval defines a task, the criteria for success, and an objective such as "the cheapest setup that still scores 8". Fontana runs the task on private copies, and a judge scores each criterion from 0 to 10.

  • Measure mode runs the agent in its current configuration on each selected model, so that quality, cost, and time can be compared for the same task.
  • Auto mode extends this. An eval agent proposes candidate configurations, runs each one, scores every trial against the same objective, and repeats until the objective stops improving or a limit is reached. Checkpointed mode does the same and waits for a person after every round.
  • Each trial runs on a private copy of the agent, and on a private copy of the workflows and files the task works in. The recommended configuration reaches the real agent only when a person applies it.
  • Each trial records its steps, its tool calls, its tokens, and its cost, so a cheaper model that needs more steps can be assessed on measured results.

Docs:Evals

Bounds

An agent that runs unattended operates within stated limits. The shipped defaults are listed below. Most can be changed for one agent or for the whole workspace.

LimitValue
Steps in one turn50 by default. An open chat extends the budget while the work continues. An eval trial sets it between 50 and 200.
Task list depth3 levels.
Self-eviction ceiling80,000 tokens of the packed request by default. Set per agent as a token count, or as a percent of the model's window.
Kept extract on self-evictionUp to 4,000 characters per call.
Tool result retention12 rounds of tool calls by default. Set per agent.
Knowledge Graph evidence retention3 turns by default. Set per agent.
Tool call wait10 seconds by default, 20 seconds for Knowledge Graph tools, 10 minutes for browser tools. An operator can change each bound.
One waitUp to seven days.
An unanswered formOpen for 24 hours.
A command on the computer120 seconds, and the first 1 MiB of each output stream.
A computerEnds after 30 idle minutes. 4 hours at most.
Browser sessionsOne active session per person.
External client accessRenews hourly. After 7 days unused, the client requires a new sign-in.

Docs:Author agentsTools and MCPCost center

Conclusion

The Agent Harness enables a language model to carry out a task from start to finish. The loop keeps the agent working across many steps, in parallel where possible and waiting where necessary. The task list holds the plan. Context management keeps a long thread within the model's limits, and the agent contributes by evicting material it has finished with. A computer, a browser, a voice, schedules, and channels make the agent available wherever the work takes place.

The agent remains governed throughout. It is a versioned folder. Every call runs as the person it works for, within the tools it was granted. Your organisation sets the model, the key, and the spending cap. Approval holds an action until a person answers, and the activity log records every call.

The product documentation covers each part in full. The pages below are a good place to start a review, alongside the Knowledge Graph and Workflow Engine papers.

Further reading

Docs

Whitepapers