Translated from the Chinese original.

Cut Through Mountains, Bridge Every River: Letting Agents Take Over Legacy Systems Without APIs
Cut Through Mountains, Bridge Every River: Letting Agents Take Over Legacy Systems Without APIs

As in the rest of this series: as a human, you only need to understand the ideas, logic, and boundaries; for the concrete execution details, just hand the article to your Agent.

Intro: Run First, Pave Later

In my previous post on landing Agents in traditional businesses (Chinese), I left one loose end: for all those legacy systems inside a company—API or no API—let people wear a dirt trail first, and only then should the company pave it.

This post picks up right there: how do you actually blaze that trail, and how do you pave it?

In the Agent era, it helps to hold onto one simple conviction: if data is visible on screen, there is a way to get it; if a human can click it, an Agent can do it. Treat an Agent like a newly hired intern—most things a human can see and click, it can take over too (provided, of course, that you have authorized access to the account, internal system, or personal data, and that you always use official APIs or export features first whenever they exist). The real calculation is almost never “can it be done?"—it is engineering cost, implementation speed, and accuracy.

There is another line I keep repeating: good context paired with a weaker model often beats poor context paired with a stronger model. Landing AI inside a company comes down to making internal information progressively readable, writable, and reviewable for your Agents. So this post is not about chasing the newest model; it is about expanding what your Agents can see and touch. Alongside building this for my company, I have also been piecing together the context of my own entire life—for an individual and for a company, the playbook is the same.

The arc of this article is straightforward: first let the Agent see the screen and click the mouse like a human to close the loop—that is the dirt trail (Sections 1 and 2). Once it runs smoothly, turn the most frequent steps into scripts, and go a step further by bypassing the UI to talk straight to the backend—that is paving (Section 3). Finally, put all of those paths behind a unified gateway—that is the highway (Section 4). These are not a rigid ladder you must climb every time; they are a menu you pick from based on accuracy, cost, speed, and frequency. For a low-frequency task that only pulls numbers off a screen, screenshots plus OCR or staying at the UI layer is plenty—there is no need to pave every trail to the end.

AI has lowered the cost of building things, but human energy is still finite. That is why my order of operations has always been: run first, pave later. Like a lawn where you let people wear down a natural footpath before laying flagstones along it, instead of trying to rebuild every legacy system from scratch on day one—which is a massive waste of human effort.

The same applies to Agents: equip them with the most general-purpose capabilities first and get the business loop working; after a while, check the activity logs and pave whichever stretch gets trampled the hardest and slows things down the most. At my daily token volume, human attention is far more expensive than tokens; and as I wrote in The Zelda Chapter of My Life, an Agent’s attention is also a scarce resource that should be saved for resolving uncertainty. So two layers of offloading run through this entire post: first, freeing humans from staring at screens and clicking mice by handing that work to Agents; second, freezing high-frequency routines into scripts and slimming down legacy APIs so Agents spend their attention only on real decisions.

Run First, Pave Later: A 4-Step Playbook for Agent Takeover
Run First, Pave Later: A 4-Step Playbook for Agent Takeover

1. Blazing the Dirt Trail: Giving Agents Hands and Eyes

Let me start with a simple observation that underpins everything that follows: in daily office work and business operations, most work happens inside a browser, and a smaller slice lives in custom desktop apps. That means to let an Agent explore on its own, giving it just two pairs of hands covers the bulk of the job—Browser Use and Computer Use, plus Phone Use if mobile is involved. Put bluntly, this eliminates the human breakpoints in the Loop I wrote about in Every Setback, a Lesson: Context and Loop in the Agent Era: instead of an Agent stopping halfway to ask a human to click a button, it handles the clicking itself.

Controlling a Computer Breaks Down into Two Layers

The first layer is software: how the Agent “sees” the screen. The best approach is reading the UI’s structured description (the accessibility tree)—like reading a page’s table of contents. It is fast, accurate, structurally stable, and saves both time and tokens on repeated operations. Some apps, however, do not expose one at all (games, custom-drawn UIs), and some intentionally hide it for anti-bot risk control. That is when you fall back to screenshots plus vision, so screenshot support is still mandatory. There is also a very practical question when a human and an Agent share one machine: does it steal your mouse? On macOS, silent background control is widely supported; on Windows, it still frequently hijacks your cursor.

