Pi Durable
Pi Durable is an experimental TypeScript harness, shipped alongside Pi 1.0, for long-running agents that survive crashes, run many conversations concurrently, and run wherever a JavaScript runtime exists. Every model call and tool call is a checkpointed task over a pluggable storage backend (memory, SQLite, JSONL). After a restart, interrupted model requests are resent, and tools rerun only if marked replay-safe; otherwise the model is told the call was interrupted. requestIds make submissions exactly-once, conversations can fork without copying history, and extensions bundle prompt sections, tools, wraps and hooks, so subagents take only a few lines of code.
Related posts
- Pi Durable on Cloudflare
Earendil mediumAdept
A multiplayer chat agent built on Pi Durable maps each agent session to one SQLite-backed Cloudflare Durable Object, so idle agents hibernate instead of holding a running machine. The harness reopens in the object constructor under blockConcurrencyWhile, restores per-WebSocket event streams after hibernation, and makes conversation creation and message submission idempotent with request-ID receipts stored in the same commit. Pi's many task deadlines are collapsed onto the single Durable Object alarm, which is recomputed idempotently on each wake, with short recovery alarms for interrupted work. A replay-safe search_history tool delegates cross-conversation retrieval to a task-owned subagent conversation, and only the final answer returns to the parent.
- 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%.
- Resilience testing your agents on Amazon Bedrock AgentCore
AWS Architecture Blog mediumAdeptAWS Fault Injection Service can drive tool-level faults inside a Strands agent running on Amazon Bedrock AgentCore, using an SSM Automation action that toggles chaos parameters in Parameter Store. Pre-hook faults cancel tool calls and post-hook faults corrupt their results. Without a failure-handling system prompt, the agent answered from training data after timeouts in every run and passed corrupted data through silently in 14 of 15 runs. With the prompt, it declined and named the missing data. CloudWatch error metrics stayed at zero and every invocation returned HTTP 200, so the recommended fixes are Pydantic validation of tool output on the AfterToolCallEvent hook with EMF metrics, a dedicated chaos runtime, repeated runs per scenario, and stop conditions tied to task success.
- From model to agent: Equipping the Responses API with a computer environment
OpenAI mediumAdept
OpenAI's Responses API now pairs with a shell tool and hosted container workspace so models can run multi-step agent workflows. The API orchestrates the loop itself: it streams command output back to the model, runs multiple commands concurrently in separate sessions, and truncates large outputs while keeping their beginning and end. Native compaction carries long-running sessions across context-window limits. The containers stage files and SQLite databases instead of stuffing prompts, route network egress through a sidecar proxy with allowlists and domain-scoped secret injection, and load versioned 'skills' bundles (SKILL.md plus resources) that the model explores via shell commands.
- Deterministic AI Testing with Session Recording in cagent
Docker mediumAdeptcagent's session recording applies the VCR pattern to AI agents. It proxies requests to the model provider, saves each request/response cycle to a YAML cassette, and replays matching requests from that file, so test runs are deterministic, cost nothing in API calls and finish in milliseconds. The --record and --fake flags support CI testing without API keys, cheap prompt iteration against one recording, sharing reproducible bug reports, and capturing multi-agent delegation. Tool call IDs are normalized so replay matching works, and auth headers are stripped so cassettes can be committed to version control.