Skip to content

undo-last-change

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.

ParameterTypeRequiredDescription
projectPathstringNoPath to the project directory (default: cwd)
  • Only reverts one step at a time. Call multiple times to go further back.
  • Updates .mistflow/state.json to 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.