~ / rigs / Haven16262 / dual-model-workflow

Haven16262/dual-model-workflow

A lightweight protocol for pairing two AI coding models (Overseer + Worker) that hand off through plain Markdown files. Works with any Anthropic-compatible endpoint. | 双模型协作开发工作流:全局者 + 工作者,通过 Markdown 文件交接

↗ GitHub ★ 2 MIT updated 4d ago project Claude Code
field: AI / ML
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~125 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
1/5
No YOLO mode · details
Quality 15/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit Haven16262/dual-model-workflow/templates/.claude ./rig-dual-model-workflow  # inspect, then merge into .claude/

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.

$ npx degit Haven16262/dual-model-workflow/skills/allow-once .claude/skills/allow-once
$ curl -fsSL --create-dirs -o .claude/agents/critic.md https://raw.githubusercontent.com/Haven16262/dual-model-workflow/main/templates/.claude/agents/critic.md

This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 17.0k rigs:

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(**/.env)",
      "Read(~/.ssh/**)",
      "Bash(git push --force:*)",
      "Read(**/*.pem)",
      "Read(.env)",
      "Read(~/.aws/**)",
      "Read(**/*.key)",
      "Read(**/.env.*)",
      "Bash(git push --force*)",
      "Bash(rm -rf *)",
      "Bash(rm -rf:*)",
      "Bash(sudo *)",
      "Bash(sudo:*)",
      "Bash(rm -rf /)",
      "Bash(git push -f:*)",
      "Read(.env.*)",
      "Read(./secrets/**)",
      "Bash(git reset --hard*)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git push *)",
      "Bash(gh pr merge *)",
      "Bash(git commit:*)",
      "Bash(rm *)",
      "Bash(gh pr merge:*)",
      "Bash(npm publish:*)",
      "Bash(git reset --hard:*)",
      "Bash(git clean *)",
      "Bash(git rebase *)"
    ]
  }
}

Skills (1)

Subagents (1)

critic
model: haiku
双模型工作流的安全审查子代理。由全局者在工作者「关键决策点」的「安全相关」项非空时调用,对工作者点名的相关文件做结构化审查并返回报告。只读,不可修改任何文件。

Hooks (2)

eventmatcherruns
Stop*j(){ printf '%s' "$1" | sed 's/[\\"]/\\&/g'; }; f="$HOME/.claude/scripts/k10-stop-gate.py"; c=0; grep -qs '^workflow-mode:[[:space:]]*competition' "${CLAUDE_PROJECT_DIR:-.}/context.md" && c=1; if [ -f "$f" ]; then for py in python3 python;
SubagentStop*j(){ printf '%s' "$1" | sed 's/[\\"]/\\&/g'; }; f="$HOME/.claude/scripts/k10-subagent-report.py"; c=0; grep -qs '^workflow-mode:[[:space:]]*competition' "${CLAUDE_PROJECT_DIR:-.}/context.md" && c=1; if [ -f "$f" ]; then for py in python3 py

Slash commands (2)

/as-overseer/as-worker

Similar rigs

copied ✓