Skip to content

Auto-WIP-commit before every agent turn to protect uncommitted work #321

Closed

Description

@currentbits

The work-destroyer pattern from the reliability research: git reset --hard / checkout -- / clean -fd wiping UNCOMMITTED work is a recurring disaster genre (multiple Claude Code issues, days of work lost). No branch or checkpoint after the fact can recover it.

Cheap insurance: auto-commit (or stash) a WIP snapshot in the thread's worktree before every agent turn and before any git-mutating agent action. Turns checkpointing from reactive to pre-destructive.

Activity

  1. added
    enhancement
    plan:todo
    on Aug 17, 2026
  2. added
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Oct 19, 2026
  3. currentbits commented on Oct 19, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Auto-WIP-commit before every agent turn to protect uncommitt" (PR #1687). Closed on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions