Claude Code Harness adds autonomous Plan-Work-Review cycles

A new wrapper for Claude Code and other AI assistants introduces a Go-native engine to speed up execution and a structured autonomous development loop.

cpaua2 min247
Claude Code Harness adds autonomous Plan-Work-Review cycles

The Chachamaru127/claude-code-harnessgithub.com/Chachamaru127/claude-code-harness repository provides a dedicated development wrapper that implements an autonomous Plan→Work→Review cycle for AI assistants. It integrates with Claude Code, Codex CLI, Cursor, and Grok to automate the transition from specification to implementation and verification, reducing the need for manual re-explanation of tasks.

Go-native engine and safety guardrails

The tool replaces Node.js hooks with a Go-native guardrail engine, reducing execution latency from 40–60 ms to approximately 10 ms. This engine enforces 13 protective rules that automatically block dangerous operations, such as rm -rf, forced pushes to the main branch, and the reading of secrets.

The system uses a runtime floor to manage permissions for billing, external sends, and production deployments. While some rules are configurable per project, the assistant is prohibited from rewriting protected settings to bypass these checks.

Autonomous development workflow

Harness manages project state through spec.md for specifications and Plans.md for task tracking. The workflow is divided into specific skills: /harness-plan generates the initial scope and completion criteria, while /harness-work all executes all approved tasks, including necessary checks and corrections.

To ensure quality, /harness-review triggers a separate review process from the implementation phase. Serious findings during this stage block the completion of the task. For larger jobs, the /breezing command divides work between agents, and /harness-loop allows for repeated iterations, defaulting to eight cycles.

Integration and installation

The tool is supported for Claude Code, Codex CLI, Cursor, and Grok. For users of Claude Code, installation is performed via the marketplace using the following commands:

bash
/plugin marketplace add Chachamaru127/claude-code-harness
/plugin install harness@claude-code-harness-marketplace
/harness-setup

For other tools, the repository provides specific setup scripts. Users can clone the repository and run the corresponding script, such as scripts/setup-cursor.sh or scripts/setup-grok.sh. This allows developers to manage code review strategies and task execution more consistently across different AI environments.

Context and state management

To prevent context loss during long tasks, the system utilizes a pre-packaging hook. If a session is interrupted, the /harness-work --resume latest command recovers the recorded plan, changes, and check results from the .claude/state/ directory.

The tool is released under the MIT license and does not provide its own spending cap, as it relies on the underlying Claude Code limits and model provider fees. Project data remains in the local project folder, though the assistant still sends content to the provider according to its own data handling policies.

Sources

Chachamaru127/claude-code-harnessgithub.com/Chachamaru127/claude-code-harness
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.