The second layer is the model: whether it has been specifically trained for computer use. For simple tasks it barely matters; for complex ones like operating 3D modeling software, dedicated training makes a huge difference. When OpenAI released GPT-6 Astra in September and followed up with GPT-6.2 Astra in November, the reason it felt so impressive was the combination of macOS’s mature accessibility APIs and targeted model training.

Single-Machine Tooling Checklist

Most people share a single computer with their Agent, where off-the-shelf native tools are enough. Below is what I have used and evaluated—the main text focuses on how to choose, while protocols and platform prerequisites live in the Appendix for your Agent to read.

Browser side:

  • If you do not want to leave Chrome, use Kimi Browser Extension (formerly WebBridge). It lives right inside Chrome and can also be exposed to other local Agents on the same machine.
  • If you want to give your Agent its own workspace, try ego lite. It was designed from day one for humans and Agents to share: the Agent works in its own space while you stay in your window undisturbed. On first launch it migrates your Chrome logins and extensions, and you can keep installing Chrome extensions afterward; the browser itself is free to download.
  • If you live inside Claude Code or Codex, both ship official Chrome extensions (Claude in Chrome for Claude Code, and Codex’s official Chrome extension in its desktop app to attach directly to your logged-in tabs). Sticking with your daily client is the lowest-friction option.

Desktop side:

  • agent-desktop: focuses on reading the accessibility tree without stealing your mouse; great for standard UIs.
  • cua: combines the accessibility tree with screenshot fallback, making it much stronger on custom-drawn apps like games or design tools.
  • Codex native Computer Use and LCU: if you already use Codex, turn on its built-in desktop control to try it; if you want to decouple that capability for other Agents, the community built LCU for macOS and Linux.
  • Kimi Code’s desktop control plugin: silent background operation on macOS without stealing your cursor, and callable by other local Agents. A Windows version exists too, though it briefly takes over your mouse and keyboard while working, which noticeably hurts the experience.

The exact pairing depends on the apps you need to automate (since computer use is always the software layer plus the model layer). If you do not want to overthink it and just want a solid universal starting point, ego lite + cua works well for most people and stays agnostic to whichever Agent you run underneath.

Hardware Fallback When OS Permissions Tighten

For security reasons, iOS and macOS are only getting stricter toward Agents—many permissions require a human to click “Allow” on screen. When software control hits a wall, there is still a hardware fallback: a KVM switch, or a small DIY setup with an ESP32 chip. Essentially you attach a tiny box that reads video output on one end (“seeing” the screen) and pretends to be a USB keyboard and mouse on the other (“clicking” buttons), so even OS permission prompts can be approved like a human. It is more work to wire up and burns more tokens, but it proves the path is technically unblocked end to end.

Once you have both browser and desktop hands in place, the browser covers 60–70% of daily team collaboration and dev tasks, and desktop control catches the rest.

Single-Machine Stack: Giving Your Agent Browser & Desktop Hands
Single-Machine Stack: Giving Your Agent Browser & Desktop Hands

2. Going Further: Cloud Agents Controlling Multiple Real Devices

Once single-machine automation clicks, the next requirement emerges almost automatically: you want your Agents online 24/7.

As your usage ramps up, a single laptop stops being enough—either you rely on long-running remote sessions in tools like Claude Code or Cursor, or you dedicate a machine to your Agents. As I wrote in Always-On Agents and What to Install on a Laptop That’s Just a Remote Control, my ideal setup gives Agents a high-performance host (or cloud Linux server) running round the clock while I carry only a thin, light laptop.

The other very practical driver is account risk control. As I noted in Claude Code: Avoiding Bans, Choosing Models, and Design Philosophy, running Agents in a clean overseas environment—whether a physical machine or a VM—is far more stable than running directly from a domestic laptop.

