Coding Agent Harness Patterns — Development skill for Claude Code
从零拆解 Codex / Claude Code 式编码智能体:Agent Loop、上下文压缩、Skills、子智能体、Hooks、记忆 —— 单文件零依赖可运行的 Harness 设计模式.
How to install Coding Agent Harness Patterns
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open wangguode/coding-agent-harness-patterns and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Coding Agent Harness Patterns does
从零拆解 Codex / Claude Code 式编码智能体:Agent Loop、上下文压缩、Skills、子智能体、Hooks、记忆 —— 单文件零依赖可运行的 Harness 设计模式.
Alternatives in Development
- Pi — PI Wisdom-in-Action Engine v23 — top mandates, scene router, delivery quality gates, anti-patterns, battle mom 107 ★
- Raw CLI — The agent harness you can fork 105 ★
- Loop Maker — Interviews you, then scaffolds a self-running agent loop 69 ★
README
Coding Agent Harness Patterns
从零构建生产级编码智能体:Java 17 (Spring Boot 3) 全栈可视化工作台 + Python 零依赖模式库
[](https://www.zhihu.com/people/wang-guo-ha-53) [](#-一java-17--spring-boot-3-全栈工作台wg-harness-studio) [](#-二python-零依赖-8-大模式库与-wg-harness-cli) [](#-核心-harness-模式清单) [](./LICENSE) [](https://github.com/wangguode/coding-agent-harness-patterns/stargazers)
**模型决定上限,Harness(马具工程)决定下限。**
提供 **Java 17 + Spring Boot 3 全栈 Web Studio 工作台** 与 **Python 零依赖 CLI/模式库** 双引擎实现,无需任何 API Key 即可一键跑通 Agent Loop、HITL 人工审批拦截、`/compact` 上下文压缩、MCP JSON-RPC 2.0 沙箱与单测自修复闭环;配置一行环境变量即可无缝切换 DeepSeek / 通义千问。
架构总览 (Editorial Architecture)
为什么做这个项目?
Codex、Claude Code、AgentScope 等主流智能体系统的工程代码动辄数十万行,开发者在企业内部落地 Java / Python 智能体控制平面时,最常卡在五个核心工程问题上:
- Agent Loop 收敛与自验证:如何让智能体在“推理 → 调工具改代码 → 跑单测 → 读报错自修复”闭环里稳定收敛,而不是改完不测直接交差?
- PreToolUse / PostToolUse 安全护栏与 HITL 审批:
rm -rf /如何在毫秒内硬阻断?kubectl rollout restart如何在 Java 后端挂起CompletableFuture等待人工点击放行,同时自动脱敏输出中的sk-*密钥? - 两级
/compact上下文压缩:长任务上下文快爆时,如何裁剪历史工具大输出并提炼结构
Related Skills
Dokkabei Harness
Claude Code plugin marketplace — 20 plugins bundling loop-engineering harnesses, multi-agent teams, and gated
Harness Deck
Harness 观测台 把 Claude Code 的 20 个底层 harness 机制黑盒透明化——发一句话,当场看见 Agent 真实运行。实时事件流 + 状态面板 + 每个机制一个可视化面板,从最小 Agent
Agentic Harness Claude
Deterministic agentic harness for Claude Code: enforces a plan → build → verify → review → ship state machine
My Coding Agent
从零手写的 CLI Coding Agent(TypeScript):Agent 主循环 / 工具层 / 权限闸门 / 上下文压缩 / 多 Agent / MCP / 自治三件套,附 36 条自建评测集
Loop Engine
Baltor: a reviewed library of skills, AGENTS.md sections, subagents, commands, hooks and protocol server setti
Sessionpipe
An open protocol and client for what your coding agents are doing: hooks for every harness, four privacy tiers
Related Agents
Judge Same Vendor
Same-vendor different-model judge for the pair-programmer harness. Dispatches to the matching vendor's critiqu
Harness Cross Validator
Codex 기반 하네스 산출물 교차 검증 전문가. Claude validator가 형식·표준 준수를 점검하는 동안, Codex가 동일 산출물을 청사진 의도와 도메인 요구사항 관점에서 독립 재검토한다
Harness Engineer
Diseña cambios del harness (agentes, skills, política, hooks y contexto) como propuestas con hipótesis y evals