martin_estimate
Estimate cost, route, and pre-work burn for a coding task before execution, with optional budget caps and file scope. Use in preflight to prevent runaway spend and over-budget work.
Instructions
Read-only cost, route, and pre-work burn estimate for a software objective. Use before planning/preflight when a change may spend agent time or exceed budget. Do not use for casual questions or as permission to execute. Next: call martin_plan if the estimate is acceptable, or ask for consent if budget/risk is high.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | Which agent CLI would be used. Defaults to claude. | |
| budgetUsd | No | Budget ceiling for estimation. Defaults to 5. | |
| fileScope | No | Optional file paths to scope the estimate. | |
| objective | Yes | The coding task to estimate. | |
| workingDirectory | No | Optional workspace path for recording the estimate receipt against the same task root you plan to run. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | Yes | ||
| reason | Yes | ||
| budgetUsd | Yes | ||
| objective | Yes | ||
| compressed | No | ||
| confidence | Yes | ||
| blockedSteps | No | ||
| selectedMode | Yes | ||
| expectedCostUsd | Yes | ||
| compressionSummary | No | ||
| recommendedBudgetUsd | No | ||
| expectedPreworkBurnPct | Yes |