Building the Agent Host Protocol for sessions that continue across devices
The Agent Host Protocol (AHP) is an open standard that lets multiple clients (VS Code, the Copilot app, mobile apps, custom tools) share the same long-running agent sessions, so work started on one device can continue on another. It is organized around URI-identified channels (required root, session and chat channels, plus optional terminal, MCP and telemetry channels), each holding server-arbitrated reducer-based state that clients mutate by dispatching actions. This makes reconnection and replay over flaky networks straightforward and fits UI frameworks like React. Two independent hosts, VS Code's in TypeScript and GitHub's in Rust, exposed protocol gaps such as non-PTY shell output and client assumptions about session URI structure, and libraries now exist in six languages.
Related posts
- Unlocking the Codex harness: how we built the App Server
OpenAI mediumAdept
The Codex App Server is a bidirectional JSON-RPC protocol over stdio (JSONL), plus a long-lived process that hosts Codex core threads. It exposes one agent harness to the CLI, VS Code, the desktop app, web, and partners such as JetBrains and Xcode. It grew out of a VS Code integration after exposing Codex as an MCP server proved awkward. The protocol is built on three primitives: items (with started, delta and completed lifecycles), turns and persisted threads. It adds an initialize handshake for versioning and server-initiated approval requests that pause a turn. Clients run it as a pinned child process locally or inside containers for Codex Web, rely on backward compatibility to upgrade the server independently, and can generate TypeScript types or a JSON Schema from the Rust protocol.
- Scaling Managed Agents with stable interfaces
Anthropic Engineering mediumAdeptClaude Managed Agents splits a long-running agent into three virtualized interfaces: an append-only session log, a stateless harness that calls Claude and routes tool calls, and sandboxes reached through a generic `execute(name, input) → string` tool call. Moving off a single coupled container turned sandboxes and harnesses into replaceable cattle. A crashed harness resumes from the durable log via `wake(sessionId)`, and credentials sit in vaults or MCP proxies the sandbox can't reach, which blocks prompt-injection token theft. The session also serves as a queryable context store outside Claude's context window. Provisioning containers lazily, only when a tool needs one, cut p50 time-to-first-token by about 60% and p95 by over 90%.
- Designing the hf CLI as an agent-optimized way to work with the Hub
Hugging Face mediumAdeptHugging Face rebuilt its hf CLI to serve both humans and coding agents. It detects agents via environment variables like CLAUDECODE and CODEX_SANDBOX and switches to untruncated, ANSI-free TSV output, sends hints and errors to stderr, fails fast instead of prompting, and supports idempotent retries, --dry-run and consistent resource+verb commands. In a benchmark of ~1,000 graded runs across 18 Hub tasks on Claude Code (Sonnet 4.6) and Codex (GPT-5.5), agents hand-rolling curl or the Python SDK used 1.3-1.8× more tokens overall, and up to 6× on multi-step tasks. On Sonnet they also succeeded less often (84% vs 94%) and falsely reported success more often. A generated skill file covering the full command surface adds a further small reduction in tool calls.
- Claude Code in the cloud: a field guide to cloud sessions
claude.dev mediumAdeptClaude Code cloud sessions run each task in a fresh VM with the repository cloned onto its own branch, so several agents can work on one repo in parallel without sharing files, ports, or the developer's credentials. In a demo on a small Node API, three sessions finished a flaky-test race fix (verified by 40 clean suite runs), a docs rewrite checked with curl, and a structured-logging change within 87 seconds. The GitHub token stays in a proxy outside the VM, and only repo-level Claude config travels with the session. The guide covers when to stay local (VPN, local data, GPUs, Zero Data Retention), timeout settings, teleporting sessions back to the terminal, and workflows such as parallel backlogs and PR auto-fix.
- The New MCP Roadmap
Model Context Protocol easyNovice
The updated Model Context Protocol roadmap sets five priority areas for upcoming specification releases: agentic messaging primitives (server-initiated events, maturing the Tasks extension), HTTP-native transport unification including Streamable HTTP over stdio, agent identity and enterprise security via DPoP, Workload Identity Federation and token exchange, improved primitives with a single tools/call result contract and progressive tool discovery, and better SDK ergonomics. It recaps the 2026-07-28 release, which removed protocol-level sessions and the initialization handshake for stateless horizontal scaling, added server/discover and cacheable list results, and replaced server-initiated requests with Multi Round-Trip Requests. SEPs aligned with these priority areas get expedited review.