autogen icon indicating copy to clipboard operation
autogen copied to clipboard

Integration: cowork-to-code-bridge for local code execution in AutoGen agents

Open abhinaykrupa opened this issue 5 months ago • 1 comments

Problem

AutoGen agents building complex workflows need reliable local execution for code tasks without additional API billing.

Solution: cowork-to-code-bridge MCP Integration

cowork-to-code-bridge exposes Claude Code as local execution backend.

Key Features

  • ✅ No API keys — existing subscription
  • ✅ Full repo context — agents have local access
  • ✅ MCP standard — easy integration
  • ✅ Production-ready — tested and documented

How It Works

from autogen import UserProxyAgent, AssistantAgent

assistant = AssistantAgent()
user = UserProxyAgent(
    code_execution_config={
        "executor": "escalate_to_claude",
        "bridge_root": "$HOME/.cowork-to-code-bridge"
    }
)

assistant.initiate_chat(user, message="Build and test the API")

Why This Matters

AutoGen users orchestrating multi-agent workflows need local execution without separate API management.

Reference

  • GitHub: https://github.com/abhinaykrupa/cowork-to-code-bridge
  • Docs: https://github.com/abhinaykrupa/cowork-to-code-bridge/blob/main/docs/MCP_SERVER_IMPLEMENTATION.md

Proposed Action

Integration example or extension showing how to use cowork-to-code-bridge as code execution backend.

(Happy to contribute example.)

abhinaykrupa avatar Jun 16 '26 11:06 abhinaykrupa

Closing for revision. Will resubmit focused on AutoGen's code execution configuration patterns.

abhinaykrupa avatar Jun 16 '26 13:06 abhinaykrupa