sd0x-dev-flow

July 30, 2026 · View on GitHub

sd0x-dev-flow banner

語言: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español

給 Claude Code 的 harness 層。

讓模型自己選路,讓「完成」可被驗證。

v4 讓 Claude 在一組封閉、由測試釘死的 anchor 集合內擁有裁量權;hooks 在 compaction 之後仍保留 gate 憑證,Codex 則獨立進行 review。

在 Claude Code 上提供完整 control plane;對 Codex CLI 與其他相容 agent 則以 skills-only 形式發佈。

96 bundled · 96 public skills · 15 agents — 僅佔 Claude context window 的 ~4%

License: MIT npm

快速開始

# Claude Code — 完整 control plane
/plugin marketplace add sd0xdev/sd0x-dev-flow
/plugin install sd0x-dev-flow@sd0xdev-marketplace

# 設定你的專案
/project-setup

一個指令自動偵測 framework、package manager、資料庫、entry point 和 script 指令。安裝部分 rules 與 hooks;完整 plugin 包含 15 條 rules + 8 個 hooks。使用 --lite 僅設定 CLAUDE.md(跳過 rules/hooks)。

# Codex CLI / Cursor / Windsurf / Aider — 僅 skills
npx skills add sd0xdev/sd0x-dev-flow

# 產生 AGENTS.md + 安裝 git hooks(在 Claude Code 內執行)
/codex-setup init
方式適用工具涵蓋範圍
Plugin 安裝Claude Code完整(96 bundled skills、hooks、rules、auto-loop)
npx skills addCodex CLI、Cursor、Windsurf、Aider僅 Skills(96 public skills)
/codex-setup initCodex CLIAGENTS.md kernel + git hooks

需求:Claude Code 2.1+ | Codex MCP(安裝 plugin 可不裝,但 /codex-* review gate 必須有——Codex 本身就是那位唯一的 reviewer,未安裝時 review 會直接輸出 ⛔ Blocked + ⚠️ Need Human,沒有可降級的對象)

為什麼是 v4

前沿模型已經能規劃、批次處理,並從結構化狀態中復原——它們不再需要 harness 指定下一步要執行哪個指令。v4 從編排(choreography)走向契約(contracts):harness 不再替模型編排每一步動作,而是定義「宣告完成」時必須為真的條件,同時不放鬆任何一條安全或 review anchor。

面向v3(choreography)v4(contracts)
Hook 角色直接發出下一個要執行的指令發布 [AUTO_LOOP_STATE] 事實——change class、gate 憑證、round/cap、tier
完成定義腳本化的步驟序列(「修正 → 立即重新 review」)Terminal completion invariant:change class 所需的每個 gate 都在最後一次編輯之後通過
規則強度一律相同——每條規則讀起來都是強制三個層級:Anchor(絕不偏離)、Default(陳述訊號後可偏離)、Guidance(建議性)
Review 深度預設就是最深依風險分級的 tier(fast / standard / thorough);安全性與資料完整性一律升級
輪次上限觸頂交還給人類第一次觸頂:結構化自我診斷 + 一次有界調整後繼續——除非命中 cap 專屬的人類出口(安全性/資料完整性、架構層級變更、需求歧義);同一改動在診斷後再次觸頂:一律交給人類

不可協商的核心放在一個封閉的 Anchor Registerrules/discretion.md)裡,任何專案覆寫都無法將其降級——解析採 Anchor-first,而且移除任何一條 Register 條目都會讓測試套件刻意失敗。在這個邊界之內,所有權是明確的:

擁有者擁有的範圍
模型批次、時機、review 深度升級、Default 層級的偏離(陳述後繼續工作)
HarnessGate 新鮮度、跨 compaction 的憑證、strict 模式阻擋、封閉的 anchor 集合
人類不可逆的核准(push、commit、merge)與列舉的出口點

模型擁有路徑。Harness 擁有證據與不可協商的邊界。人類保留不可逆的權力。

