Skip to content

Test Ralph loop for architecture design iteration #100

@jeevanpillay

Description

@jeevanpillay

Context

We want to use Claude Code's built-in Ralph loop (/ralph-loop) to iteratively design Dual's architecture through hypothesis-driven experimentation.

Setup Created

  • thoughts/ARCHITECTURE.md — Living architecture doc with seed question
  • .claude/agents/architecture-scoper.md — Agent to generate testable hypotheses
  • .claude/commands/architecture_loop.md — Command spec (may not be needed if built-in works)

Test Plan

  1. Restart Claude instance to pick up new agent

  2. Test /ralph-loop with architecture design prompt:

    /ralph-loop "Read thoughts/ARCHITECTURE.md. Do one iteration of architecture design: scope the next open question into a hypothesis, research it, create experiment, run it, validate results, update ARCHITECTURE.md. Output <promise>ARCHITECTURE_COMPLETE</promise> when no open questions remain." --max-iterations 10 --completion-promise "ARCHITECTURE_COMPLETE"
    
  3. Observe behavior and iterate on prompt/approach

Success Criteria

  • Ralph loop runs multiple iterations
  • ARCHITECTURE.md gets updated between iterations
  • Loop exits when architecture is complete (or max iterations)
  • Research docs and experiments are created as artifacts

References

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions