Skip to content
UsecaseBoard
← All use cases
github-discussionslocal-execution

Queue a local Claude Code test run from a sandboxed agent workflow

At a glance

A developer built a file-based bridge that lets a sandboxed agent ask Claude Code on a local machine to run and repair a test suite. This workflow is listed under local-execution, asynchronous-workflows, agent-tooling.

Agents / tools
Microsoft Agent Framework, Claude Code, cowork-to-code-bridge

Building a tool for these workflows? See weekly rates.

What they did

The agent writes a task into a shared directory. A local daemon executes it and writes back results. The example queues run_claude.sh with a test-and-fix request, then polls by task ID so a long build can outlast a short sandbox session.

How it went

The author reports a working implementation with more than 330 tests and support for macOS, Linux, and WSL2.

Worth knowing

The bridge exposes per-task budgets, permission scopes, an approval option, and idempotency keys. The author is still seeking feedback on the best Agent Framework integration point.

Save ideas in this browser. Upvotes count across the board.

Prompt excerpt

Reproduction outline (paraphrased): Share the queue and results directories, start the local daemon, enqueue the Claude Code script with a test-and-fix request and an idempotency key, then poll for results.

Sponsored

CodeBuddy

Tencent Cloud AI coding assistant for IDE and CLI.

Try CodeBuddy ↗
Explore all →
hackernewsCI

CircleCI Chunk sidecars validate agent code in microVMs before CI

CircleCI's Chunk sidecars run scoped microbuilds in Firecracker/E2B microVMs that mirror CI, hooking agent stop/eval events so Claude Code, Codex, or Cursor changes are validated before commit—~27s microbuilds and 3–5× lower token burn on retries in their tests.

ChunkClaude CodeCodex+2
Source ↗
hackernewsClaude-Code

Kelos runs Claude Code and Codex in K8s pods that retry when CI fails

Kelos orchestrates Claude Code, Codex, Gemini, or OpenCode in ephemeral Kubernetes pods as CRDs—watching bug issues, drafting fix PRs, self-reviewing, and retrying when CI fails—while the author still does final review and merge.

KelosClaude CodeCodex+1
Source ↗