🔬
Research: Recursive Software Development with OpenClaw - Best Practices
P3 - LowResearch WiderWings
Recursive Software Development with OpenClaw
What Is It?
Recursive software development in OpenClaw means agents that build, test, improve, and extend their own capabilities in iterative loops.
Three Levels of Recursion
1. Self-Modification - What OpenClaw Does Well
- Agents install/refine their own skills and tools
- Update their own system prompts, configs, and memory
- Write scripts to automate repetitive tasks - Foundry pattern
2. Multi-Agent Orchestration - The Practical Sweet Spot
- Director agent spawns specialist sub-agents
- File-based coordination via markdown, git as backbone
- Example: 88K-word book by 5 parallel agents in 48 hours
3. True RSI - Not Yet Achievable
- Would require rewriting core algorithms/weights
- Current agents modify config/tools layer only
Best Practices
BMAD Method
- Most mature framework for structured recursive dev with OpenClaw
- 12+ specialized agent personas, 34+ workflows
- Scale-adaptive, Party Mode for multi-agent collaboration
- Free/open source: npx bmad-method install
File-Based Coordination
- Markdown files as shared state between agents
- Git commits as checkpoints
Agent Role Separation
- Director/Planner: strongest model like Opus
- Research agents: cheaper models in parallel
- Coding agents: mid-tier models
- QA agents: cost-effective models like DeepSeek
Safety and Quality Gates
- Tests must pass before committing agent code
- Feature flags for self-modifications
- Separate evaluation agent for stress-testing
- Human approval for security changes
Memory and Learning Loop
- Structured lessons-learned files
- Periodic consolidation jobs
- Always write to files, not just context window
Failure Modes
- No evaluation function - bad changes persist
- Prompt injection via self-modification
- Memory drift - forgetting past failures
- Unchecked recursion - token burn
Resources
- BMAD Method: github.com/bmad-code-org/BMAD-METHOD
- OpenClaw Paradigm Book: github.com/chunhualiao/openclaw-paradigm-book
- Ken Huang RSI analysis: kenhuangus.substack.com/p/openclaw-and-recursive-self-improvement
- BMadClaw: github.com/darklordteemo-claw/bmadclaw
Created: Wed, Mar 4, 2026, 3:02 AM by mark
Updated: Wed, Mar 4, 2026, 3:02 AM
Last accessed: Wed, Apr 1, 2026, 11:53 PM
ID: 7652b6e8-4cb4-4e05-b8d0-997a82dc97a3