Put those two together and your Agents end up living in the cloud, on a home workstation, or on an overseas server—not on the laptop in your backpack. Yet their actual work still depends on real device environments: Windows, macOS, and Linux desktop apps, or physical iOS and Android phones. Even without the cloud, cross-platform verification is everywhere: your Agent runs on a Mac but needs to verify a page or app on Windows, or vice versa. It is the exact same problem.

That is why I built agent-remote-use: to bridge the final human breakpoint in cross-machine verification.

Where the Complexity Lies When Many Agents Meet Many Devices

The moment you separate Agents from real devices, you face the many-to-many matching problem. Split it into browsers and desktops, and the economics and pitfalls look completely different:

  • At the browser layer, you gain a “Profile” dimension. Why do multi-device and multi-profile setups show up together? Mostly account isolation—staying logged into multiple independent accounts simultaneously. Purely on cost, running many profiles on one high-RAM machine is cheapest, letting one Agent run several isolated sessions in parallel. The catch is server-side risk control: target sites inspect browser fingerprints and can easily tell those sessions are packed onto the same physical machine.
  • At the desktop layer, you cannot cheat with multi-instance profiles. One GUI desktop can only be loaned to one Agent at a time, otherwise two Agents fighting over one cursor and keyboard will immediately collide. Scaling means adding machines:
    • Mac: under Apple’s Software License Agreement, you can run at most two additional macOS VMs on top of a Mac host (for development, testing, and personal non-commercial use). Its main advantage is running macOS-only software.
    • Windows: easy to virtualize—spin up multiple Windows VMs cheaply on Proxmox VE. Since they are dedicated Agent machines and no human sits at them, cursor stealing stops mattering.

Clearing Up One Confusion: Agent Hubs vs. Remote Desktop

When discussing overseas account risk control earlier, the simplest setup was indeed putting a Mac mini overseas and remoting in with NetEase UU Remote.

In real daily use, though, you need to separate three distinct scenarios:

  • Managing Agents across multiple machines without needing to watch screens: use an ADE (Agent Development Environment) like Orca or Herdr. They connect Agents across hosts over text protocols—sending commands and switching sessions is fast and rock-solid, with zero need to stream live video.
  • When a human genuinely needs to look at the screen and click around: that is when UU Remote (or any remote desktop app) comes in, accepting the unavoidable bandwidth and latency tax of streaming pixels across networks.
  • When cloud or overseas Agents need to control your local real devices: there has been a gap in the tooling—and that is exactly where agent-remote-use fits. Put your overseas server and local machines on the same private network with Tailscale, and cloud Agents can drive local devices directly.

Why I Built agent-remote-use

Put simply, it is remote desktop built for Agents. I named it agent-remote-use—aru for short.

All of my Claude Code instances run on a remote Linux host; my everyday MacBook Air runs zero local Agents. Alongside the Air, I keep a Mac Studio, a Mac mini, two Windows VMs, and a physical PC for business verification and always-on tasks. Human remote desktop solves “one person connecting to one computer”; aru solves “a fleet of Agents competing for a few real devices.” At the scheduling layer, it works like a cybercafe front desk: check in and get a badge (auth—which Agent may access which device), get assigned a seat and checkout time (scheduling—exclusive desktop leases, parallel browser profiles), transfer files, and keep an audit log. As for actually clicking pixels, aru delegates all of that to the existing tools listed above.

The project is now public on GitHub (v0.1.0), complete with a 60-second animated walkthrough video (link in the Appendix). It is a niche need, but a very real one if you run a multi-machine setup—I open-sourced it so others do not have to reinvent the wheel. One honest disclaimer upfront: if you only have one computer and your human self and Agent live on the same machine, you do not need it at all.

aru also covers mobile: PC browsers plus desktop control handle 99% of everyday work, and whenever mobile is actually needed, aru plugs into agent-device (driving iOS/Android simulators and USB-connected Android phones attached to a Mac). Once desktop, mobile, and browser hands are all available within authorized bounds, Agents can take over most routine digital operations.

As a heavy daily user of my own tool, my benchmark for whether it works is simple: is the number of times I have to open UU Remote myself steadily dropping? When Agents handle almost all verification and mouse-clicking on their own, the system is genuinely working.