這個 harness 做了什麼

Harness engineering 是一門工程學科,處理 LLM 周圍的所有東西 — tool loops、context management、hooks、state machines、safety layers — 而不是訓練模型本身。Mitchell Hashimoto 在 2026 年 2 月提出這個名詞;Anthropic engineeringMartin Fowler 都發表過相關文章;arXiv 2603.05344 則將其形式化。

sd0x-dev-flow 是一個 reference implementation。下表每一列都將一個經典的 harness 子問題對應到你可以實際研究的程式碼:

#Harness 子問題sd0x-dev-flow 實作程式碼佐證
1Tool loop controlTerminal completion invariant——change class 所需的每個 gate 都必須在最後一次編輯之後通過;何時、如何執行由模型決定rules/auto-loop.md + hooks/post-tool-review-state.sh
2Sentinel-driven state machine✅ Ready / ⛔ Blocked / ## Overall: ✅ PASS 等 gate sentinel 被解析進各自的持久化 state plane;opt-in 的雙 review 另外透過機器可讀的 REVIEW_GATE= 標記彙總hooks/post-tool-review-state.sh(sentinel parser)+ scripts/emit-review-gate.sh(雙 review 的 REVIEW_GATE= producer)
3Context recovery across compactionSessionStart(compact) 後透過 [AUTO_LOOP_RESUME] stdout 注入復原狀態hooks/post-compact-auto-loop.sh
4Lifecycle interceptors5 種 hook 事件分派到 8 支腳本:PreToolUse / PostToolUse / Stop / SessionStart / UserPromptSubmithooks/(8 支腳本)+ .claude/settings.json
5Capability-based tool gatingSkill frontmatter 的 allowed-tools — 例如 /ask 不具備 Edit/Write98 個公開 skill 中有 89 個宣告 allowed-tools
6Defense-in-depth safety5 層防線:pre-edit-guard → commit-msg-guard → pre-push-gate → stop-guard → sidecar fail-closed markerscripts/pre-push-gate.sh + scripts/commit-msg-guard.sh + hooks/stop-guard.sh
7Generator-evaluator splitCodex 審查 Claude 寫的東西,自行研究 repo——絕不餵結論要它確認rules/codex-invocation.md + rules/auto-loop.md(Review Dispatch)
8Incremental progress tracking每個 tier 有各自的輪次預算(預設 3 / 5 / 30,可覆寫為 3–50)+ cap 診斷:第一次觸頂會觸發結構化的停滯分類與一次有界調整,並保留列舉的人類出口rules/auto-loop.md(§ Cap Diagnostic Protocol)
9Human-in-the-loop safety gates每次 /push-ci push 前都需 AskUserQuestion 核准;/dev/tty pre-push 確認是保護分支 push 的最終憑證(外加 non-fast-forward 偵測)scripts/pre-push-gate.sh + skills/push-ci/SKILL.md
10Self-improvement loop被糾正 → 記錄 lesson → 重複 3 次以上後提升為 rulerules/self-improvement.md

大多數 harness 專案只涵蓋其中的 2–4 項,sd0x-dev-flow 把 10 項全部做齊 — 這也是為什麼它的程式碼不只是工具,更值得當成學習對象。

運作方式

flowchart LR
    P["🎯 Plan"] --> B["🔨 Build"]
    B --> G["🛡️ Gate"]
    G --> S["🚀 Ship"]

    P -.- P1["/codex-brainstorm<br/>/feasibility-study<br/>/tech-spec"]
    B -.- B1["/feature-dev<br/>/bug-fix<br/>/codex-implement"]
    G -.- G1["/codex-review-fast<br/>/precommit<br/>/codex-test-review"]
    S -.- S1["/smart-commit<br/>/push-ci<br/>/create-pr<br/>/pr-review"]

