An AI agent drives Chrome in a CreateOS desktop sandbox, captures the site's hidden JSON API, writes and fixes a Python client until it matches the screen, then ships it as a paid, auto-pausing API with a typed schema and an MCP endpoint.

By (@notnanyaaa) · · Automation

An AI agent drives Chrome in a CreateOS desktop sandbox, captures the site's hidden JSON API, writes and fixes a Python client until it matches the screen, then ships it as a paid, auto-pausing API with a typed schema and an MCP endpoint. - image 1 An AI agent drives Chrome in a CreateOS desktop sandbox, captures the site's hidden JSON API, writes and fixes a Python client until it matches the screen, then ships it as a paid, auto-pausing API with a typed schema and an MCP endpoint. - image 2

How I made it Built in about 5 hours by orchestrating a team of AI coding agents in parallel. I wrote a plan and a shared "contracts" file (interfaces plus event schema) first, then gave each agent exclusive ownership of its files: sandbox client, agent loop, publishing + billing, web UI. Agents built against fakes until the real pieces landed, and one orchestrator tested and merged a PR per agent. 28 PRs by the end.
How it works The agent opens the site in a real Chrome inside an isolated sandbox, records the page's network traffic, picks the hidden JSON endpoint behind the data, writes a Python client, runs it, and fixes it until the output matches what was on screen. Then it publishes a typed API with real parameters (page, filters), an OpenAPI schema and an MCP endpoint, billed per call.
What I learned • "Verify against the screen" is the whole game. Without a ground-truth check, agents happily ship clients that return plausible but wrong data. • Network allowlists make the best demo moment: the sandbox starts locked to one site, and you watch it unlock exactly one new host when the agent finds the hidden backend. • Running agents in parallel only works with strict file ownership and a contracts file. Without them they overwrite each other within minutes.
What surprised me • Most "no API" sites actually have a clean JSON API one click away. Some only fire it when you touch a filter, so the agent has to interact, not just load the page. • Infrastructure limits, not the AI, were the real bottleneck: daily sandbox quotas, concurrency caps, and deleted VMs still counting for a few seconds. • One run takes ~70 s with a browser + LLM, and every call after that is ~1 s with neither.

Tech stack

  • Claude (Opus 5.5)
  • Vercel

Prompt steps

  1. Step 1

    5 Prompts I Actually Use to Ship AI Products Fast
    
    
    1. Parallel Agent Brief With File Ownership
    
    Prompt:
    You own the sandbox layer for Unclick, an app that turns any website into an API.
    Read docs/PLAN.md and unclick/contracts.py first. contracts.py is the source of truth: implement the Sandbox and Desktop protocols exactly (method names, signatures, event fields).
    Build (only these files: unclick/sandbox.py, unclick/desktop.py, unclick/sandbox_assets/*, scripts/smoke_*.py):
    1. sandbox.py: a sync httpx REST client with create, exec, files, egress, ingress, pause/resume, fork and destroy. Retry on 429/503 with backoff.
    2. desktop.py: boot a desktop image with Chrome and a CDP network recorder that logs every JSON response to /tmp/captures.jsonl.
    3. scripts/smoke_sandbox.py: create, exec, egress block/allow, public URL, pause, fork, destroy (always in finally).
    Until agent.py (owned by another agent) exists, test against unclick/fakes.py.
    Rules: don't edit files you don't own. If contracts.py needs a change, make it additive only and say so. Don't commit, don't switch branches, don't touch .env. If the API key is missing, build from the docs and report exactly what's untested. Time…
  2. Step 2

    https://github.com/somewherelostt/unclick
    
    check out our github

Comments (1)

2 likes · 1 comment · 9 views

Explore more on Prompted