Cloud Agents Controlling Real Devices: aru as the “Cybercafe Front Desk”
Cloud Agents Controlling Real Devices: aru as the “Cybercafe Front Desk”

3. Paving the Dirt Trail: Write Scripts, Then Skip the UI

After running on the dirt trail for a while—when token cost climbs too high, speed is too slow, accuracy drops, or Agents burn their attention on deterministic steps and drag down the whole Loop—it is time to read the activity logs. Leave occasional tasks on the dirt trail; pave only the hottest, slowest stretches. That is why I keep stressing the importance of keeping Agent logs: without reviewing usage, you have no idea which road is worth paving.

Level 1 Paving: Let the Agent Write Scripts

RPA (Robotic Process Automation) used to be written by humans. In the Agent era, you let the Agent freeze the repetitive steps it already mastered in its Loop into a script. Think of a script as a close cousin of a Skill: a Skill is a playbook the model still has to read and execute step by step; a script replays the exact actions directly—far faster, and without burning model attention on every click.

Take a familiar example: sending a WeChat message. Simulated keyboard/mouse input is a fixed combo—Ctrl+Alt+W to summon WeChat, Ctrl+F to search the contact, Enter, paste text, Enter. Doing that step by step through desktop control runs every click through the model’s brain. Top Agents will happily script this for you; all you need to add is: “Save this as a reusable small tool with just contact_name and message_text as parameters, and verify delivery afterward.” (Side note: WeChat is just an easy-to-picture example—fine for low-frequency personal use, but at scale the server will flag it, which brings us to risk control below.)

You still have to do the math: when an app updates, scripts can break, and maintenance costs time. So never solidify rare tasks—just run them live; by contrast, highly regular scheduled data pulls are ideal for cron scripts—for example, pulling yesterday’s ad performance into a table at 8 AM every morning so Agents simply read the table when work starts.

Do legacy RPA platforms still have value? Again, it is pure math. If the target app’s UI rarely changes, AI-written scripts handle most workflows today. Platforms like Yingdao RPA earn their keep because a huge user base and community absorb UI-upgrade breakage for you. You can even flip the workflow: validate an idea quickly on an existing RPA platform, then have your Agent reverse-engineer and reimplement the logic in your own scripts to drop the subscription cost. Paying for peace of mind versus maintaining it yourself is purely a cost-benefit call.

Level 2 Paving: Skip the UI, Hit the Backend Directly

Here is an analogy: a webpage is like a bank lobby. Every button you click hands a slip across the counter—an HTTP request. The window behind the counter that actually processes it is the API. And your Cookie is your access badge, proving you are already logged in.

Skipping the UI means stopping the lobby queue altogether: figure out the slip format the counter expects, fill it out yourself, and hand it straight over.

Concretely: when you click “Export Yesterday’s Orders” in an internal admin portal, the browser sends a slip saying date=yesterday, format=Excel clipped to your access badge. Request replay means copying that slip, swapping date to today, and sending it directly—no browser, no clicking, file in hand in 1–2 seconds. Your browser already keeps carbon copies of every slip in DevTools’ Network tab; just let a browser-enabled Agent inspect it.

Skip the UI, Hit the Backend: Requests & Cookies via the “Bank Lobby” Analogy
Skip the UI, Hit the Backend: Requests & Cookies via the “Bank Lobby” Analogy

Walking down this road usually takes three steps:

Step 1: Cookie Sync. People often ask: “I’m already logged into Chrome on my laptop—why sync cookies?” Because the script or Agent doing the actual work lives on another machine (like that remote Linux host), which does not hold the badge.

My go-to tool is CookieCloud: install a browser extension, self-host a server on your private LAN (it supports multiple users and stores encrypted payloads), and sync encrypted cookies on a schedule for both cloud Agents and standard automation scripts. Even though the payloads are encrypted, treat the entire pipeline as sensitive credentials. My hard security rule: never expose this server to the public internet. Open-source security hardening varies widely, and even the maintainers recommend self-hosting—do not leave your keycard dispenser sitting on a public street.

