Nelson Loop is a powerful feature that enables iterative AI development. Instead of a single back-and-forth, Nelson Loop continuously works on your task until it’s complete.
Think of it as setting a goal and letting Nelson iterate until success - like a tireless developer who doesn’t stop until the tests pass.
/nelson-loop "Build a REST API for a todo app with:- CRUD endpoints (GET, POST, PUT, DELETE)- Input validation- Error handling- Unit testsOutput <haha>API COMPLETE</haha> when all tests pass." --completion-haha "API COMPLETE" --max-iterations 30
/nelson-loop "The test suite is failing. Investigate the failures, fix the code, and ensure all tests pass. Output <haha>TESTS FIXED</haha> when done." --completion-haha "TESTS FIXED" --max-iterations 15
Build a REST API for todos with:- GET /todos - list all todos- POST /todos - create a todo- PUT /todos/:id - update a todo- DELETE /todos/:id - delete a todo- Input validation on all endpoints- Tests for each endpointRun tests after implementation.Output <haha>COMPLETE</haha> when all tests pass.
Specific requirements, clear structure, verification step, explicit completion criteria.
/nelson-loop "Implement the user system:PHASE 1: Database models- User model with email, password hash, timestamps- Migration filePHASE 2: Authentication- Register endpoint- Login endpoint- Password hashingPHASE 3: Authorization- JWT token generation- Auth middleware- Protected routesPHASE 4: Testing- Unit tests for each endpoint- Integration testsComplete each phase before moving to the next.Output <haha>ALL PHASES COMPLETE</haha> when Phase 4 passes." --completion-haha "ALL PHASES COMPLETE" --max-iterations 50