请问HN:如何通过编码代理跟踪微小变化?

1作者: vedhant大约 2 小时前原帖
我主要使用Claude代码,有时也会用Cursor。我不断地发出提示,代理则不断地进行编码。但在进行有意义的更改后才会进行Git提交,最糟糕的情况下,对于一个小功能也只会提交一次。我会自己检查关键代码,每当代理搞乱代码时,我需要它将更改恢复到之前的版本(大多数情况下是恢复到上一个提示)。这些微小的更改通常不会在Git中提交。这个恢复过程让我很头疼,而提示代理恢复上一个更改时也常常出错(它有时会执行Git revert)。我想知道有没有什么合理的方法来解决这个问题,而不是让自己变得疯狂……
查看原文
I primarily use claude code and sometimes cursor. I keep prompting and the agent keeps coding. But git commits are done after meaningful changes, worst case 1 for a small feature. I check critical code myself and whenever the agent messes the code, i need it to revert the changes to a previous change it made (most of the times to the previous prompt). These micro changes is not generally comitted in git. This revert is a headache for me and prompting the agent to revert last change has messed up (it did git revert a few times). I want to know any sane method for solving this and not drive myself crazy…