DEPRECATED: Use /do instead. This command will be removed in v5.0. Intelligent autonomous development - the best of Ralph Wiggum and autonomous-dev combined. Analyzes complexity, chooses optimal mode (DIRECT vs ORCHESTRATED), executes fully autonomously. NO approval gates - fire and forget with intelligent recovery.
Executes development tasks autonomously by analyzing complexity and selecting optimal execution modes without requiring approvals.
/plugin marketplace add adiomas/claude-code-adiomas-plugins/plugin install autonomous-dev@adiomas-plugins<task description>This command is deprecated. Use
/do <task>for the new AGI-like interface.The new
/docommand includes all features of/auto-smart:
- Automatic complexity scoring
- DIRECT vs ORCHESTRATED mode selection
- Fire and forget execution
- Intelligent recovery
Migration: Simply replace
/auto-smart <task>with/do <task>See:autonomous-dev/docs/migration-v4.mdfor details.
Combines Ralph Wiggum's simplicity with autonomous-dev's intelligence. Fully autonomous execution without approval gates.
Perfect for:
The key difference from /auto: NO approval gates. It runs to completion or checkpoints if stuck.
┌─────────────────────────────────────────────────────────────┐
│ PHASE 1: SMART_ANALYZE (~30 seconds) │
│ ├── Detect project (reuse project-detector) │
│ ├── Score complexity (1-5) │
│ ├── Choose mode: DIRECT (1-2) or ORCHESTRATED (3-5) │
│ └── Output analysis summary │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ PHASE 2: EXECUTE (mode-dependent) │
│ ┌─────────────────────────┐ ┌────────────────────────────┐ │
│ │ DIRECT (simple tasks) │ │ ORCHESTRATED (complex) │ │
│ │ • Loop until done │ │ • Auto-decompose 2-5 phases│ │
│ │ • Evidence gates │ │ • Checkpoint per phase │ │
│ │ • Self-verify │ │ • Evidence gates per phase │ │
│ └─────────────────────────┘ └────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ PHASE 3: SMART_VERIFY │
│ ├── Collect all evidence │
│ ├── Final verification (test, build, lint, typecheck) │
│ └── Output COMPLETE with summary │
└─────────────────────────────────────────────────────────────┘
Use existing project-detector:
${CLAUDE_PLUGIN_ROOT}/scripts/detect-project.sh
Invoke the smart-mode skill for complexity scoring:
Score 1: Single file, <50 LOC, trivial fix → DIRECT
Score 2: 2-3 files, <200 LOC, single feature → DIRECT
Score 3: 4-7 files, multi-component → ORCHESTRATED
Score 4: 8-15 files, architecture changes → ORCHESTRATED
Score 5: 15+ files, full application → ORCHESTRATED
Heuristic Signals:
Create .claude/smart-ralph/state.yaml:
version: "1.0"
mode: DIRECT|ORCHESTRATED
phase: ANALYZE
complexity:
score: 3
reasoning: "Multiple components detected"
mode_selected: ORCHESTRATED
started_at: "2024-01-15T10:30:00Z"
prompt: "<original user prompt>"
failure_recovery:
pivot_count: 0
research_count: 0
last_error: null
Display to user:
┌─────────────────────────────────────────┐
│ SMART RALPH - Analysis Complete │
├─────────────────────────────────────────┤
│ Project: Next.js + TypeScript │
│ Complexity: 3/5 │
│ Mode: ORCHESTRATED │
│ Phases: 3 (auto-determined) │
│ │
│ Starting execution... │
└─────────────────────────────────────────┘
Simple iterative execution:
Evidence Gate Format (MANDATORY):
✅ "Implemented login form [VERIFIED: npm test login.test.ts → 5 passing]"
❌ "Implemented login form" (no evidence = INVALID)
Phased execution with checkpoints:
Phase Structure:
orchestrated_phases:
- id: 1
name: "Setup infrastructure"
status: pending|in_progress|complete
evidence: []
- id: 2
name: "Implement core feature"
status: pending
evidence: []
Stuck Detection:
Recovery Protocol:
LEVEL 1: PIVOT (first 3 attempts)
├── Identify what failed and why
├── List 2-3 alternative approaches
├── Choose most promising
└── Attempt with fresh perspective
LEVEL 2: RESEARCH (after 3 failed pivots)
├── Read more related code in codebase
├── Search for similar patterns
├── Understand dependencies better
└── Reformulate approach with new knowledge
LEVEL 3: CHECKPOINT (after 3 failed research cycles)
├── Save complete state to .claude/smart-ralph/
├── Write detailed stuck-report.md
├── Output: "STUCK - manual intervention needed"
└── Exit gracefully with full context preserved
Max Cycles: 10 total (pivot + research) before hard stop.
All verification must be documented:
## Evidence Collected
- [x] `npm test` → 24 passing, 0 failing
- [x] `npm run build` → success (0 errors)
- [x] `npm run lint` → 0 errors, 0 warnings
- [x] `tsc --noEmit` → no errors
Run complete verification pipeline:
# Read commands from profile
TYPECHECK=$(yq -r '.commands.typecheck // ""' .claude/project-profile.yaml)
LINT=$(yq -r '.commands.lint // ""' .claude/project-profile.yaml)
TEST=$(yq -r '.commands.test // ""' .claude/project-profile.yaml)
BUILD=$(yq -r '.commands.build // ""' .claude/project-profile.yaml)
# Run in order (fastest to slowest for early failure)
[[ -n "$TYPECHECK" ]] && $TYPECHECK
[[ -n "$LINT" ]] && $LINT
[[ -n "$TEST" ]] && $TEST
[[ -n "$BUILD" ]] && $BUILD
CANNOT output COMPLETE without ALL verifications passing:
## COMPLETE
### Summary
- **Mode:** ORCHESTRATED (Complexity 3/5)
- **Phases completed:** 3/3
- **Duration:** ~15 minutes
### What was built
1. Authentication system with login/register
2. Password reset flow with email
3. Session management with JWT
### Verification
- [x] All tests passing (24/24)
- [x] Build successful
- [x] Lint clean
- [x] Type check passed
### Files changed
- src/auth/login.ts (new)
- src/auth/register.ts (new)
- src/auth/reset-password.ts (new)
- src/middleware/auth.ts (modified)
All state saved to .claude/smart-ralph/:
state.yaml - Current execution stateprogress.md - Human-readable progressstuck-report.md - Only if stuck (detailed context for resume)On next session, if incomplete state detected:
┌─────────────────────────────────────────┐
│ SMART RALPH - Incomplete Session Found │
├─────────────────────────────────────────┤
│ Previous task: "Build auth system" │
│ Progress: Phase 2/3 complete │
│ Last activity: 2 hours ago │
│ │
│ Resuming from Phase 3... │
└─────────────────────────────────────────┘
Every claim MUST have verification:
Allowed:
Implemented user registration [VERIFIED: npm test auth/register.test.ts → 8 passing]
Fixed the login bug [VERIFIED: npm test → all 24 tests passing]
Added password validation [VERIFIED: manual test - rejects weak passwords]
NOT Allowed:
I've implemented the feature (no evidence)
The login should work now (speculation)
I think the tests pass (not verified)
Red Flag Words (trigger re-verification):
| Aspect | /auto | /auto-lite | /auto-smart |
|---|---|---|---|
| Planning | Full brainstorm | Skip | Adaptive (if needed) |
| Approval gates | Yes (Phase 3, 6) | No | No |
| Complexity handling | Always full | Assumes simple | Auto-detects |
| Failure recovery | Manual | Escalate | Auto pivot/research |
| Multi-session | Checkpoint | No | Auto-resume |
| Parallelization | Yes | No | If ORCHESTRATED |
| Best for | Quality | Speed | Autonomy |
# Simple task - will use DIRECT mode
/auto-smart "fix the typo in README.md"
# Medium task - will use DIRECT mode
/auto-smart "add a logout button to the header"
# Complex task - will use ORCHESTRATED mode
/auto-smart "build complete authentication with login, register, and password reset"
# Very complex - will use ORCHESTRATED with multiple phases
/auto-smart "create a full dashboard with user management, analytics, and settings"
In all cases, state is preserved and resumable.