跳到正文
原文
rohanpaul_ai· @rohanpaul_ai · X·· 2 天前AI 评分52

用 Git 式版本管理让智能体处理中途需求变更

AI 导读

作者提出把智能体记忆当作 Git 仓库管理,用提交和分支保存版本,让智能体丢弃过期需求、保留仍有效的工作。GitHarness 将每条需求与其对应工作一起存储并从最近有效版本分支,在全部 30 个测试场景中胜过普通续跑,其中 1 个场景在编码任务上少用 73.6% token 且得分更高。

正文 · 原文

Treating agent memory like a Git repo, with commits and branches, lets agents drop outdated requirements and keep the work that is still valid.

Agents handle mid-task changes from users better when they save versions of their work and resume from the right one, so build that versioning into any agent that takes feedback.

Users rarely give a full spec upfront. They add, fix, or drop requirements as results come in. Most agents then carry stale work forward or redo everything.

GitHarness stores each requirement with its matching work, like Git commits, and branches from the closest valid version. It beat plain continuation in all 30 tested settings. In 1 setup, it used 73.6% fewer tokens on coding tasks while scoring higher.

When a user changes 1 detail, go back to the version that still fits and redo only what changed.

来源:rohanpaul_ai · x.com