Step 2: Reverse-Engineering Signatures. Relying on cookie sync alone eventually hits two walls. First, cookies expire—some in 24 hours, some in a week—breaking automation until your code can log in and refresh them. Second, some sites stamp every request with a freshly computed anti-counterfeit seal (request signature) tied to the timestamp and payload, so replaying an old slip fails on the spot.

Reverse-engineering signatures means figuring out how that stamp is computed so your script can sign requests itself. Difficulty depends entirely on how hard the server defends itself: tech giants whose lifeblood is data are in a completely different league and outside the scope of this post; the prime candidates are internal legacy systems and non-sensitive small SaaS tools. You do not need to do the digging yourself—hand it to an Agent with browser control. Work that used to have a steep pre-AI barrier is dramatically more accessible now.

Step 3: Desktop Clients & Personal Devices. It is not just webpages—standalone desktop and mobile clients hold data too, usually via two paths: sending network requests or reading local databases. Think of e-commerce label-printing apps, legacy ERP desktop clients, or logistics tracking tools that have no web version at all, where vendors either offer no API or charge absurd fees.

For unpacking client behavior, rea (rea.tools) is worth knowing. Honestly, when rea went viral in the community, I skipped the hype—most demos floating around were toy examples. Its highest-value production use case is actually modernizing legacy enterprise software, mapping out the request logic locked inside old clients.

The other common path is reading local databases directly. For instance, instead of faking API requests for my Xiaomi Band data, I rooted the phone to read the local SQLite database directly, then aggregate and analyze it daily. Replaying requests and reading local databases cover most client-side data extraction needs. Mobile rooting is a deeper personal rabbit hole, so I will leave it there.

Anti-Abuse Risk Control Is the Real Barrier

Being able to replay a request technically does not mean the server will let you through. Risk control works in two layers:

  • Client-side checks your “hands”: this mainly catches Level 1 simulated input. Scripted mouse trajectories are often suspiciously uniform—real hands accelerate and jitter, while teleporting clicks scream “bot.”
  • Server-side checks your “rhythm”: this mainly catches request replay. When a real person opens a page, the browser fires a dozen side requests (images, telemetry, page views). A script that fires only the single high-value endpoint once per second on the dot is like walking into a supermarket straight to the register without glancing at a single shelf, every minute on the minute—of course security is going to notice.

The point here is not teaching anyone how to bypass defenses, but drawing a crisp boundary: stay away from core data feeds of major platforms; your home turf is authorized non-core workflows, internal legacy OA systems, small SaaS tools, and your own devices—and even there, bake rate limits, retries, and error handling into your Loop, or you will still get throttled or temporarily locked out.

If you want to deeply understand how risk control works under the hood, I strongly recommend the book Essentials of Risk Control: Anti-Fraud in Internet Businesses (《风控要略:互联网业务反欺诈之路》, Chinese). In my view it is required reading for anyone running an internet business. After reading it—whether you are dealing with WeChat domestically or Anthropic / OpenAI’s official account systems overseas—you will have a much deeper grasp of what platforms are defending against and how they score behavior.

Essentials of Risk Control (Chinese edition cover)
Essentials of Risk Control (Chinese edition cover)

Two final practical reminders:

  • Never use Anthropic or OpenAI official subscription accounts for reverse engineering or binary analysis—it violates terms of service, triggers risk control fast, and leads to bans (and official models’ strict safety policies frequently refuse anyway). Claude Code and Codex are just software shells: when analyzing your own authorized internal systems or personal devices, point their API endpoint to third-party models like GLM-5.3 or DeepSeek V4.1 Flash. Your primary accounts stay safe, and the work moves far more smoothly.
  • Do not reinvent the wheel—have your Agent search GitHub first. Most common needs already have an open-source project you can adapt instead of burning effort on non-core plumbing.

Anti-Abuse Risk Control Is the Real Barrier: Two Layers & Safety Boundaries
Anti-Abuse Risk Control Is the Real Barrier: Two Layers & Safety Boundaries

4. Building the Highway: A “Transit Bridge” for Legacy Modernization