一切繞著一條規則運轉——terminal completion invariant:唯有當某項改動的 change class 所需的每個 gate,都在該 class 的最後一次編輯之後通過,這項改動才能被宣告完成。程式碼編輯需要一次獨立的 Codex review,接著 /precommit.md 文件需要 /codex-review-doc。何時執行、如何批次編輯、review 要多深,都是模型的決定——invariant 約束的是終點狀態,不是編排過程。

Hooks 回報的是事實,不是命令:它們發出 [AUTO_LOOP_STATE] 區塊(change class、gate 憑證、round/cap、tier),決定權在模型。什麼算 blocking 由 tier 決定(fast P0 · standard P0/P1 · thorough P0/P1/P2);低於該門檻的 findings 只記錄下來,loop 繼續往前,不再多開一輪。觸及輪次上限會觸發結構化的自我診斷(架構問題?文件太長?注意力發散?)與一次有界調整,然後 loop 繼續——而不是自動交接;但 cap 專屬的人類出口仍然有效(安全性與資料完整性改動完全跳過診斷;被診斷為架構層級或需求歧義的停滯則交給人類)。

強制執行有兩種模式:

模式停止時 gate 未完成執行者
warn(plugin 執行期的 fallback)發出警告;關閉 gate 仍是模型的義務行為層
strict(透過 /project-setup 安裝時的預設)在 gate 通過前阻止停止——fail-closedHook

第二位 reviewer 走 /codex-review-branch --dual,預設不啟用。模式與相依細節詳見 docs/hooks.md

詳細:Review Loop 時序圖
sequenceDiagram
    participant D as Developer
    participant C as Claude
    participant X as Codex MCP
    participant H as Hooks

    D->>C: Edit code
    H->>H: Track file change
    C->>X: Codex review (sandbox, researches repo itself)
    X-->>C: Findings + gate sentinel
    H->>H: Parse sentinel into code_review.passed
    C->>C: Gate on the tier's blocking severity

    alt Blocking findings
        C->>C: Fix them (sub-threshold: log and move on)
        C->>X: --continue threadId
        X-->>C: Re-verify
    end

    C->>C: /precommit (auto)
    C-->>D: ✅ All gates passed

    Note over H: Strict mode: incomplete gate → blocked

功能亮點:分檔 Review

預設只有一位 reviewer——Codex。tier 決定一項改動要多嚴格,以及一個 finding 要多嚴重才會重開 loop:

Tier適用Blocking輪次上限
fast文件、設定、低風險小改P03
standard (預設)一般功能與 bug fixP0、P15
thorough安全性、資料完整性、release、public APIP0、P1、P230

設定的 tier 是底線,不是天花板——當改動的性質需要時,模型會往上升級;而安全性或資料完整性改動無論設定為何,一律以 thorough 進行 review。

80 分就是及格。 低於該 tier blocking 門檻的 findings 會被記錄([NIT_DEFERRED],帶 TTL 持久化,下次 session 不會重複被提),loop 直接進 /precommit——不多一次修正、不多一輪 review。這些項目會在 /codex-review-branch 做深度審查時被撿回來。

上表的輪次上限是各 tier 的預設值——專案的 ## Max Rounds 覆寫(3–50)優先。觸頂是一個診斷點,不是自動交接:模型會分類停滯原因(架構、文件太長、注意力發散、未驗證的宣稱、tier 不匹配、需求歧義),做一次有界調整後繼續。cap 專屬的人類出口仍然具約束力:安全性/資料完整性改動跳過診斷直接交給人類;被分類為架構層級或需求歧義的停滯會退出交給人類;同一改動在診斷後第二次觸頂也一律交給人類。(架構層級變更、功能移除、或使用者要求停止,在任何時點都會退出交給人類——無論是否觸頂。)

第二位 reviewer 走 /codex-review-branch --dual不加旗標就不啟用——它讓每輪的 token 與時間成本翻倍,值得花在 release 或安全審查上,不值得花在日常修正。啟用 --dual 時,findings 會做嚴重度正規化、去重(file + issue key,±5 行容差)與來源標記。

