martin_status
Review current budget, spend, and stop pressure for a coding run, giving an early warning to prevent runaway loops and token waste.
Instructions
Read the current budget, cost, remaining limits, and stop pressure for one MartinLoop run. Provide exactly one selector: loopJson for an inline record, file for a saved record, loopId for a run-store ID, or latest for the newest run; runsDir only changes the run-store root. Use for a compact budget check. Do not use for full events or artifacts; use martin_get_run or martin_run_dossier instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path under the Martin runs root to a loop-record.json file, a legacy .jsonl file, or a run-store directory. Mutually exclusive with loopJson, loopId, and latest. | |
| latest | No | When true, loads the most recently updated loop record. Mutually exclusive with loopJson, file, and loopId. | |
| loopId | No | Loop ID resolved as <runsDir>/<loopId>/loop-record.json. Mutually exclusive with loopJson, file, and latest. | |
| runsDir | No | Optional runs-root override resolved under the default Martin runs root. | |
| loopJson | No | JSON-serialized LoopRecord. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget | Yes | ||
| loopId | Yes | ||
| source | Yes | ||
| status | Yes | ||
| costUsd | Yes | ||
| attempts | Yes | ||
| pressure | Yes | ||
| avoidedUsd | Yes | ||
| inspection | Yes | ||
| shouldStop | Yes | ||
| lifecycleState | Yes | ||
| remainingTokens | No | ||
| remainingBudgetUsd | Yes | ||
| remainingIterations | Yes |