At the end of the day, a reverse-engineered endpoint is just a URL plus a key (cookie or signature)—no different in essence from a paid third-party API (like the API key you plug into Claude Code). Since they are all keys, they belong in one place—the Key Proxy I introduced in Old Tree, New Blossoms: How a Traditional Team Lands Agents.

Think of a hotel: it never hands the master key to guests; the front desk issues room cards. Each card opens only specific doors, expires at checkout, logs every swipe, and can be revoked individually if anything goes wrong. Key Proxy is that front desk: real credentials stay locked inside, and every Agent or project gets a scoped room card (Key). aru is the front desk on the device side; Key Proxy is the front desk on the API side. Key Proxy remains an internal self-hosted service and is not open-sourced, so here I will focus on its design.

1. Act as a Transit Bridge: Launch New Workflows Without Breaking Legacy Ones

First, what I find most valuable: it serves as a transit bridge for legacy modernization—launching new AI workflows without taking down existing business.

Anyone who has touched a legacy system knows the fear: change one thing and production might keel over. My approach is not to touch it—build a bridge in front of it instead. All new AI traffic crosses the bridge, so the legacy system only ever sees one polite, well-behaved visitor. Per-team permissions and quotas, endpoint allowlists, rate and concurrency limits, plus full audit logs and billing all live on the bridge. When the next project needs the same legacy system, it just picks up a new room card at the front desk instead of rebuilding everything from scratch.

We have genuinely seen high-frequency Agent calls knock over an internal legacy system, and we have hit external 429 Too Many Requests throttling and temporary account locks. Underneath is a species-level difference between how humans and Agents use software—legacy systems were designed for humans, and Agents are a completely different species:

  • Completely different cadence and concurrency: a human views one page at a time, pauses to think, grabs water, and clocks out; Agents run 24/7 and can fire dozens of parallel requests in seconds to gather context.
  • Opposite reactions to errors: when a page hangs, a human waits or moves on; an Agent’s instinct is “it failed—retry immediately.” One minor hiccup in a legacy system turns into a retry storm across a swarm of Agents, taking the service down.
  • Higher risk of duplicate writes and race conditions: a human at worst double-clicks Submit; an Agent frequently hits a timeout after the legacy server already created the order or charged the card, assumes failure, and submits again. Without idempotency, you get duplicate orders and notifications—and parallel Agents overwrite the same record far more easily than humans.
  • Emergent usage patterns humans never imagined: endpoints nobody ever clicked frequently—because no human had the time—suddenly become hot paths the moment Agents discover they exist (e.g., checking inventory on every quote, production schedule, and order follow-up).

You cannot rewrite every legacy system overnight just to adopt Agents, so absorb all of these species differences on the bridge first: set two-tier rate limits like a national park—each tour group (individual Agent or team) has a headcount cap, and the park itself (the legacy system) has a total concurrency and volume cap. Exceed either and the bridge cleanly replies “too fast, try again shortly.” Separate high-frequency Agent traffic from foreground human traffic, and wrap write operations with circuit breakers (pause when errors spike) and idempotency keys (process each order once). For a solo user running low-frequency, low-risk tasks, direct calls are fine; the moment multiple teams share a fragile legacy system, this bridge pays for itself immediately.

2. Pair It with a Translation Layer: Reshape Legacy APIs for Agents

The second piece does not strictly belong inside Key Proxy, but must accompany it: translating human-oriented APIs into Agent-oriented APIs. The proxy itself handles keys, rate limits, and accounting without touching business semantics; translation lives right behind it in a thin layer of lightweight tools—small services or CLIs for Agents, mirroring how aru leaves actual pixel-clicking to upstream adapters. And who writes this translation layer? Your Agents.

Why bother? Can’t you just dump raw legacy JSON straight into the Agent?