Gate:✅ Ready⛔ Blocked — strict 模式下,未完成 gate = blocked。

適用場景

適合不太適合
使用 Claude Code 的個人或小團隊專案完全不使用 Claude Code 的團隊
需要自動化 review 關卡的專案沒有 CI 的一次性腳本
Codex CLI / Cursor / Windsurf 使用者(skills 子集)需要自訂 LLM provider 的專案
品質關卡可防止 regression 的 repo沒有測試基礎建設的 repo

Workflow Tracks

Workflow指令Gate憑證
功能開發/feature-dev/verify/codex-review-fast/precommit✅/⛔Hook 追蹤(strict 模式下阻擋)
Bug 修正/issue-analyze/bug-fix/verify/precommit✅/⛔Hook 追蹤(strict 模式下阻擋)
Auto-LoopCode 編輯 → /codex-review-fast/precommit✅/⛔Hook 追蹤(strict 模式下阻擋)
文件 Review.md 編輯 → /codex-review-doc✅/⛔Hook 追蹤(strict 模式下阻擋)
規劃/codex-brainstorm/feasibility-study/tech-spec
上手流程/project-setup/repo-intake
視覺化:工作流程圖
flowchart TD
    subgraph feat ["🔨 Feature Development"]
        F1["/feature-dev"] --> F2["Code + Tests"]
        F2 --> F3["/verify"]
        F3 --> F4["/codex-review-fast"]
        F4 --> F5["/precommit"]
        F5 --> F6["/update-docs"]
    end

    subgraph fix ["🐛 Bug Fix"]
        B1["/issue-analyze"] --> B2["/bug-fix"]
        B2 --> B3["Fix + Regression test"]
        B3 --> B4["/verify"]
        B4 --> B5["/codex-review-fast"]
        B5 --> B6["/precommit"]
    end

    subgraph docs ["📝 Docs Only"]
        D1["Edit .md"] --> D2["/codex-review-doc"]
        D2 --> D3["Done"]
    end

    subgraph plan ["🎯 Planning"]
        P1["/codex-brainstorm"] --> P2["/feasibility-study"]
        P2 --> P3["/tech-spec"]
        P3 --> P4["/codex-architect"]
        P4 --> P5["Implementation ready"]
    end

    subgraph ops ["⚙️ Operations"]
        O1["/project-setup"] --> O2["/repo-intake"]
        O2 --> O3["Develop"]
        O3 --> O4["/project-audit"]
        O3 --> O7["/best-practices"]
        O3 --> O5["/risk-assess"]
        O4 --> O6["/next-step --go"]
        O5 --> O6
        O7 --> O6
    end

實戰指南(Cookbook)

真實情境示範——哪些技能要搭配使用、按什麼順序執行。

情境流程說明
第一天進入新 repo/project-setup/repo-intake/next-step
實作新功能/feature-dev/verify/codex-test-review/codex-review-fast/precommit
處理 PR 審查意見/load-pr-review → 修正 → /codex-review-fast/push-ci
合併前安全審查/codex-security/dep-audit/risk-assess/pre-pr-audit
精選組合: 驗證方向/deep-research/best-practices/feasibility-study/codex-brainstorm
精選組合: 對抗式設計/codex-brainstorm(Nash 均衡辯論)→ /codex-architect

全部 10 個情境 →

包含內容

類別數量範例
Skills96 public (96 bundled)/project-setup, /codex-review-fast, /verify, /smart-commit, /deep-research
Agents15strict-reviewer, verify-app, coverage-analyst, architecture-designer
Hooks8pre-edit-guard, auto-format, review state tracking, stop guard, post-compact-auto-loop, post-skill-auto-loop, user-prompt-review-guard, session-init
Rules15auto-loop, auto-loop-project, codex-invocation, security, testing, git-workflow, self-improvement, context-management
Scripts18precommit runner, verify runner, dep audit, namespace hint, skill runner, commit-msg guard, pre-push gate, emit-review-gate, emit-plan-gate, build-codex-artifacts, resolve-feature (CLI + shell), classify-docs, detect-scope, migration-audit, security-redact, readme-catalog

