<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Blair Milroy</title>
    <description>The latest articles on DEV Community by Blair Milroy (@blairmilroy).</description>
    <link>https://dev.to/blairmilroy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4053525%2F523ad811-1a07-4e6c-9766-deefd2a22d4b.png</url>
      <title>DEV Community: Blair Milroy</title>
      <link>https://dev.to/blairmilroy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blairmilroy"/>
    <language>en</language>
    <item>
      <title>Portable Agent Manifests with Host-Controlled Infrastructure</title>
      <dc:creator>Blair Milroy</dc:creator>
      <pubDate>Wed, 29 Jul 2026 15:51:11 +0000</pubDate>
      <link>https://dev.to/blairmilroy/portable-agent-manifests-with-host-controlled-infrastructure-2ja0</link>
      <guid>https://dev.to/blairmilroy/portable-agent-manifests-with-host-controlled-infrastructure-2ja0</guid>
      <description>&lt;p&gt;AI agents often begin as application code: a prompt, a model call, a few tools, and enough control flow to make the first example run.&lt;/p&gt;

&lt;p&gt;As the agent grows, the definition and the environment tend to collapse into each other. Model configuration lives beside credentials. Tool access is mixed with prompts. Persistence assumes a particular process. Deployment choices become part of the agent itself.&lt;/p&gt;

&lt;p&gt;That coupling makes an agent harder to inspect, test, move, and recover.&lt;/p&gt;

&lt;p&gt;We built &lt;a href="https://github.com/clearideas/agent-runtime" rel="noopener noreferrer"&gt;Clear Ideas Agent Runtime&lt;/a&gt; around a different boundary: the agent definition should be portable, while the infrastructure that executes it should remain under host control.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Agent Manifest is the portable contract
&lt;/h2&gt;

&lt;p&gt;An Agent Manifest is a versioned YAML or TypeScript definition. It can describe:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;prompts and structured outputs;&lt;/li&gt;
&lt;li&gt;typed variables;&lt;/li&gt;
&lt;li&gt;conditions and loops;&lt;/li&gt;
&lt;li&gt;tools and MCP connections;&lt;/li&gt;
&lt;li&gt;approvals and webhooks;&lt;/li&gt;
&lt;li&gt;sandboxed code steps;&lt;/li&gt;
&lt;li&gt;sub-runs;&lt;/li&gt;
&lt;li&gt;limits and final outputs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A separate Agent Run Manifest supplies the values and execution choices for one invocation. That keeps the reusable agent definition distinct from the inputs and operational decisions associated with a particular run.&lt;/p&gt;

&lt;p&gt;Here is a small example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;schemaVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;1.0"&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;research-brief&lt;/span&gt;
&lt;span class="na"&gt;variables&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;topic&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;string&lt;/span&gt;
  &lt;span class="na"&gt;researchNotes&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;string&lt;/span&gt;
  &lt;span class="na"&gt;briefDraft&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;string&lt;/span&gt;
&lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;research&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;prompt&lt;/span&gt;
    &lt;span class="na"&gt;prompt&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
      &lt;span class="s"&gt;Research {{ topic }} and return concise notes.&lt;/span&gt;
    &lt;span class="na"&gt;outputVariable&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;researchNotes&lt;/span&gt;

  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;draft&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;prompt&lt;/span&gt;
    &lt;span class="na"&gt;prompt&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
      &lt;span class="s"&gt;Draft a brief using these notes:&lt;/span&gt;
      &lt;span class="s"&gt;{{ researchNotes }}&lt;/span&gt;
    &lt;span class="na"&gt;outputVariable&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;briefDraft&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The manifest describes the agent. It does not contain the credentials, infrastructure account, or persistence implementation that happens to run it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The host controls the operational boundary
&lt;/h2&gt;

&lt;p&gt;The host application supplies and controls:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;models and provider credentials;&lt;/li&gt;
&lt;li&gt;connections and tool authorization;&lt;/li&gt;
&lt;li&gt;persistence and artifact stores;&lt;/li&gt;
&lt;li&gt;local or remote compute;&lt;/li&gt;
&lt;li&gt;sandbox providers;&lt;/li&gt;
&lt;li&gt;telemetry;&lt;/li&gt;
&lt;li&gt;concurrency and resource limits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is more than configuration hygiene. It prevents a portable agent definition from granting itself broader access. The host resolves credentials, exposes approved tools, narrows connection modes, and can authorize individual tool calls against application policy.&lt;/p&gt;

&lt;p&gt;Authorization is therefore part of the runtime boundary, not a feature supplied only by a hosted service.&lt;/p&gt;