Not really. In Context Is All You Need, I compared the context window to a workbench with finite surface area. Feeding raw legacy payloads directly onto that workbench immediately hits three traps:

  1. The workbench floods with junk—burning money and degrading reasoning: querying “ad performance over the past month” often returns 100,000+ characters of raw rows, 90% of which are internal IDs, repeated structures, and irrelevant columns. One call fills the workbench, burns tokens, and distracts the model into hallucinating.
  2. Cryptic field names force the model to guess: legacy databases are full of abbreviations like stat_type_2 or biz_flag that only veteran engineers understand. If stat_type_2 actually means “net GMV after refunds” and nobody explains it, the model treats it as gross GMV, inflating ROI and skewing every downstream conclusion.
  3. Fragmented multi-step choreography: checking how much a customer still owes might require looking up customer ID by name, fetching order lists, pulling payment records per order, and summing them up. Explaining that whole dance in a prompt is slow and prone to skipped steps.

When CLIs surged earlier this year, many vendors simply wrapped old APIs one-to-one, hitting all three traps. Truly adapting APIs for Agents comes down to three rules:

  • Summaries first, drill down on demand (progressive disclosure): just like a Skill exposes a short description first and loads full instructions only when invoked, return a compact summary on the first call (compressing 100k characters to a few hundred) and let the Agent call a granular tool only for specific records it needs.
  • Make every field self-explanatory: spell out formulas and units right in the response or tool schema so the model never guesses.
  • If it can be a script, do not lean on a prompt: bundle deterministic multi-step queries and data cleaning into a single script or tool. One call returns clean data—saving context and boosting reliability.

Put simply, API translation is not cosmetic: it keeps deterministic cleaning, assembly, and noise inside the tool layer so every single line entering the Agent’s context serves judgment, reserving its scarce attention for real business decisions.

A quick before-and-after (illustrative numbers):

Before: Calling “ad data” dumps 100,000+ characters of raw rows—hundreds of records, dozens of cryptic abbreviated fields each. After: “412 ads over the past 30 days, total spend $86k; top 5 and bottom 5 by ROI below… To inspect a specific ad, call ad_detail(ad_id).”

3. Feed Call Logs Back into Legacy Refactoring

The third piece is iterative review. In theory, the ideal end state is rewriting every legacy system from the ground up for Agents—but even with AI assistance, that is massive work and never happens overnight. The realistic path is “swapping the engine while flying”: let the bridge collect call logs first, exposing high-frequency hot paths and recurring errors. Take those signals back to the frontline staff actually using the system, verify what problem they are truly trying to solve, and optimize with precision.

For example: logs reveal that the “check inventory” endpoint is being hammered thousands of times a day, slowing down the legacy server. That could never happen in the human era—no person manually checks stock thousands of times a day. It happened because Agents discovered they had the tool and casually checked stock across every workflow, surfacing a latent business need. Step one is stabilizing the existing path: drop a cache in the middleware (serving repeated checks for the same SKUs from cache for a few minutes) to relieve latency and load immediately.

Then follow the logs back to the business team—and you discover what they actually wanted all along was “which SKUs are about to stock out?” Once that is clear, abstract it into a proactive low-stock alert, and the flood of repetitive queries disappears on its own.

Let logs set priorities—stabilize the path first, then abstract the business need. Refactoring driven by real emergent usage delivers far more leverage.

Dual Front-Desk Overview: aru Manages Devices, Key Proxy Manages APIs
Dual Front-Desk Overview: aru Manages Devices, Key Proxy Manages APIs

Closing Thoughts

In Every Setback, a Lesson, I argued that the two most important words of the Agent era are Context and Loop. What this post does is pull previously “human-only” software and devices—closed systems with only UIs and no public APIs—into the orbit of those two words:

  • Context: whatever data is visible on screen—whether an Agent reads it off the UI at first or calls the backend directly later—can ultimately become accessible context; and the stream of call logs itself becomes the truest business context you have.
  • Loop: browser and desktop control close the human breakpoints first, high-frequency steps harden into scripts, APIs, and gateways, the transit bridge protects legacy stability, and call logs loop back to sharpen Agent tooling while showing exactly which part of the underlying system to refactor next.

Use official APIs first whenever they exist.

Let Agents wear the trail first, then let logs tell you which stretch to pave. Once the road is paved, humans step back from repetitive clicks and save their finite attention for the next valuable exploration—and Agents save theirs for decisions that actually require judgment.

Just one practitioner’s perspective—may not fit every case, but I hope it helps.


Appendix: Reference Material for Agents