極小的 Context 佔用

~4% 的 Claude 200k context window——96% 留給你的程式碼。

組件Tokens佔 200k 比例
Rules(常駐載入)5.1k2.6%
Skills(按需載入)1.9k1.0%
Agents7910.4%
合計~8k~4%

Skills 按需載入。閒置 Skill 不佔用任何 Token。

技能參考

Skill使用時機
/project-setup首次設定專案
/bug-fix修正 bug 與解決問題
/feature-dev端到端實作新功能
/smart-commit智慧分組提交變更
/push-ci推送程式碼並監控 CI
/create-pr建立 GitHub pull request
/codex-review-fast快速 code review(僅 diff)
/codex-review-doc審查文件變更
/codex-securityOWASP Top 10 安全稽核
/verify執行完整測試驗證鏈
/precommitPre-commit 品質關卡(lint + build + test)
/precommit-fast快速 pre-commit(lint + test,跳過 build)
/codex-brainstorm對抗式 brainstorming(Nash 均衡)
/tech-spec撰寫技術規格
/pr-review合併前 PR self-review
全部 96 個 public skills

開發 (33)

SkillDescription
/ask具備上下文感知的 Q&A,自動收集上下文資訊。
/bug-fixBug fix workflow.
/bump-versionBump package and plugin version in sync.
/code-explorePure Claude code investigation.
/code-investigateDual-perspective code investigation.
/codex-architectCodex architecture consulting.
/codex-implementImplement features via Codex MCP.
/codex-setupInitialize sd0x-dev-flow infrastructure for Codex CLI and other non-Claude agents.
/create-prCreate or update GitHub PR with gh CLI.
/debugInteractive debugging workflow with hypothesis-driven probe loop.
/deep-exploreMulti-wave parallel code exploration orchestrator.
/epic-merge將 stacked PR chain 依序 squash-merge 進 epic branch。
/feature-devFeature development workflow.
/feature-verifyFeature verification (READ-ONLY, P0-P5).
/git-investigateGit history investigation.
/git-profileGit identity and GPG signing profile manager.
/install-hooksInstall plugin hooks into project .claude/ for persistent use without plugin loaded
/install-rulesInstall plugin rules into project .claude/rules/ for persistent use without plugin loaded
/install-scriptsInstall plugin runner scripts into project .claude/scripts/ for persistent use without plugin loaded
/issue-analyzeGitHub Issue and PR review thread deep analysis with Codex blind verdict.
/jiraJira integration — view issues, generate branches, create tickets, transition status.
/load-pr-reviewLoad GitHub PR review comments into AI session — analyze, triage, plan.
/merge-prepPre-merge analysis and preparation.
/next-stepChange-aware next step advisor.
/post-dev-testPost-development test completion.
/pr-commentPost friendly review comments to a GitHub PR — prepare locally, preview, then submit as atomic review.
/project-setupProject configuration initialization.
/push-ciPush to remote and monitor CI.
/remindLightweight model correction with context-aware rule loading.
/repo-intakeProject initialization inventory (one-time).
/smart-commitSmart batch commit.
/smart-rebaseSmart partial rebase for squash-merge repositories.
/watch-ciMonitor GitHub Actions CI runs until completion.

審查 (Codex MCP) (14)

