Ask HN:如何使用编码代理跟踪微小变化?
1 分•作者: vedhant•20 天前
我主要使用 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…