我如何教我的 AI 编程助手停止遗忘

📄 中文摘要

在一次调试过程中,作者耗费了一整天时间解决了一个静默的错误,尽管查询运行正常且没有错误,但数据却没有更新。经过调查发现,数据库调用虽然成功,但返回了空数据,导致管道一直认为没有工作要做。作者修复了这个问题并将其记录在项目说明中,以防再犯。然而,在下一次使用时,AI 助手 Claude 又犯了同样的错误。作者对此进行了纠正,反映出 AI 在学习过程中存在的遗忘问题。通过这一经历,作者探讨了如何改进 AI 助手的记忆能力,以避免重复错误。

📄 English Summary

How I Taught My AI Coding Assistant to Stop Forgetting

The author spent an entire day debugging a silent bug in their pipeline, where the query ran successfully but the data did not update. It was discovered that the database call was succeeding yet returning nothing, leading the pipeline to believe there was no work to do. After fixing the issue and documenting it to prevent future mistakes, the author encountered the same error with their AI assistant, Claude, during the next session. This highlighted a significant problem with the AI's memory and learning capabilities. The experience led the author to explore ways to enhance the AI assistant's ability to retain information and avoid repeating errors.

Powered by Cloudflare Workers + Payload CMS + Claude 3.5

数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等