SkillDescription循環支援
/codex-cli-reviewCode review via Codex CLI with full disk access.-
/codex-code-reviewCode review using Codex MCP.-
/codex-explainExplain complex code via Codex MCP.-
/codex-reviewFull second-opinion using Codex MCP (with lint:fix + build).--continue <threadId>
/codex-review-branchFully automated review of an entire feature branch using Codex MCP-
/codex-review-docReview documents using Codex MCP.--continue <threadId>
/codex-review-fastQuick second-opinion using Codex MCP (diff only, no tests).--continue <threadId>
/codex-securityOWASP Top 10 security review using Codex MCP.--continue <threadId>
/codex-test-genGenerate unit tests for specified functions using Codex MCP-
/codex-test-reviewReview test case sufficiency using Codex MCP, suggest additional edge cases.--continue <threadId>
/doc-reviewDocument review via Codex MCP.-
/security-reviewSecurity review via Codex MCP.-
/seek-verdictIndependent second-opinion verification for any finding.-
/test-reviewTest coverage review via Codex MCP.-

驗證 (13)

SkillDescription
/best-practicesIndustry best practices conformance audit with mandatory adversarial debate.
/check-coverageComprehensive assessment of Unit / Integration / E2E three-layer test coverage, identify gaps and provide actionable ...
/dep-auditAudit dependency security risks
/dev-security-auditComprehensive developer workstation security audit — scans for exposed credentials, compromised application data, per...
/necessity-auditNecessity audit for over-designed spec elements.
/pre-pr-auditPre-PR confidence audit with 5-dimension scoring.
/precommitPre-commit checks — lint:fix -> build -> test
/precommit-fastQuick pre-commit checks — lint:fix -> test
/project-auditProject health audit with deterministic scoring.
/risk-assessUncommitted code risk assessment with breaking change detection, blast radius analysis, and scope metrics.
/test-deepContext-aware test orchestration.
/test-healthHolistic test coverage measurement.
/verifyVerification loop — lint -> typecheck -> unit -> integration -> e2e

規劃 (16)

SkillDescription
/architectureArchitecture design and documentation.
/codex-brainstormAdversarial brainstorming via Claude+Codex debate.
/deep-analyzeDeep-dive analysis of an initial proposal — research code implementation, produce an actionable roadmap and alternatives
/deep-researchUniversal multi-source research orchestration.
/feasibility-studyFeasibility analysis from first principles.
/fp-briefFirst-principles briefing from technical documents.
/post-dev-recapGuided post-dev recap wrapper — scope detection + doc generation + Q&A.
/project-briefConvert a technical spec into a PM/CTO-readable executive summary.
/recap-askRecap-bounded Q&A follow-up over an existing briefing-recap.
/recap-docPost-development recap document generator with blind-spot detection.
/req-analyzeRequirements analysis — problem decomposition, stakeholder scan, requirement structuring.
/request-trackingRequest tracking knowledge base.
/review-specReview technical spec documents from completeness, feasibility, risk, and code consistency perspectives.
/tech-briefTechnical briefing for developer sharing.
/tech-specTech spec generation and review.
/ui-first-principlesFirst-principles UI/IA reasoning: turns a <scenario> + API field set into JTBD analysis, principle-anchored field-p...

文件與工具 (20)

SkillDescription
/claude-healthClaude Code config health check + plugin sync.
/contract-decodeEVM contract error and calldata decoder.
/create-requestCreate, update, or scan per-task request tickets for progress tracking.
/de-ai-flavorRemove AI artifacts from documents.
/doc-refactorRefactor documents — simplify without losing information, visualize flows with sequenceDiagram.
/generate-runnerGenerate a customized precommit runner for any ecosystem.
/obsidian-cliObsidian vault integration via official CLI.
/op-sessionInitialize 1Password CLI session for Claude Code.
/portfolioPortfolio system knowledge base.
/pr-reviewPR self-review — review changes, produce checklist, update rules
/pr-summaryList open PRs, filter automation PRs, group by ticket ID, format as Markdown.
/refactorMulti-target refactoring orchestrator.
/runbookGenerate/update feature release runbook
/safe-removeSafely remove plugin assets (skill/agent/rule/script/hook) with dependency detection and reference cleanup.
/sharinganReplicate knowledge from any source as sd0x-dev-flow skill definition.
/simplifyWrap-up refactoring — simplify code, eliminate duplication, preserve behavior
/skill-health-checkValidate skill quality against routing, progressive loading, and verification criteria.
/statusline-configCustomize Claude Code statusline.
/update-docsResearch current code state then update corresponding docs, ensuring docs stay in sync with code.
/zh-twRewrite the previous reply in Traditional Chinese

