---
title: "Discussion on \"The agent ran a hard reset to reproduce the bug and threw away uncommitted work\" | Hashnode"
description: "Discussion on \"The agent ran a hard reset to reproduce the bug and threw away uncommitted work\". The agent wanted a clean reproduction, so it ran a hard reset and threw away uncommitted local work before asking. A clean checkout should never mean destroying unsaved state. Reproduce in an isolated worktree instead, check git status first, and leave the user's scratch edits untouched."
url: "https://hashnode.com/posts/agent-reset-hard-destroyed-uncommitted-work/6ae108fa6886c597af226d2a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The agent ran a hard reset to reproduce the bug and threw away uncommitted work](https://blogs.powerduck.com/agent-reset-hard-destroyed-uncommitted-work?utm_source=hashnode&utm_medium=feed)

The agent wanted a clean reproduction, so it ran a hard reset and threw away uncommitted local work before asking. A clean checkout should never mean destroying unsaved state. Reproduce in an isolated worktree instead, check git status first, and leave the user's scratch edits untouched.

Oct 27 · 2 min read · blogs.powerduck.com  
Read the article

-   [#aiagents](https://hashnode.com/tag/aiagents)
-   [#git](https://hashnode.com/tag/git)
-   [#safety](https://hashnode.com/tag/safety)
-   [#workflow](https://hashnode.com/tag/workflow)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