Human readers can skip this—just hand the link to your Agent. Public URLs and statuses of third-party tools were verified live on 2026-12-01 (updated 2026-12-03: agent-remote-use / aru publicly released as v0.1.0).

Third-Party Tools

ToolPurposeLink
Kimi Browser Extension (formerly Kimi WebBridge)Chrome / Edge browser control extension with local Agent modekimi.com/en/products/kimi-browser-extension (X: @Kimi_Moonshot)
Kimi CodeCLI Coding Agent with official Computer Use plugin (silent background control on macOS, callable by other local Agents)github.com/MoonshotAI/kimi-code (X: @Kimi_Moonshot)
ego liteBrowser designed for human-Agent collaboration (macOS / Windows; migrates & installs Chrome extensions; free closed-source binary, MIT docs/skills repo)github.com/citrolabs/ego-lite (X: @ego_agent)
agent-desktopAccessibility-tree desktop control (Vercel Labs, Apache-2.0; non-intrusive cursor, requires GUI session; screenshot fallback)github.com/vercel-labs/agent-desktop (X: @vercel_dev)
cua / cua-driverHybrid accessibility-tree + screenshot desktop driver & sandbox (MIT driver, perception fallback)github.com/trycua/cua (X: @trycua)
LCUDecouples Codex Computer Use for MCP-compatible clients (Apple Silicon macOS / Linux; requires local official ChatGPT desktop runtime)github.com/amontlabs/lcu (X: @0xpolarzero)
OrcaMulti-machine Agent fleet orchestration using your own subscriptions, strong on terminal/text workflowsgithub.com/stablyai/orca (X: @orca_build)
HerdrMulti-machine, multi-device Coding Agent host over SSH / Tailscaleherdr.dev (X: @herdrdev)
agent-remote-use (aru)Multi-Agent scheduling gateway for shared real devices (author’s project; open-sourced v0.1.0; gateway/node/adapter architecture supporting Windows/macOS/Linux desktops; FSL-1.1-MIT converting to MIT after 2 years; private-network only, requires logged-in unlocked GUI session)github.com/zlxlabs/agent-remote-use, 60s intro video MP4 (Chinese)
agent-deviceDevice-layer adapter for phones & emulators (attached to Mac nodes in aru; supports iOS/Android simulators and USB Android phones)github.com/callstack/agent-device (X: @callstackio)
CookieCloudEnd-to-end encrypted browser cookie sync (self-host on private LAN only; never expose publicly)github.com/easychen/CookieCloud
reaReverse-engineering app behavior & local binaries with Agents (official repo morluto/rea and rea.tools only—beware clones)github.com/morluto/rea (X: @reatools)
Yingdao RPAEnterprise AI Agent & RPA automation platformwww.yingdao.com
NetEase UU RemoteRemote desktop software for humans (used as our “human fallback count” metric)uuyc.163.com
Proxmox VEOpen-source server virtualization platform (Windows VM licensing separate)proxmox.com · Proxmox VE
TailscaleMesh VPN recommended as aru’s private network backbonetailscale.com

Companion Tools, Terms & Further Reading

ItemNotesLink
Claude Code / Claude in ChromeClaude Code docs; official Chrome extension for browser controlcode.claude.com/docs/en/overview, code.claude.com/docs/en/chrome
CodexOpenAI Codex (native Computer Use, built-in desktop browser & official Chrome extension)openai.com/codex
Apple macOS 27 SLAmacOS virtualization license terms & limitsapple.com/legal/sla/docs/macOS27.pdf
FSL-1.1-MITLicense used by aru (non-competing use; converts to MIT after 2 years)fsl.software
PiKVMMature open-source reference for hardware KVM controlpikvm.org
Essentials of Risk Control (Chinese)Must-read on internet anti-fraud & platform risk control (from WeChat to Anthropic/OpenAI official account systems)WeRead

Based on a 62-minute Lark voice recording; fact-checked with Codex; edited and proofread with Claude Code + Opus 5.5 and AGY + Gemini 4 Neon; original illustrations generated with GPT Image 2.5 and localized to English with Nano Banana Pro.