cowork-to-code-bridge — delegate to Claude Code on local machine from LlamaIndex agents #22045
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.
-
Hey LlamaIndex community!
Building LlamaIndex agents or workflows that need to execute code or tasks on the user's actual local machine (not a cloud sandbox)? Here's a pattern that may be useful.
What it is
cowork-to-code-bridge — an async file-based bridge that lets LlamaIndex agents delegate complex execution tasks to Claude Code on the local machine. The pattern fits naturally into LlamaIndex's tool/agent model.
Integration with LlamaIndex
What this unlocks
queue_task, poll withpoll_task_resultidempotency_keymax_budget_usdcap per operationWhy async matters for agent frameworks
LlamaIndex workflows can block on long-running tasks. The async model lets your agent queue work, do other things, then collect results — no thread blocking.
Repo: https://github.com/abhinaykrupa/cowork-to-code-bridge
Happy to write a LlamaIndex-specific integration example if there's interest — especially around the
AgentRunnerorSubQuestionQueryEnginepatterns where local execution could be one of the sub-tools.Beta Was this translation helpful? Give feedback.
All reactions