crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

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

Open abhinaykrupa opened this issue 5 months ago • 1 comments

Problem

Crew agents building multi-agent systems need local code execution without separate API keys or cloud dependencies.

Solution: cowork-to-code-bridge MCP Tool

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

How It Works

from crewai import Agent, Task, Crew
from crewai_tools import Tool

escalate_tool = Tool(
    name="escalate_to_claude",
    description="Escalate code tasks to Claude Code running locally",
    func=escalate_to_code_bridge
)

developer = Agent(
    role="Developer",
    tools=[escalate_tool]
)

task = Task(
    description="Debug the API and propose fix",
    agent=developer
)

Why This Matters

Crew users orchestrating multi-agent workflows can execute code locally without additional APIs or billing.

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
  • Live: Already integrated in Crew.ai workflows (see issue #6178)

Proposed Action

Integration example showing cowork-to-code-bridge as tool in Crew agents.

(Happy to contribute example.)

abhinaykrupa avatar Jun 16 '26 11:06 abhinaykrupa

Closing for revision. Will resubmit focused on CrewAI's production code execution patterns.

abhinaykrupa avatar Jun 16 '26 13:06 abhinaykrupa