Run host-side actions from a sandboxed Burr app via a local-first bridge (async, idempotent) #822
abhinaykrupa
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TL;DR: cowork-to-code-bridge is a small, local-first, MIT-licensed bridge that lets an agent running in a sandbox (Claude Cowork, or any MCP-aware framework) hand real work to Claude Code on your own machine — build/run apps, run tests,
git push,docker,brew/pip/npm, check RAM/disk/processes — and get results back, all over a shared bind-mounted directory.Why it might interest Burr users: Burr models apps as state machines with actions; some of those actions legitimately need to run on the host (kick off a build, run a test suite, shell out) while the orchestrating process is sandboxed or remote. The bridge gives you a durable, async boundary for exactly that escape hatch — without inbound ports or a tunnel.
The async shape maps cleanly onto a state machine:
queue_task()returns atask_idimmediately — your action can transition to a "waiting" state instead of blockingpoll_task_result(task_id)is idempotent — safe to call every tick from a polling nodecall_remote()when you do want a blocking actionidempotency_keyso a re-entered/retried action doesn't double-fire side effectsIt's a file-based RPC (a
BRIDGE_ROOTdir + a local daemon), stdlib-only on the sandbox side, idempotent, and reboot-surviving.Repo: https://github.com/abhinaykrupa/cowork-to-code-bridge — happy to hear where this abstraction breaks down for Burr-style workflows.
Beta Was this translation helpful? Give feedback.
All reactions