Rules & Hooks

15 條 rules + 8 個 hooks。Rules 是分層的契約:discretion.md 把 12 個 plugin 管理的 rule 檔中的每一條指示解析為 Anchor / Default / Guidance 三者之一,2 個使用者擁有的 override 檔則在其父規則之下以 Anchor-first 解析。Hooks 是事實發布者與護欄:它們記錄 gate 憑證並在 compaction 後重新注入狀態;stop-guard 在 strict 模式下阻擋 review 未完成的停止,pre-edit-guard 則在任何模式下拒絕敏感路徑的編輯。

客製化:編輯 auto-loop-project.md 可覆寫專案的 auto-loop 行為。Plugin 更新不會衝突 — 詳見 Rule Override Pattern

完整的 rules、hooks 與環境變數參考,請見 docs/rules.mddocs/hooks.md

自訂設定

執行 /project-setup 自動偵測並設定所有 placeholder,或手動編輯 .claude/CLAUDE.md

Placeholder說明範例
{PROJECT_NAME}你的專案名稱my-app
{FRAMEWORK}你的 frameworkMidwayJS 3.x, NestJS, Express
{CONFIG_FILE}主設定檔src/configuration.ts
{BOOTSTRAP_FILE}Bootstrap entrybootstrap.js, main.ts
{DATABASE}資料庫MongoDB, PostgreSQL
{TEST_COMMAND}測試指令yarn test:unit
{LINT_FIX_COMMAND}Lint 自動修正yarn lint:fix
{BUILD_COMMAND}Build 指令yarn build
{TYPECHECK_COMMAND}Type checkyarn typecheck

覆寫採 Anchor-first 解析:使用者擁有的 override 檔(auto-loop-project.mdtesting-project.md)只能客製 Default 與 Guidance 層級的行為——任何專案覆寫都無法降級 Anchor Register 中的條目,嘗試這麼做會被回報為衝突,而不是被接受。

展示:多 Agent 研究

執行 /deep-research 可調度 2-3 個並行研究 agent,跨越網路來源、程式碼庫與社群知識 — 搭配 claim registry 綜合與條件式對抗辯論。

特色內容
Agents2-3 個並行(web + code + community)
綜合Claim registry 共識偵測
驗證條件式 /codex-brainstorm 辯論
評分4 訊號完整度模型

完整文件

架構

六個層,每層各自擁有一項關注點:

擁有的範圍
Skills按需載入的能力——動詞(/feature-dev/codex-review-fast、…)
Model路徑:批次、時機、review 深度升級、Default 層級的偏離
Rules每個 session 都載入的分層契約(Anchor / Default / Guidance)
Hooks + state[AUTO_LOOP_STATE] 事實、持久化的 gate 憑證、跨 compaction 的復原
Codex獨立 review——自行研究 repo,絕不被餵結論
Scripts + agents確定性的檢查(precommit、guards)與隔離的 subagent

進階架構細節(agentic control stack、控制迴圈理論、sandbox 規則)請參閱 docs/architecture.md——注意其中部分內容早於 v4,仍在描述 v3 的 choreography;rules/auto-loop.mdrules/discretion.md 才是目前的 source of truth。

貢獻

歡迎 PR。請:

  1. 遵循現有命名慣例(kebab-case)
  2. 在 skill 中包含 When to Use / When NOT to Use
  3. 對危險操作加上 disable-model-invocation: true
  4. 提交前用 Claude Code 測試

License

MIT

Star History

Star History Chart