Turn any repository into an agent-readable, governed workspace for AI coding agents.
# Agent-Harness
[](https://github.com/zuoyui/Agent-Harness/actions/workflows/ci.yml)
[](https://opensource.org/licenses/MIT)
[](https://github.com/zuoyui/Agent-Harness/generate)
**Turn any repository into an agent-readable, governed, feedback-looped workspace.**
*An agent-agnostic harness engineering framework for AI coding agents.*
> Most AI coding agents fail not because the model is weak, but because the repository is unreadable, under-specified, and missing executable constraints. Agent-Harness fixes this.
## Framework Overview
```mermaid
flowchart TB
A["Agent-Harness"] --> B["Core Layer<br/>AGENTS, architecture, docs, governance"]
A --> C["Adapter Layer<br/>Windsurf, Codex, Claude Code, Cursor"]
A --> D["Example Layer<br/>Next.js, Python service, Monorepo"]
```
## Quickstart
### Option 1 — Use as template
[**→ Use this repository as a template**](https://github.com/zuoyui/Agent-Harness/generate)
### Option 2 — Add to an existing project
```bash
cp -r core/ your-project/
cp -r adapters/codex/.codex your-project/
cp -r core/governance/* your-project/.github/
```
## Supported Agents
| Agent | Status |
|-------|--------|
| [Windsurf](adapters/windsurf/) | ✅ Full implementation |
| [Codex](adapters/codex/) | ✅ Full implementation |
| [Claude Code](adapters/claude-code/) | ✅ Full implementation |
| [Cursor](adapters/cursor/) | 📖 Guide available |
| [Other agents](adapters/generic/) | 📖 Generic guide |
## Examples
| Example | Scenario |
|---------|----------|
| [Next.js App](examples/nextjs-app/) | Frontend/full-stack with Tailwind and TypeScript |
| [Python Service](examples/python-service/) | Backend service with security constraints |
| [Monorepo](examples/monorepo/) | Multi-package project with nesteAgent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.