How it works overview
Phase 01

Plan First

Analyze before you infer.

Overview

Every Devtor session starts with structured planning. Granular plan mode kicks in when a task needs it — producing step-by-step execution plans that reduce hallucinations and token waste. Pre-execution token estimation and token budgeting surface projected cost before any inference runs.

In depth

Plan-first mode scores task complexity, estimates tokens, and applies your budget limits. When planning is warranted, Devtor generates detailed step-by-step plans — output as structured plan.html for review. You approve, adjust context, or cancel — so expensive models are never invoked blindly on work a cheaper agent could handle.

What happens

  1. 1Parse the natural-language task and intent
  2. 2Detect whether granular planning is required
  3. 3Estimate tokens, cost, and budget headroom
  4. 4Generate plan.html or lightweight routing preview
  5. 5Present the plan for approval or adjustment

Terminal output

terminal
$devtor run "Refactor auth module"
Analyzing task complexity...
→ Complexity: medium · planning required
→ Estimated tokens: 2,400 · budget: OK
→ Plan written: plan.html
→ Est. cost: $0.006

Benefits

  • Granular plans when complexity demands them
  • Pre-execution token and cost estimates
  • Token budgets enforced before compute starts
  • Structured plan.html output for reviewable decisions

Ready to orchestrate?

Installation guide and CLI — coming soon.

Get started