thesethrose/clawdbot-backup/agentic-diffusion
Claude Code and agent skill by thesethrose/clawdbot-backup
- community
Checking that the SKILL.md file is still in the repository.
Semantic diffusion model for code. Turns generation into iterative denoising using four distinct roles (Orchestrator, Generator/Ralph, Critic, Refiner) to converge on working solutions through persistent refinement.
Install
npx vskill@latest install thesethrose/clawdbot-backup/agentic-diffusionSKILL.md
Agentic Diffusion
A semantic diffusion model for code that replaces mathematical noise with logic noise. Instead of predicting the final code in one pass (zero-shot), this system iteratively predicts what is wrong and removes it.
The Ralph Wiggum Loop
The architecture relies on persistence rather than intelligence. Like Ralph Wiggum's "I'm Helping!" enthusiasm, the system achieves correctness through eager iteration, not perfect prediction.
Four Distinct Roles
| Role | Metaphor | Responsibility | |
|---|---|---|---|
| Orchestrator | The Adult | Manages the loop, tracks state, ensures persistence | |
| Generator (Ralph) | "I'm Helping!" | Creates noisy initial drafts - eager, complete, messy | |
| Critic | The Gradient | Identifies bugs and flaws WITHOUT writing code | |
| Refiner | The Denoiser | Surgically removes specific bugs from current state |
The Denoising Process
Usage
Start a Diffusion Loop
Example:
Using Sub-Agents
The Orchestrator spawns specialized sub-agents for each phase:
Check Status
Stop the Loop
Why This Beats Zero-Shot
| Approach | Metaphor | Failure Mode | |
|---|---|---|---|
| Zero-Shot | Drawing a map from memory | Hallucinations become permanent | |
| Agentic Diffusion | Tracing and erasing mistakes | Reality Check catches hallucinations |
State Management
State persists to $CLAWD_WORKSPACE/.diffusion/state.json:
Sub-Agents Required
This skill requires the following sub-agents in $CLAWD_WORKSPACE/subagents/:
ralph-generator.md- The eager code generatordiffusion-critic.md- The bug finderdiffusion-refiner.md- The surgical fixer
Cost Warning
Autonomous loops consume tokens. Each iteration runs 3-4 sub-agents. A 20-iteration loop can run 60+ sub-agent invocations. Use --max-iterations wisely. (Or YOLO, if you're brave enough!)
When to Use
- Complex coding tasks needing iteration
- User asks to "diffuse", "iterate until working", or "ralph loop"
- Code needs multiple refinement passes
- Building something from scratch that must work
Orchestrator Instructions
When orchestrating a diffusion loop:
- Initialize state - Set goal, output path, max iterations
- Spawn Generator - Let Ralph create the initial noisy draft
- Spawn Critic - Get structured feedback on issues
- Check convergence - If no issues, verify and complete
- Spawn Refiner - Fix identified issues surgically
- Loop - Increment iteration, repeat from step 2
- Terminate - When converged or max iterations reached
Always run verification (execute the code) before declaring convergence.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agentic-diffusion/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thesethrose/clawdbot-backup/agentic-diffusion)