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.

SourceBuilding 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 →