agent-discipline/harness
Claude Code 작업 하네스 — 정의→계획→개발→검증→기록 파이프라인과 stakes 비례 검증을 강제하는 규칙·훅·템플릿 패키지
stack: Shell
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
up to ~2.8k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 15/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code $ npx degit agent-discipline/harness/agents ./rig-harness/agents $ npx degit agent-discipline/harness/hooks ./rig-harness/hooks
MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ curl -fsSL --create-dirs -o .claude/agents/explorer.md https://raw.githubusercontent.com/agent-discipline/harness/main/agents/explorer.md Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/hooks/git-guard.sh"
},
{
"type": "command",
"command": "bash ~/.claude/hooks/codex-scan.sh"
},
{
"type": "command",
"command": "bash ~/.claude/hooks/gate-guard.sh"
}
]
},
{
"matcher": "Edit|Write|MultiEdit",
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/hooks/gate-guard.sh"
}
]
}
]
}
} MCP servers (1)
| server | source | est. tokens |
|---|---|---|
| workbench-knowledge | local / custom | 2.5k |
Subagents (1)
| explorer model: sonnet | 코드베이스 탐색 전담(읽기 전용) — 고칠 곳 찾기, 여러 파일 읽기, 호출처 조사, 대량 읽기 정리. 결과를 파일 경로·줄 번호·요지로 보고한다. 코드를 수정하지 않는다. |
Hooks (10)
| event | matcher | runs |
|---|---|---|
| SessionStart | * | bash ~/.claude/hooks/session-mode-guard.sh |
| UserPromptSubmit | * | bash ~/.claude/hooks/reinject-mode.sh |
| PreToolUse | Bash | bash ~/.claude/hooks/git-guard.sh |
| PreToolUse | Bash | bash ~/.claude/hooks/codex-scan.sh |
| PreToolUse | Bash | bash ~/.claude/hooks/gate-guard.sh |
| PreToolUse | Edit|Write|MultiEdit | bash ~/.claude/hooks/gate-guard.sh |
| PostToolUse | Edit|Write|MultiEdit | bash ~/.claude/hooks/gate-guard.sh |
| PostToolUse | Edit|Write|MultiEdit | bash ~/.claude/hooks/task-mode-guard.sh |
| PostToolUse | AskUserQuestion | bash ~/.claude/hooks/capture-decision.sh |
| PostToolUse | Read | bash ~/.claude/hooks/reread-track.sh |
Similar rigs
bi-boo/claude-code-config
我的 Claude Code 个人配置——CLAUDE.md 规则、Agent、记忆机制,以及 Ghostty 终端配置
YOLO Cowboy 1.4k tok · · Q16
jaqubowsky/fleet
Runs Claude Code and pi agents in parallel on your Mac, one Docker sandbox per issue. A host agent hands out the work, watches every sandbox and brings back tested, reviewed pull requests.
Minimalist 566 tok · · Q0
RonaldPrecieux/claude-code-playbook
Le guide opérationnel pour transformer Claude Code en workflow de développement autonome — CLAUDE.md template, sous-agents, workflow autonome
Minimalist 771 tok · · Q0
lrendina/claude-code-setup
My Claude Code build: state-colored terminals, auto tab titles, session memory, plan gates, a context-weather mod, and a safe installer
Minimalist 777 tok · · Q3