Claude Code delegates coding to isolated CLI agents it doesn't trust (Codex, OpenCode, Pi, Pythinker), freezes what they produce, verifies it independently, and merges only what a human approves.
FAQ
claude-architect is a Claude Code plugin with 6 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes codex, delegate, subagent-driven-delegation. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
> /plugin marketplace add Pythoughts-labs/claude-architect> /plugin install claude-architect@claude-architect
Repo: Pythoughts-labs/claude-architect
Verified coding-agent delegation for Claude Code. Claude stays the architect and reviewer — it writes the spec, judges the evidence, and reports what landed. Implementation is delegated to fresh-context subagent implementers running on the coding CLI you choose — Codex, OpenCode, Pi, Pythinker, or Antigravity CLI — each invocation starting clean with no inherited conversation state, inside an isolated Git worktree. The work comes back as a frozen, hash-anchored candidate that Claude reviews against independent verification evidence before a single byte can reach your checkout.
In practice that means three guarantees the plugin enforces in host code, not in prompts:
Public beta: Do not use Claude Architect unattended for production, destructive, or security-sensitive work. Review the complete candidate and verification evidence before integration.
The runtime and cross-platform lifecycle are evolving. Producer availability depends on the host OS, CLI version, authentication, requested lane, and proven execution capabilities.
Delegating code generation is easy; establishing which exact bytes were produced, whether they stayed in scope, and whether anyone independent verified them is harder. Claude Architect keeps Claude focused on specification and judgment while treating external coding agents as untrusted Producers. It records a reproducible run, freezes a content-addressed candidate, verifies authorized checks in a clean materialization, and makes every decision's provenance explicit.
flowchart LR
A[Versioned spec] --> B[Producer in isolated worktree]
B --> C[Frozen candidate]
C --> D[Independent verification]
D --> E[Adversarial review]
E --> F{Configured decision authority}
F -->|accept| G[Guarded integration]
F -->|reject or revise| H[Discard or fresh attempt]
All agent output is an untrusted candidate, and implementers cannot approve their own work. A candidate that fails independent verification, or whose review gate refused it, can only be accepted by a human.
Claude Code requires Node.js 22 or newer. Add the marketplace and install the plugin:
claude plugin marketplace add Pythoughts-labs/claude-architect
claude plugin install claude-architect@claude-architect
claude plugin list --json
Restart Claude Code after installing or updating. Install and authenticate at least one supported Producer CLI (codex, opencode, pi, or pythinker); Claude Architect reports unavailable lanes rather than silently substituting another agent.
Open Claude Code in a Git repository and name the Producer you want:
/claude-architect:delegate Use Codex to add rate limiting to the public API, run the tests, and show me the independently reviewed candidate before integration.
If no Producer is named, the skill asks you to choose Codex, OpenCode, Pi, Pythinker, or Antigravity CLI. Pi, OpenCode, Pythinker, and Antigravity CLI are harnesses that accept optional model and thinking/variant/effort overrides; model selection within a harness lane is optional and otherwise defers to that CLI's configured default. For non-trivial work it uses the fresh-context review pipeline. Read the exact patch, findings, and verification output before deciding whether to accept.
The direct, unverified Codex CLI lane runs codex exec against your current checkout without an isolated worktree, frozen Candidate Artifact, or independent verification:
/claude-architect:codex Review this checkout with gpt-5.6-sol at high reasoning.
Use it for direct Codex assistance when those controls are not required. Use /claude-architect:delegate when changes need the verified lane and its isolated worktree, frozen Candidate Artifact, independent verification, and guarded integration.
Claude Architect can use host-side Superpowers skills such as brainstorming, writing plans, and executing plans to shape and coordinate a delegation. Producers do not inherit that host skill set. Each edit attempt is offered only the three task-scoped procedures compatible with the trust model:
test-driven-development for behavior changes and bug fixes;systematic-debugging for unexpected test, build, or behavior failures;verification-before-completion before a Producer claims success.This filtered subset is vendored from obra/superpowers version 6.2.0 under the MIT license so it remains available inside an isolated attempt. Skills that assume nested delegation, self-review, branch acceptance, or an interactive human remain unavailable to Producers; the architect, the runtime's configured decision authority, and the human where required retain those authorities.
Dispatch a delegation through the delegation-lane agent to watch it as a native Claude Code subagent row instead of a long-running MCP call:
delegate and delegatePipeline. It cannot read the repository, run commands, review, decide, or integrate.specSha256 is supplied back to lane dispatch so a valid-but-different spec fails before work starts. The lane's JSON report is used only to correlate (laneId, specSha256, runId); all reviewable evidence comes from reviewCandidate, and every acceptance is gated on independent verification with its provenance recorded. At most one accepted candidate per clean checkout.By default, decideCandidate records accepted without prompting for any independently verified candidate that produces no advisory warnings from a readable archive: either a delegatePipeline candidate carrying a durable pipelineGateCleared record that names the archived candidate commit and does not require a human, or a plain delegate result, which carries no pipeline evidence at all and is judged on its independent verification result alone. Gate-refused, review-incomplete, malformed, commit-mismatched, human-required, unverified, or unreadable cases still require a human, as does every non-accept verdict. Set CLAUDE_ARCHITECT_DECISION_AUTHORITY=human to require confirmation for every decision; an unrecognized value fails closed to human with a warning.
What this does not relax: independent verification still decides what may be accepted at all, integration refuses any acceptance whose provenance is unknown, and it still aborts on a moved HEAD, a dirty tree, or a hash that does not match the reviewed artifact. Every decision records its provenance, so auditing which candidates went in without a person never requires inferring it.
| Kind | Name | Purpose |
|---|---|---|
| Skill | /claude-architect:delegate | Builds a versioned spec and drives delegation, review, decision, and guarded integration. |
| Skill | /claude-architect:codex | Runs Codex CLI directly against the current checkout without the verified delegation lifecycle. |
| Skill | /claude-architect:subagent-driven-delegation | Executes a multi-task plan with the Superpowers subagent-driven-development loop, using a verified Producer as the implementer for every task. |
| Agent | advisor | Current strictly read-only commitment-boundary advisor. |
| MCP | validateDelegationSpec | Validates a spec without starting a Producer and returns its canonical correlation digest. |
| MCP | delegate | Runs one validated, isolated, independently verified attempt. |
| MCP | delegatePipeline | Runs the fresh-context implement/review/repair pipeline. |
| MCP | reviewCandidate | Returns the exact frozen patch and verification evidence. |
| MCP | decideCandidate | Records accepted, rejected, or revision-requested. |
| MCP | integrateCandidate | Applies an accepted hash-matched candidate under safety guards. |
| MCP | doctor | Reports runtime, Git, platform, and Producer diagnostics. |
| MCP | gitStatus, gitDiff, gitLog, gitChangedFiles | Bounded, redacted, read-only Git evidence for advisors. |
Claude Architect separates authority across roles and artifacts. Producers receive bounded write scope in isolated worktrees. Candidate bytes are frozen and identified by hashes before independent verification. Reviewers operate in fresh context, and read-only roles lack mutation tools. The runtime rejects nested delegation, scope escapes, changed bases, mismatched anchors or trees, and unaccepted candidates. Integration stages reviewed bytes; it does not commit them.
The central rule is deliberately simple: all agent output is an untrusted candidate; implementers cannot approve their own work; and only an independently verified pipeline candidate with commit-bound gate clearance can be accepted without a human. Verification reduces risk but does not establish that a change is safe for your particular deployment.
The plugin starts its MCP server with ${CLAUDE_PLUGIN_ROOT}/runtime/bootstrap.mjs. It may invoke Git, Node.js, configured verification executables, and a selected Producer CLI. Producer processes can edit only through an eligible isolated lane; verification commands are Host-authorized and their confinement/network enforcement is reported honestly. The runtime uses executable-plus-argv invocation, sanitized environments, bounded timeouts, process-tree termination, executable policy, and path validation. Never authorize secrets, deployment commands, destructive commands, or broader write globs than the task requires.
Codex edit confinement uses codex-native-sandbox: native macOS arm64 is certified, Linux is tested where unprivileged user namespaces permit the native sandbox, and native Windows editing is unsupported. Unsupported or failed confinement is diagnostics-only and fails closed. The Codex adapter enforces --disable multi_agent together with features.multi_agent_v2={enabled=false,max_concurrent_threads_per_session=1}. Installed marketplace copies must update and reload Claude Code before a new runtime or adapter controls take effect.
Durable run state, manifests, frozen artifacts, decisions, and recovery metadata are stored beneath the Claude Code-provided ${CLAUDE_PLUGIN_DATA} directory. Temporary isolated worktrees and process files use OS temporary storage and are recovered or pruned by the runtime. Production runs do not fall back to an implicit state directory when ${CLAUDE_PLUGIN_DATA} is unavailable.
Logs and MCP evidence are bounded and redacted; prompt/argument values are not intentionally logged. Producer CLIs and any configured model providers have their own telemetry, retention, and privacy policies. Do not place credentials or sensitive data in delegation specs, prompts, test fixtures, or command arguments.
unlink/rmdir remove directory entries by name; they cannot atomically delete an already-opened inode. Cleanup therefore runs only after the supervised Producer tree has settled, moves the worktree outside Producer write scope, binds traversal to its opened inode, and rechecks the named identity at each removal boundary. A malicious process already running as the same OS account—or a sandbox/kernel escape that can mutate plugin state concurrently—is outside this guarantee. Windows cleanup uses packaged x64/arm64 native helpers for ACL validation, directory flushing, and deletion by validated handle; it does not depend on PowerShell.npm install
npx tsc --noEmit
npx vitest run
bash scripts/validate-release.sh
claude plugin validate .
Enable local push gates once per clone:
git config core.hooksPath .githooks
See AGENTS.md for architecture boundaries, trust invariants, testing requirements, packaging rules, and the minor-version-only release policy.
Use GitHub Issues for reproducible bugs and support questions. For a suspected vulnerability, use the repository's private GitHub security reporting channel rather than a public issue. Include the plugin version, host OS/architecture, Claude Code version, Producer CLI/version, redacted diagnostics, and reproduction steps.
Contributions are welcome. Keep changes narrowly scoped, add tests that prove the relevant trust property, run all repository checks, and explain platform or security implications. Read AGENTS.md before working on the runtime.
Claude Architect is licensed under the MIT License.
.claude/
.claude-plugin/
marketplace.json
plugin.json
settings.json
.coderabbit.yaml
.githooks/
pre-push
.github/
dependabot.yml
ISSUE_TEMPLATE/
bug_report.yml
feature_request.yml
security_question.yml
pull_request_template.md
workflows/
ci.yml
codeql.yml
.gitignore
.mcp.json
agents/
AGENTS.md
advisor.md
claude-advisor.md
delegation-lane.md
assets/
banner.svg
social-card.svg
social-preview.png
statusline/
delegation-status.sh
README.md
CHANGELOG.md
CLAUDE.md
CODE_OF_CONDUCT.md
CONTEXT.md
CONTRIBUTING.md
docs/
ARCHITECTURE.md
design-review/
02-role-separation.md
enhancement-plan.md
reference-spec.md
MARKETPLACE_REVIEW.md
operations.md
PLUGIN_COMPONENTS.md
PRIVACY.md
research/
2026-07-13-fable-5-safeguard-trigger.md
2026-07-27-github-actions-runner-design.md
SECURITY_MODEL.md
superpowers/
plans/
2026-07-13-codex-runner-stdin-forwarding.md
2026-07-13-lane-architecture-enhancements.md
2026-07-14-bounded-delegation-attempt.md
2026-07-14-disable-codex-multi-agent.md
2026-07-14-p0-runtime-implementation.md
2026-07-15-fresh-context-review-pipeline.md
2026-07-15-p0b-cross-platform-hardening.md
2026-07-15-p0c-producer-completion.md
2026-07-16-dogfood-hardening-wave.md
2026-07-16-orphan-cleanup-and-spec-tightening.md
2026-07-17-delegation-contract-repair.md
2026-07-17-legacy-codex-mcp-migration.md
2026-07-18-ralph-loop-integration.md
2026-07-18-sliced-delegation.md
2026-07-23-native-subagent-delegation-phase-a.md
specs/
2026-07-14-disable-codex-multi-agent-design.md
2026-07-15-fresh-context-review-pipeline-design.md
2026-07-17-delegation-contract-repair-design.md
2026-07-17-legacy-codex-mcp-migration-design.md
2026-07-18-agent-guide-hardening-design.md
2026-07-18-ralph-loop-integration-design.md
2026-07-18-sliced-delegation-design.md
2026-07-23-native-subagent-delegation-design.md
2026-07-27-pr-23-ci-and-review-cleanup-design.md
2026-08-04-agy-lane-smoke-test.md
2026-08-04-agy-producer-adapter-design.md
THREAT_MODEL.md
TRUST_BOUNDARIES.md
esbuild.config.mjs
LICENSE
native/
bin/
win32-filesystem-arm64.exe
win32-filesystem-x64.exe
win32-job-kill-arm64.exe
win32-job-kill-x64.exe
build-win32.md
README.md
win32-filesystem.c
win32-job-kill.c
opencode.json
package-lock.json
package.json
README.md
runtime/
.gitkeep
bootstrap.mjs
schemas/
advisor-report.v1.json
attempt-result.v1.json
autopilot-eligibility.v1.json
autopilot-spec.v1.json
autopilot-workflow-state.v1.json
candidate-decision.v2.json
delegation-spec.v1.json
final-branch-report.v1.json
fix-report.v1.json
increment-report.v1.json
review-report.v1.json
run-status.v1.json
verification-report.v1.json
server.mjs
watchdog.mjs
scripts/
build-runtime.sh
install-opencode.sh
validate-release.sh
verify-native-helpers.mjs
SECURITY.md
skills/
codex/
SKILL.md
delegate/
SKILL.md
subagent-driven-delegation/
SKILL.md
src/
autopilot/
autopilot-controller.ts
autopilot-eligibility.ts
branch-manager.ts
candidate-promoter.ts
final-branch-reviewer.ts
types.ts
workflow-store.ts
git/
candidate-tree.ts
changed-path-manifest.ts
git-exec.ts
git-output.ts
repo-preconditions.ts
worktree-registration.ts
index.ts
integrate/
controlled-integrator.ts
mcp/
allowlist-sufficiency.ts
bootstrap-check.ts
decision-authority.ts
doctor.ts
git-read-tools.ts
live-bundle.ts
serialize.ts
server.ts
tools.ts
pipeline/
advisor-stage.ts
consolidator.ts
gates.ts
git-writable-roots.ts
pipeline-runtime.ts
report-types.ts
role-prompts.ts
role-runner.ts
slice-composer.ts
slice-runner.ts
slice-scheduler.ts
structured-output.ts
wayfinder.ts
platform/
bound-directory-cleanup.ts
durable-directory.ts
lock-owner.ts
platform-services.ts
posix-platform-services.ts
process-supervisor.ts
sandbox/
backends.ts
seatbelt.ts
select-platform.ts
windows-env.ts
windows-filesystem-helper.ts
windows-platform-services.ts
producers/
agy-adapter.ts
capability-probe.ts
codex-adapter.ts
opencode-adapter.ts
pi-adapter.ts
plain-text.ts
producer-adapter.ts
producer-registry.ts
pythinker-adapter.ts
routing-policy.ts
skill-bootstrap.ts
protocol/
attempt-result.ts
autopilot-spec.ts
candidate-decision.ts
delegation-spec.ts
schema-loader.ts
spec-hash.ts
spec-validator.ts
versions.ts
runtime/
artifact-store.ts
attempt-runtime.ts
environment-policy.ts
producer-preflight.ts
recovery-manager.ts
redaction.ts
reproducibility.ts
review-snapshot.ts
run-manifest.ts
run-start.ts
run-status.ts
state-dir.ts
worktree-manager.ts
worktree-mutation-gate.ts
worktree-removal-coordinator.ts
worktree-removal-manifest.ts
ship/
github-cli-adapter.ts
hosting-adapter.ts
util/
bounded-buffer.ts
errors.ts
glob.ts
logger.ts
platform-path.ts
stable-file.ts
verify/
acceptance-verifier.ts
baseline-verifier.ts
dependency-link.ts
project-verifier.ts
structural-verifier.ts
SUPPORT.md
tests/
claude-runtime-resolver.test.sh
delegate-routing.test.mjs
install-opencode.test.sh
lane-launchers.test.sh
plugin-manifest.test.mjs
runtime/
acceptance-verifier.test.ts
agy-adapter.test.ts
allowlist-sufficiency.test.ts
artifact-store.test.ts
attempt-result.test.ts
attempt-runtime.test.ts
autopilot/
autopilot-adversarial.test.ts
autopilot-controller.test.ts
autopilot-doctor.test.ts
autopilot-e2e.test.ts
autopilot-mcp.test.ts
autopilot-recovery-cutpoints.test.ts
autopilot-recovery.test.ts
autopilot-windows.test.ts
branch-manager.test.ts
candidate-promoter.integration.test.ts
candidate-promoter.test.ts
final-branch-reviewer.test.ts
workflow-state-schema.test.ts
workflow-store.test.ts
baseline-verifier.test.ts
bootstrap-check.test.ts
bootstrap.smoke.test.ts
candidate-decision.test.ts
candidate-tree.test.ts
capability-probe.test.ts
changed-path-manifest.test.ts
codex-adapter.test.ts
consolidator.test.ts
controlled-integrator.test.ts
crlf-events.test.ts
decision-authority.test.ts
dependency-link.test.ts
doctor.test.ts
durable-directory.test.ts
e2e-pipeline.test.ts
e2e-vertical-slice.test.ts
environment-policy.test.ts
fixtures/
codex-garbage.txt
codex-success.json
echo-sleep.mjs
edit-file.mjs
gates.test.ts
git-exec.test.ts
git-read-tools.test.ts
git-writable-roots.test.ts
handshake.smoke.test.ts
helpers/
git-fixture-env.ts
human-decision-gate.test.ts
legacy-decision-provenance.test.ts
live-bundle.test.ts
lock-contention.test.ts
mcp-cancellation.test.ts
mcp-decision-gate.test.ts
mcp-input-schema.test.ts
opencode-adapter.test.ts
pi-adapter.test.ts
pipeline/
pipeline-runtime.test.ts
advisor-stage.test.ts
autopilot-eligibility.test.ts
autopilot-fixtures.ts
slice-runner.test.ts
wayfinder.test.ts
platform-path.test.ts
plugin-wiring.test.mjs
posix-platform-services.test.ts
pre-push-hook.test.ts
process-supervisor.test.ts
process-token.test.ts
producer-adapter.test.ts
producer-preflight.test.ts
project-verifier.test.ts
protocol/
autopilot-schema.test.ts
slice-schema.test.ts
slice-types.test.ts
slice-validation.test.ts
pythinker-adapter.test.ts
recovery-manager.test.ts
redaction.test.ts
repo-preconditions.test.ts
report-schemas.test.ts
reproducibility.test.ts
review-manifest-echo.test.ts
review-snapshot.test.ts
role-prompts.test.ts
role-runner.test.ts
routing-policy.test.ts
run-manifest.test.ts
run-status.test.ts
sandbox-backends.test.ts
scaffold.test.ts
schema-loader.test.ts
seatbelt.test.ts
serialize.test.ts
shipping/
github-cli-adapter-red-paths.test.ts
github-cli-adapter.test.ts
skill-bootstrap.test.ts
slice-composer.test.ts
slice-scheduler.test.ts
spec-hash.test.ts
spec-validator-review.test.ts
spec-validator.test.ts
stable-file.test.ts
structural-verifier.test.ts
structured-output.test.ts
tools.test.ts
watchdog.test.ts
windows-filesystem-helper.test.ts
windows-helper-resolve.test.ts
windows-job-kill.test.ts
windows-platform.test.ts
windows-resolve.test.ts
worktree-manager.test.ts
worktree-registration.test.ts
worktree-removal-manifest.test.ts
worktree-sweep.test.ts
validate-release.test.sh
tsconfig.json
vendor/
superpowers/
LICENSE
skills/
systematic-debugging/
condition-based-waiting-example.ts
condition-based-waiting.md
defense-in-depth.md
find-polluter.sh
root-cause-tracing.md
SKILL.md
test-driven-development/
SKILL.md
writing-good-tests.md
verification-before-completion/
SKILL.md
VENDOR.md
vitest.config.ts© 2026 Flowy · Free and open source
Built for Claude Code · Not affiliated with Anthropic