repository-harness

作者 hoangnb24已验证

Turn any repo into an agent-ready workspace for Claude Code, Codex, Cursor, and other coding agents.

1,187
Stars
428
Forks
Rust
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/hoangnb24/repository-harness

快速入门

使用 repository-harness 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

repository-harness

Turn a software repository into a legible, agent-ready workspace.

repository-harness installs a small repository protocol and a safe updater. The repository remains the system of record: product documents, decisions, plans, code, tests, CI, and runtime evidence define the work.

It is not a task database, story tracker, agent orchestrator, or application runtime.

What It Solves

Coding agents often fail for ordinary engineering reasons:

  • important intent exists only in chat;
  • the repository does not identify authoritative documents;
  • small changes acquire unnecessary process;
  • long changes lose decisions and recovery context;
  • completion is claimed without behavior-level proof; and
  • an agent invents product policy when the request leaves a material choice open.

Harness provides a compact entrypoint, a navigable repository map, durable plans only when work needs them, explicit judgment boundaries, and mechanical validation.

Default Workflow

read-only request
  -> inspect the smallest authoritative surface
  -> answer with evidence

bounded change
  -> inspect authority and affected behavior
  -> implement the smallest coherent change
  -> run relevant proof

multi-session or coordinated change
  -> create docs/plans/active/<plan>.md
  -> keep decisions, progress, recovery, and validation current
  -> move the validated plan to docs/plans/completed/

material product ambiguity
  -> stop before mutation
  -> present the concrete choice and consequences

A typo does not need a plan. A migration spanning sessions does. A request to “add rate limiting” without a quota, identity key, enforcement owner, shared state topology, or response contract must stop before implementation.

Start with AGENTS.md, then docs/WORKFLOW.md.

What Gets Installed

The default core contains:

  • a compact AGENTS.md entrypoint;
  • the repository workflow and documentation map;
  • product, decision, and execution-plan structure;
  • optional templates for durable plans, decisions, application runbooks, and evidence-backed Harness improvements; and
  • an invariant-encoding pattern and skill, plus explicit-only onboarding and proposal-audit skills.

It does not install application architecture, product policy, validation commands, credentials, a database, schemas, orchestration, or background processes.

The exact payload is declared in scripts/harness-install-files.txt.

Install

From a target repository:

curl -fsSL "https://raw.githubusercontent.com/hoangnb24/repository-harness/main/scripts/install-harness.sh?$(date +%s)" |
  bash -s -- --yes

On PowerShell:

& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/hoangnb24/repository-harness/main/scripts/install-harness.ps1"))) -Yes

Use --merge / -Merge to preserve existing files and add only missing Harness paths. Use --override / -Override only when replacement is intentional. Use --dry-run / -DryRun to preview.

The bootstrap downloads a versioned harness binary and checksum, verifies release identity, and delegates installation to that candidate.

Maintain An Installation

scripts/bin/harness status
scripts/bin/harness doctor
scripts/bin/harness update --dry-run
scripts/bin/harness update

The updater stores the exact upstream base under .harness-core/, performs a three-way merge, backs up changed files, and activates the result transactionally.

If local and upstream edits overlap, no managed file or executable changes. Harness retains BASE, LOCAL, UPSTREAM, and RESOLVED copies plus the frozen managed input set. After a human resolves the semantic choice:

scripts/bin/harness update --continue --dry-run
scripts/bin/harness update --continue

Use scripts/bin/harness update --abort to discard only the staged resolution.

Optional Skills

Invariant enforcement routes accepted rules through repository-native validation:

$encode-invariant

Brownfield onboarding is explicit and read-only first:

$onboard-repository

Harness improvement is also explicit and requires baseline-to-rerun evidence:

$improve-harness

Engineering advice is a separate opt-in payload:

scripts/install-harness.sh --with-engineering-wisdom --yes /path/to/project

No skill runs during installation. Onboarding and Harness improvement remain explicit-only; invariant encoding responds only to matching work requests.

What We Prove

Harness owns three release-evidence boundaries:

  1. Fresh installation: the declared core is installed without fabricated application truth or hidden lifecycle state.
  2. Repository navigation: an agent follows repository authority, avoids speculative product policy, and can stop at a real decision boundary.
  3. Safe maintenance: updates verify identity and checksum, preserve local edits, stage conflicts, reject drift, and recover interrupted transactions.

Operating an arbitrary consumer application end to end remains consumer-owned research. Harness does not claim that installation alone supplies runtimes, fixtures, credentials, logs, or interface automation.

Protocol V1 End Of Life

The former SQLite harness-cli and machine protocol v1 ended support on 2026-08-10. The last published compatibility release is harness-cli-v0.1.22. Existing consumers may pin that immutable release, but the current repository no longer builds, installs, tests, or publishes it.

Harness does not automatically delete legacy binaries, databases, schemas, or state from consumer repositories.

See decision 0027.

Development

scripts/validate-premerge.sh

The contract runs Rust formatting, tests, Clippy, installer and workflow checks, release guards, documentation checks, shell syntax, and git diff --check.

常见问题

What is repository-harness?

repository-harness is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by hoangnb24. Turn any repo into an agent-ready workspace for Claude Code, Codex, Cursor, and other coding agents. It has 1,187 GitHub stars.

Is repository-harness safe to use?

Yes. repository-harness passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install repository-harness?

Clone the repository with "git clone https://github.com/hoangnb24/repository-harness" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is repository-harness written in?

repository-harness is primarily written in Rust. It is open-source under hoangnb24 on GitHub, so you can review or fork the full source.

Are there alternatives to repository-harness?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh repository-harness against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情