Continuous Refactor

5 nodes · 2 podsclaude-code, codex
refactorovernightcontinuous

A refactoring pod improves code quality while a review pod adversarially checks every change. The review pod catches regressions the refactoring pod introduces. Designed to run overnight.

rig up rigs/continuous-refactor.yaml
RigSpec
version: "0.2"
name: continuous-refactor
pods:
  - id: refactor
    label: Refactor
    members:
      - id: architect
        agent_ref: "local:agents/refactor-architect"
        profile: default
        runtime: claude-code
        cwd: .
      - id: implementer
        agent_ref: "local:agents/refactor-impl"
        profile: default
        runtime: codex
        cwd: .
      - id: test-writer
        agent_ref: "local:agents/refactor-test"
        profile: default
        runtime: claude-code
        cwd: .
    edges:
      - kind: can_observe
        from: implementer
        to: architect
      - kind: can_observe
        from: test-writer
        to: implementer
  - id: review
    label: Review
    members:
      - id: r1
        agent_ref: "local:agents/review-1"
        profile: default
        runtime: claude-code
        cwd: .
      - id: r2
        agent_ref: "local:agents/review-2"
        profile: default
        runtime: codex
        cwd: .
    edges:
      - kind: collaborates_with
        from: r1
        to: r2
edges:
  - kind: can_observe
    from: review.r1
    to: refactor.implementer