&lt;h2&gt;
  
  
  One run contract across execution environments
&lt;/h2&gt;

&lt;p&gt;Agent Runtime supports three execution boundaries through one client contract:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;In process&lt;/strong&gt; for embedding the runtime in a TypeScript application.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Child process&lt;/strong&gt; for execution through the portable worker protocol.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remote compute&lt;/strong&gt; through an execution-engine adapter.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Agent Manifest does not change when the execution boundary changes.&lt;/p&gt;

&lt;p&gt;The included &lt;a href="https://modal.com/" rel="noopener noreferrer"&gt;Modal&lt;/a&gt; adapter implements remote submission, status, ordered events, result retrieval, resume, and cancellation. Docker and &lt;a href="https://modal.com/docs/guide/sandboxes" rel="noopener noreferrer"&gt;Modal Sandboxes&lt;/a&gt; implement the runtime's native sandbox contract for isolated code execution and generated artifacts.&lt;/p&gt;

&lt;p&gt;Applications can supply different compute or sandbox implementations through the same adapter interfaces.&lt;/p&gt;

&lt;h2&gt;
  
  
  Durable execution is part of the runtime
&lt;/h2&gt;

&lt;p&gt;A multi-step agent needs more than a final response.&lt;/p&gt;

&lt;p&gt;Agent Runtime checkpoints run state, step outputs, transcripts, generated files, and continuation data. Suspended or interrupted runs can resume in a fresh process. Attempt fencing prevents an older worker from committing after another process has resumed the run.&lt;/p&gt;

&lt;p&gt;Runs also emit ordered lifecycle, model, tool, checkpoint, artifact, and text-delta events. A CLI, embedded application, remote worker, or OpenTelemetry integration can consume the same event stream.&lt;/p&gt;

&lt;p&gt;This gives the runtime a stable execution history around model calls that are inherently non-deterministic.&lt;/p&gt;

&lt;h2&gt;
  
  
  The runtime can derive the execution graph
&lt;/h2&gt;

&lt;p&gt;Many orchestration frameworks ask the developer to define a sequence, write routing code, or maintain nodes and edges.&lt;/p&gt;

&lt;p&gt;Agent Runtime can instead read the variables each eligible step produces and consumes. From those data dependencies, it derives an execution plan.&lt;/p&gt;

&lt;p&gt;Independent prompt branches can run concurrently. Dependent steps wait for their inputs. Tool-enabled and stateful operations remain ordered. Results commit in manifest order.&lt;/p&gt;

&lt;p&gt;The graph does not become a second definition maintained beside the agent. It is resolved from the Agent Manifest.&lt;/p&gt;

&lt;p&gt;This can reduce elapsed time when an agent contains independent model calls, while preserving ordered checkpoints and state transitions. A mostly linear agent remains mostly sequential.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://clearideas.com/blog/2026-07-28-agent-runtime-execution-graphs" rel="noopener noreferrer"&gt;execution-graph article&lt;/a&gt; includes a complete example, scheduling rules, timing model, and visualization.&lt;/p&gt;

&lt;h2&gt;
  
  
  Models, tools, and adapters remain composable
&lt;/h2&gt;

&lt;p&gt;Models connect through the AI SDK. Tools can be supplied directly by the application or through &lt;a href="https://modelcontextprotocol.io/docs/getting-started/intro" rel="noopener noreferrer"&gt;Model Context Protocol&lt;/a&gt; connections.&lt;/p&gt;

&lt;p&gt;Memory, file, and SQLite stores cover common persistence needs. Separate packages provide model, persistence, compute, sandbox, artifact, condition, and OpenTelemetry adapters, allowing an application to install the infrastructure it actually uses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install from npm
&lt;/h2&gt;

&lt;p&gt;Agent Runtime is available under Apache 2.0 and does not require a hosted Clear Ideas service.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; @clearideas/agent-runtime
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Start with the &lt;a href="https://agent-runtime.clearideas.com/quickstart" rel="noopener noreferrer"&gt;five-minute quickstart&lt;/a&gt;, review the &lt;a href="https://agent-runtime.clearideas.com/manifests" rel="noopener noreferrer"&gt;manifest documentation&lt;/a&gt;, or inspect the &lt;a href="https://github.com/clearideas/agent-runtime" rel="noopener noreferrer"&gt;source on GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The broader release announcement is available at &lt;a href="https://clearideas.com/blog/2026-07-28-clear-ideas-agent-runtime" rel="noopener noreferrer"&gt;Clear Ideas Agent Runtime 0.1.0&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>typescript</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
