saoudrizwan / claude-dev

Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.
https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev
MIT License
4.04k stars 381 forks source link

Trigger save versioning in VS Code #123

Closed ironwill9698 closed 1 week ago

ironwill9698 commented 3 weeks ago

When I manually write code and save the file it creates a "version history" checkpoint so that I can revert to prior versions of that code. It looks like when this extension makes changes to the code no version history is created so I can't easily revert back a few versions when the AI has gone down a rabbit trail and caused a lot of issues. Is it possible to somehow create those save checkpoints like occur when you manually save a file in VS Code?

saoudrizwan commented 1 week ago

Add this to Custom Instructions (in settings) to keep git history as Claude works: "After completing a task or making significant changes, automatically run git add . && git commit -m with a message summarizing the recent updates." This way you can keep track of his work in git and easily revert the changes he makes.