har
Health Gecti
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 76 GitHub stars
Code Basarisiz
- fs module — File system access in .har/agent-cli.sh
- process.env — Environment variable access in .har/agent-slot.sh
- fs module — File system access in .har/agent-slot.sh
- rm -rf — Recursive force deletion command in .har/provision-toolchain.sh
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
HAR: open agent harness (CLI + MCP) for coding agents. Isolated worktrees, deterministic verify, software factory workflows for Claude Code, Cursor, and Codex.
HAR: The open harness for multi-agent coding workflows
HAR is an open-source agent harness — a CLI and MCP server — for multi-agent coding workflows. Run a fleet of coding agents in isolated worktrees, with deterministic validation, verifiable proof, and full observability. Use it as a portable software factory for Claude Code, Cursor, Codex, or any MCP agent.
|
| ▶ Introduction demo — click the thumbnail to watch on YouTube |
Works with Claude Code · Cursor · Codex · any MCP agent.
What's included out of the box
- HAR. The core harness, available as both a CLI and an MCP server. It turns any repository into isolated worktrees with deterministic launch, verify, and teardown stages for coding agents to work in.
- Mission Control. HAR's open-source local dashboard. It gives you one place to keep track of every repository, worktree, run, validation, and artifact across your projects.
- Plugins. A growing ecosystem of open source plugins that further expand HAR's customizability and functionality.
Install
npm install -g @osfactory/har
Get started
cd my-app
har onboard # scaffold .har/ and print a prompt for your coding agent
har env launch 1 # isolated worktree + running stack for agent slot 1
har env verify 1 --full # run the project's real checks, record what passed
Full walkthrough: Quickstart.
Why HAR
Getting a single coding agent to work in a repo is easy. Scaling that into a real multi-agent workflow, where several agents run at once and humans still trust the output, is where it breaks down. HAR was built to close those gaps:
No standard way to run or verify a repo. That knowledge is scattered across a README, a CLAUDE.md, Cursor rules, and CI yaml today, drifting out of sync with each other and the actual codebase. HAR replaces all of that with one machine-readable contract (.har/) that Claude Code, Cursor, Codex, or any MCP agent reads the same way.
Multiple agents on one repo collide. Shared dev server, shared database, shared ports, conflicting git state. HAR gives each agent its own worktree, ports, and database per slot, so a fleet can genuinely run concurrently.
Trusting an agent's change means re-verifying it yourself. Every task runs the same deterministic verify step and leaves an evidence trail, logs, artifacts, a validated tree hash, so a reviewer can check proof of what ran instead of relying on the agent's self-report.
One platform's sandbox locks you in. If the contract lives inside a vendor's hosted dashboard, switching coding agents later means rebuilding the whole verification setup. HAR's contract is an open standard living in the repo itself, portable across whichever agent or tool you adopt.
Hand-rolled scripts rot as the stack changes. A new dependency, a new service, a new env var, and nobody updates the script until an agent's run fails for a confusing reason.
har env maintaindiffs your installed harness against current templates and flags drift before it causes a silent failure.
HAR coordinates the work around the model, so agents can focus on the code and reviewers can trust the result.
How HAR works
flowchart LR
D["Discover<br/>reads the harness contract"] --> I["Isolate<br/>one slot per agent"]
I --> A1["Agent 1<br/>own worktree, branch, ports, DB"] --> B1["Build"] --> V1["Verify"]
I --> A2["Agent 2<br/>own worktree, branch, ports, DB"] --> B2["Build"] --> V2["Verify"]
V1 --> H["Hand off<br/>branch + evidence"]
V2 --> H
Discover. The agent asks the harness what this project looks like, including its stack, its scripts, and what checks are available.
Isolate. Every task gets its own slot. That means a fresh copy of the repo on its own branch, with its own ports and, where the project needs it, its own database. Nothing is shared with the main checkout or with any other agent's slot.
Build. The agent edits and tests its work entirely inside that isolated copy. The main checkout stays untouched the whole time.
Verify. The project's own checks, whatever they are, run through the same pipeline every time and produce a consistent result. A full verification goes further and captures the state of the entire codebase at that moment, so a pass is tied to the exact code that was checked.
Hand off. Once verification passes, the session is torn down, but the branch and the proof of what ran are kept. A reviewer gets the code plus the evidence that it was checked.
Documentation
Everything beyond install and first commands lives at harproject.dev.
- Core concepts. Defines the terms the rest of the docs rely on, things like harness, slot, worktree, stage, run, and validation.
- Agent integrations. How to install HAR workflows for Cursor, Claude Code, Codex, and other MCP clients.
- Verification and commit gate. How HAR binds a successful check to exact code and enforces that result at commit time.
- Plugins. How to install framework-specific verification bundles, like Playwright and RocketSim, that register stages in your harness.
- CLI reference. Every command and option the
harexecutable exposes. - MCP tools. The structured tools an MCP-connected agent calls directly, for discovery, session control, verification, and evidence.
- Mission Control. How to run the local dashboard that tracks repositories, worktrees, runs, validations, and artifacts.
- Architecture. HAR's internal layers, contracts, and extension points, for anyone building a plugin or contributing to the core.
Contributing
See CONTRIBUTING.md for local setup, the dogfood harness loop, and architecture. Coding agents working on this repo should start with AGENTS.md. Maintainer release process: RELEASING.md.
Sponsors
HAR is sponsored by Kerno, runtime code and security tester for coding agents.
License
Licensed under the Apache License 2.0.
Security
Report vulnerabilities via SECURITY.md.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi