Cowork to Code Bridge

Cowork to Code Bridge is an open-source orchestration harness developed by Abhinay Krupa. It connects Claude interfaces (such as Claude Cowork or desktop-based Claude workflows) with local developer execution environments running Claude Code. The bridge enables remote or sandboxed Claude environments to dispatch coding tasks and command executions directly to a local development machine. Operationally, the harness runs a local background daemon that accepts execution requests through a client library (`bridge_client.py`) and a Claude plugin integration (`.claude-plugin`). It supports synchronous execution via remote calls as well as an asynchronous queue mechanism (`queue_task` and `poll_task_result`). This async pattern allows web or sandbox sessions with short command timeouts (such as 45-second bash execution limits) to trigger long-running Claude Code sessions locally and poll for completed results incrementally. What differentiates Cowork to Code Bridge is its focus on bridging context boundaries between Anthropic's interactive environments and local CLI agent execution. Rather than reinventing agentic coding logic, it provides the bridge daemon, task queue, and client interfaces needed to let conversational Claude instances securely delegate filesystem and terminal tasks to local Claude Code instances. The project is open-source on GitHub and distributed as a Python package on PyPI, making it free to use alongside user-provided Anthropic Claude API credentials or Claude Code subscriptions.

Tags: ai agent, cli, coding agent, developer tools, OpenSource

Visit Cowork to Code Bridge

Key features

  • Asynchronous Task Queue — Dispatches tasks via queue_task() and polls with poll_task_result() to bypass sandbox execution timeouts. - Claude Plugin Integration — Provides a .claude-plugin configuration for direct discovery and invocation from compatible Claude interfaces. - Local Daemon Architecture — Runs a background execution bridge on the local machine managing agent execution. - Claude Code Orchestration — Delegates tasks directly to local Claude Code runs without manual terminal switching. - Synchronous & Asynchronous Execution Modes — Supports both immediate blocking execution via remote calls and non-blocking background task polling.

Use cases

Use Case: Bypassing Sandbox Timeouts for Long Builds A developer working within a cloud-hosted Claude sandbox needs to execute a lengthy Claude Code automated refactoring run. Instead of hitting the sandbox's short bash timeout, the agent queues the task asynchronously to the local daemon and polls for status updates until completion.

Use Case: Delegating File System Edits from Claude Interfaces A developer chatting with Claude in a web or desktop interface wants the AI to apply large multi-file diffs to a local repository. The bridge plugin receives the command and routes it directly to a local Claude Code runner with direct filesystem access.

Use Case: Hybrid Interactive-to-CLI Workflows A team uses high-level chat for architecture review and leverages Cowork to Code Bridge to trigger automated terminal implementation steps locally without manual copy-pasting of scripts.

Who it is for

This tool is intended for developers using Anthropic Claude interfaces alongside Claude Code who want seamless delegation between interactive chat environments and local terminal execution. It is not designed for teams looking for standalone, non-Anthropic AI coding engines or all-in-one proprietary IDE replacements.

Install guide

Installation Install the package from PyPI or use pip: bash pip install cowork-to-code-bridge Alternatively, clone the repository and install from source: bash git clone https://github.com/abhinaykrupa/cowork-to-code-bridge.git cd cowork-to-code-bridge pip install -e .

First Run Ensure Claude Code is installed and configured on your local machine. Start the background bridge daemon: bash # Start the bridge daemon on your local workstation cowork-bridge start Verify that the bridge root directory is properly configured and accessible.

Example Session In your Claude interface or via Python script, submit an asynchronous coding task to Claude Code: python from cowork_to_code_bridge import queue_task, poll_task_result # Queue a task for local Claude Code execution task = queue_task('scripts/run_claude.sh', args=['Refactor auth middleware to use JWT verification'], timeout=600) task_id = task['task_id'] print(f'Task queued: {task_id}') # Poll for completion status result = poll_task_result(task_id) print(result)

Part of CLI Coding Agents

Categories: AI Coding Agents, Code Assistants, Developer Tools

Related CLI agents

  • OpenCode — OpenCode is an open-source AI coding agent developed by Anomaly that operates across terminal environments, desktop applications, and IDE extensions.…
  • goose — goose is an open-source, general-purpose AI agent built in Rust, hosted under the vendor-neutral Agentic AI Foundation (AAIF) at the…
  • SWE-agent — SWE-agent is an open-source autonomous software engineering agent harness built and maintained by researchers from Princeton University and Stanford University.…
  • OpenHands — OpenHands (formerly OpenDevin) is an open-source autonomous AI software development agent and orchestration platform. It provides an extensible runtime environment…
  • Plandex — Plandex is an open-source terminal-based AI coding agent designed to handle complex, multi-file engineering tasks in large codebases. Created by…
  • Weaver — Weaver is an open-source agent harness and orchestration framework maintained by sean35mm on GitHub. Built on top of the Bun…
  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories