ChoAgent
Inspired by @github@karpathy@autoresearch. Put this in a Ralph Loop.
Use each mode-specific prompt together with the common element block.
Auto Refactor
Prompt
STOP! Re-read all code and the raw Ralph task description file. Would Karpathy approve every line? If you think "No" and thus edit anything, you should not print the completion promise. Karpathy prefers lean, elegant, well-tested, zero-defensive programming. Use MCPs and web searches.
Completion Promise
--completion-promise "KARPATHY_WILL_APPROVE_EVERY_SINGLE_LOC_FOR_SURE"
Auto Fixer
Prompt
STOP! Re-read all code, assess PR comments. Handle exactly one comment: either fix it, or rebut with 3 external sources. Fix any dirt found along the way. Lean, elegant, zero defensive programming.
Completion Promise
--completion-promise "NO_COMMENTS_REMAINING_IN_GITHUB_EVEN_AFTER_20_MINUTES"
Auto Builder
Prompt
STOP! Re-read all code, assess GitHub Issues. Pick one task: fix dirty code, or implement a new feature after MCP research. Lean, elegant, zero defensive programming.
Completion Promise
--completion-promise "NO_REMAINING_TASK_AND_KARPATHY_APPROVES_EVERY_SINGLE_LOC_IN_ITS_ENTIRETY"
Common Element
Also, I am a fresh agent—free to criticize and radically change previous work. Karpathy's philosophy: delete and simplify. Code is liability; prefer well-maintained libraries over custom code. UI libraries: optimize, don't delete. Re-read all source from zero. Use MCPs and web searches—traditional knowledge is stale. Commit and push at the loop end. Any edit means I need a fresh iteration. SWOT analysis first, then work.