---
title: "AgentEnv: Turning Recorded Captures into Offline RL Harnesses"
description: "Compiling HAR/CDP observations into deterministic local tool environments where agents practice tasks with zero live side effects."
canonical: "https://askgina-blog.pages.dev/posts/agent-environments"
---

# AgentEnv: Turning Recorded Captures into Offline RL Harnesses

[HTML version](https://askgina-blog.pages.dev/posts/agent-environments)

Published September 28, 2026 · REA Environments Lab

Compiling HAR/CDP observations into deterministic local tool environments where agents practice tasks with zero live side effects.

**Abstract.** Training and evaluating coding agents against live web apps is slow, flaky, and unsafe. REA’s `export_environment_bundle` (export\_environment\_bundle writes a self-contained local environment folder from recorded CDP or HAR captures for repeatable offline rollouts. Source: [github.com/morluto/rea](https://github.com/morluto/rea).) compiles recorded CDP and HAR captures into deterministic local harnesses that expose structured WebMCP and Vercel UI SDK controls with zero live side effects.

## Offline RL Pipeline

Step through the four stages (Capture, Compile, Replay, and Grade) in this simulated walkthrough of `capture_browser_scenario` and `export_environment_bundle` (The CLI invocations and JSON are examples, not live output. The zero-egress switch changes only the preview state. Source: [github.com/morluto/rea](https://github.com/morluto/rea).).

Interactive figure: [From Recorded Capture to Deterministic Offline Harness](https://askgina-blog.pages.dev/posts/agent-environments#env-pipeline).

## Agent Bridge Efficiency

Vercel UI SDK’s `snapshot()` and `act()` give agents a structured alternative to browser automation. The chart shows the published project settings benchmark, not an AgentEnv rollout benchmark (Vercel Labs reports medians from three runs per configuration with Sonnet through Claude Code. The browser-tool baselines use accessibility-tree reads and browser interactions. Source: [ui-sdk.dev/docs/agents](https://ui-sdk.dev/docs/agents).).

Interactive figure: [Browser-Only vs. UI SDK Agent Bridge (3-Run Medians)](https://askgina-blog.pages.dev/posts/agent-environments#env-benchmarks).

## Notes & References

1.  Vercel Labs (2026). UI SDK agent docs, project settings screen benchmark (vercel-labs/ui, benchmarks/agent). [ui-sdk.dev/docs/agents](https://ui-sdk.dev/docs/agents)
2.  REA Project (2026). “Reverse Engineer Anything: One MCP for reverse engineering across binaries, applications, and runtime behavior (v6.8.0, 229 tools).” [github.com/morluto/rea](https://github.com/morluto/rea)
3.  REA Showcase. DX-Ball 1.07 project checkpoint, 7 October 2026 (REA 4.1.0). [rea.tools/showcase/dx-ball](https://rea.tools/showcase/dx-ball/)
4.  REA Showcase (2026). Notion Desktop 7.6.1 clipboard IPC trace (REA 4.1.0) and separate cached web-asset probes. [rea.tools/showcase/notion](https://rea.tools/showcase/notion/)
5.  Editorial design reference: SID-2 Technical Report (three-column reading grid, inline figure toggles, margin sidenotes). [sid.ai/research/sid-2-technical-report](https://www.sid.ai/research/sid-2-technical-report)
