cd /news/ai-agents/the-fx-adapter-now-runs-the-harness-… · home › topics › ai-agents › article
[ARTICLE · art-159303] src=vercel.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

The fx adapter now runs the harness on the host

The fx adapter for the AI SDK's HarnessAgent now runs the harness and model requests in the same process as the application, using the libfx TypeScript library, while built-in filesystem and shell operations stay isolated in the sandbox. The rewrite removes the need to install fx inside the sandbox, run a sandbox bridge, or expose a sandbox port, and keeps model credentials on the host instead of forwarding them into the sandbox. It also adds built-in tool filtering, mid-turn steering, structured output, image tool results via toModelOutput(), and sessions that can be saved and resumed in a new host process; developers must update @ai-sdk/harness-fx to the latest version.

by read1 min views2 publishedOct 27, 2026

The fx adapter for the AI SDK’s HarnessAgent now runs the harness and model requests in the same process as your application. Built-in filesystem and shell operations remain isolated in the sandbox.

The adapter uses libfx, the TypeScript library for fx. It no longer needs to install fx inside the sandbox, run a sandbox bridge, or expose a sandbox port. Model credentials stay on the host rather than being forwarded into the sandbox.

The rewrite also adds:

Built-in tool filtering: choose which built-in tools the agent can use

Mid-turn steering: send new instructions while a turn is running

Structured output: generate responses that match a schema

Image tool results: return images to the model through toModelOutput()

Sessions can be saved and resumed in a new host process.

Update @ai-sdk/harness-fx to the latest version to use the new adapter. Learn more in the fx harness documentation.

── more in #ai-agents 4 stories · sorted by recency
── more on @ai sdk 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/the-fx-adapter-now-r…] indexed:0 read:1min 2026-10-27 · —