feat(ralph-wizard): add auto-start option and improve /init timing

- Research agent now explores local project first (CLAUDE.md priority)
- Added {WORKING_DIR} placeholder to research prompt
- New "Auto-Start After Plan" checkbox in advanced options
- Increased /init timeout from 10s to 3 minutes
- Added 3s delay after /init completes for stability

chore: bump version to 0.1409

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-28 03:33:41 +01:00
co-authored by Claude Opus 4.5
parent d3690a963f
commit beb4242c74
6 changed files with 148 additions and 61 deletions
+8 -6
View File
@@ -814,16 +814,18 @@ Check \`${caseDir}/ralph-wizard/research/result.json\` for:
this.runningSessions.add(session);
try {
const prompt = RESEARCH_AGENT_PROMPT.replace('{TASK}', taskDescription);
const prompt = RESEARCH_AGENT_PROMPT
.replace('{TASK}', taskDescription)
.replace('{WORKING_DIR}', this.workingDir);
onProgress?.('research', 'Starting research agent (web search + codebase exploration)...');
onProgress?.('research', 'Starting research agent (local project + web search)...');
// Periodic progress updates showing elapsed time with contextual messages
const researchPhases = [
{ min: 0, msg: 'Searching for relevant GitHub repos and documentation...' },
{ min: 30, msg: 'Exploring official docs and best practice guides...' },
{ min: 60, msg: 'Analyzing codebase patterns and conventions...' },
{ min: 120, msg: 'Synthesizing findings and recommendations...' },
{ min: 0, msg: 'Reading CLAUDE.md and exploring project structure...' },
{ min: 30, msg: 'Analyzing existing code patterns and conventions...' },
{ min: 60, msg: 'Searching for relevant documentation and examples...' },
{ min: 120, msg: 'Synthesizing local and external findings...' },
{ min: 180, msg: 'Compiling research results (complex tasks take time)...' },
{ min: 300, msg: 'Almost done - finalizing enriched task description...' },
];