harness-gc
Skill119 starsChanged 54 days agoMITView on GitHub
Garbage Collection Agent — 定期扫描项目健康状态,检测文档/代码一致性漂移,自动发起修复提案。
2 other projects use a version of this.
Adopted by
Most recently taken up by
- loganware05/captains-compass-cursortheir own version, first seen Oct 12, 2026
- k1ein-chen/Harness-Starterword for word, first seen Sep 24, 2026
Other versions2 projects use a version of this.
Word for word · 1
- k1ein-chen/Harness-Starter★ 119100% same
Edited · 0
None found.
Wrote their own version · 1
- loganware05/captains-compass-cursor★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- handoverSkill
- harness-initSkill
- harness-modeSkill
- harness-startSkill
- tech-reviewSkill
- verify-goalSkill
The file
Files
Harness GC (Garbage Collection) Agent
核心原则
- 外部验证门 — 扫描结果来自
gc-scan.mjs,非 Agent 自我报告(Sniff 模式) - 执行与验证分离 — 写代码的 Agent 不给自己打分(Spotify 模式)
- Circuit Breaker — 连续 3 次无改善则停止,等你介入
- 认知不投降 — 所有修复最终由你 review → 确认
触发方式
| 方式 | 命令 | 说明 |
| 手动 | node scripts/gc-scan.mjs | 立即执行一次健康检查 |
| Loop | /loop 24h "node scripts/gc-scan.mjs" | 每 24 小时自动扫描 |
| Routine | /schedule daily GC scan at 2am | 持久化定时(需 Max) |
扫描维度
| # | 维度 | 检查项 | 严重性 |
| 1 | CLAUDE.md 完整性 | 必要章节 + 占位符 | critical / warning |
| 2 | Git 状态 | 未提交变更数 + 调试残留 (console.log/debugger) | info / warning |
| 3 | TODO/FIXME 密度 | 单文件 >5 处 | info |
| 4 | .gitignore 健康 | node_modules/reviews/loops 遗漏 | info |
| 5 | Hook 注册 | 文件存在但未注册/被注释 | critical / warning |
| 6 | Harness 状态 | .harness-state 有效性 | info / warning |
| 7 | TypeScript 类型 | tsc --noEmit 错误(如存在 tsconfig.json) | warning |
| 8 | LSP 配置 | .lsp.json 有效性 | info / warning |
维度清单以此表为准。代码中
gc-scan.mjs的 JSDoc 为权威来源。
工作流
TRIGGER → SCAN (gc-scan.mjs) → ANALYZE → PROPOSE (可选) → WAIT (你 review)状态管理
.claude/loops/STATE.md— 当前活跃状态 (hot, 每次会话自动加载).claude/loops/LOG.md— 历史执行记录 (warm, 按需读取).claude/.harness-state— Phase/Mode 配置
Circuit Breaker
连续 3 次扫描无改善 → STOP 自动提案 → 标记 Phase: blocked → 等你人工介入。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

