Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By DengNaichenv0.2.0MITIn 1 marketplace
GitHub 多 Agent 工程护栏初始化插件:为新建/空仓库一键配置 Worktree 运行时隔离、共享契约只读保护、CODEOWNERS 写路径门禁与 Merge Queue CI(支持 Python / TypeScript / Go)。
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 marketplace, most starred first
github, harness, worktree, merge-queue, codeowners, multi-agent, python, typescript ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
GitHub 多 Agent 并发工程护栏初始化插件,适配 Claude Code、Codex、Antigravity (agy) 与 Cursor,支持 Python、TypeScript、Go(单栈与 Monorepo)。
用一条命令给空仓库或新建 GitHub 仓库同时立起多 Agent 并行开发的两道防线:
.worktrees/<branch-slug>(new-worktree / setup-worktree / finish-branch);worktree-runtime.mjs 为每个次级 worktree 派生稳定 worktree-id 和独占槽位(1..999),自动分配独立端口(API_PORT、WEB_PORT、POSTGRES_PORT)、独立 DATA_DIR、Docker Compose 项目名与 owner labels,支持一键回收与孤儿 GC;SessionStart / PreToolUse / WorktreeRemove)、Codex(environment.toml / hooks.json)、Cursor(worktrees.json)。.agents/ownership.json 声明 contracts 与各 domains,自动渲染 .github/CODEOWNERS 并校验零漂移;AGENT_SCOPE=<domain> 时,scripts/write-scope-guard.mjs 同时挂在 PreToolUse hook 与 .githooks/pre-commit,直接拒绝越界写入和未授权的契约修改(改契约须先走 AGENT_SCOPE=contracts 的前置 PR);go list),规则统一写在 .agents/arch-rules.json;.github/workflows/ci.yml 同时监听 pull_request、merge_group、push: main,经 scripts/ci-changes.py 按改动路由并在唯一聚合门禁 CI Result 收口;repo-harness github 通过 gh api 自动探测并适配仓库档位:
native-merge-queue):Organization Public / Team / Enterprise 仓 → 启用 main Ruleset + 原生 Merge Queue(SQUASH / ALLGREEN)+ 必过 CI Result;native-strict-pr):个人 Public / Pro 仓(GitHub Merge Queue 仅限 Org)→ 启用 main Ruleset + 服务端强制分支与最新 main 同步(strict_required_status_checks_policy)+ 必过 CI Result;local-guard):GitHub Free 私有仓 → 自动降级为 .githooks/pre-push + finish-branch --merge-serialized <pr> 本地串行合流兜底。| 工具 | 安装命令 |
|---|---|
| Claude Code | /plugin marketplace add DengNaichen/repo-harness,再 /plugin install repo-harness@repo-harness |
| Codex | codex plugin marketplace add DengNaichen/repo-harness,再 codex plugin add repo-harness@repo-harness |
Antigravity (agy) | agy plugin install https://github.com/DengNaichen/repo-harness |
| Cursor | git clone https://github.com/DengNaichen/repo-harness ~/.cursor/plugins/local/repo-harness,然后 Reload Window |
git clone https://github.com/DengNaichen/repo-harness ~/Developer/repo-harness
ln -s ~/Developer/repo-harness/bin/repo-harness ~/.local/bin/repo-harness
# Python 项目
repo-harness init /path/to/my-py-repo --stacks python --runtime ports --git-init
# TypeScript 项目
repo-harness init /path/to/my-ts-repo --stacks ts --runtime ports --git-init
# Go 项目
repo-harness init /path/to/my-go-repo --stacks go --runtime ports --git-init
repo-harness init /path/to/my-app \
--stacks go,ts \
--dirs go=backend,ts=frontend \
--runtime docker \
--owner @DengNaichen \
--git-init
# 激活仓库共享 Git hooks
git -C /path/to/my-app config core.hooksPath .githooks
# 验证入口、CODEOWNERS 一致性、写边界守卫、hooks 语法、CI 路由与架构检查
repo-harness verify /path/to/my-app
# 预览并应用远端 GitHub Ruleset + Merge Queue + Labels
repo-harness github /path/to/my-app --dry-run
repo-harness github /path/to/my-app
sync)当仓库陆续长出新服务/子包(如新增 cli/go.mod、worker/pyproject.toml、contracts/openapi.yaml)或插件发新版时:
# 1. 只读预览:扫描真实模块、契约、循环/越界依赖、受管文件升级与远端 Ruleset 漂移
repo-harness sync /path/to/my-app --dry-run --check-github
# 2. 安全增量落地(保留手工定制的 owner、customEdges 与本地改过的受管文件)
repo-harness sync /path/to/my-app --apply [--upgrade] [--ratchet-baseline] [--fix-github]
# 3. CI 零漂移门禁(有未登记模块、漂移或架构违规时退出非零)
repo-harness sync /path/to/my-app --check
sync --dry-run 也可以直接对尚未初始化的老仓库只读运行,输出模块拓扑、契约发现、依赖图与 onboarding 建议命令,零副作用。
# 1. 若任务涉及共享契约,先开 Contract PR 合入 main
wt_contract=$(.agents/skills/git-workflow/scripts/new-worktree contract/add-user-field)
# 在 $wt_contract 中设置 AGENT_SCOPE=contracts 修改 contracts/** 并提 PR 入 Merge Queue
# 2. 契约合入后,并行创建隔离 worktree 并按域锁死写权限
wt_be=$(.agents/skills/git-workflow/scripts/new-worktree feat/101-backend)
wt_fe=$(.agents/skills/git-workflow/scripts/new-worktree feat/102-frontend)
# Worker A(后端):AGENT_SCOPE=backend -> 越界改 frontend/ 或 contracts/ 会被 hook 直接拦截
# Worker B(前端):AGENT_SCOPE=frontend -> 越界改 backend/ 或 contracts/ 会被 hook 直接拦截
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub dengnaichen/repo-harness --plugin repo-harnessPlugins from other owners that cover similar ground