undo-last-change
What it does
Section titled “What it does”Reverts the most recent implement-step by performing a git reset --hard HEAD~1. This undoes the last code change and updates the project state to reflect the rollback.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectPath | string | No | Path to the project directory (default: cwd) |
- Only reverts one step at a time. Call multiple times to go further back.
- Updates
.mistflow/state.jsonto mark the step as incomplete. - This is a destructive operation — uncommitted changes are lost.
- The AI typically uses this when a step introduces bugs that are easier to redo than fix.