983 字
5 分钟
AI工具居然会"记仇"了,聊聊这个记忆功能
上次写了篇用AI写代码的感受(见《这周开始用AI写代码,说说真实感受》),这几天又发现了一个之前没太在意的功能:它现在会”记事儿”了,而且是跨会话记的,不是聊天记录里翻旧账那种,是真的会写进一个本地的笔记文件里,下次开新对话还能翻出来用。
好奇心上来了,就去看了看它到底都记了些什么,索性把原始文件贴出来。为了不暴露账号密钥、邮箱这类东西,我删掉了两条涉及具体账号信息的记录,其余的做了少量脱敏(比如设备名、本地路径),内容本身没有改写。
关于用中文回复的偏好:
---name: feedback-respond-in-chinesetype: feedback---
Always respond to this user in Chinese (中文), in every future session,regardless of what language the user's own message is written in or whatthe task is about.
Why: User explicitly requested this ("以后不管怎样都说Chinese").
How to apply: Default all user-facing text to Chinese from the very firstmessage of a session onward — don't wait for the user to switch languagefirst. This applies broadly (explanations, status updates, questions) butcode, commands, file contents, and technical identifiers stay in whateverlanguage/form is correct for them.关于”没协议就能抄”这次误会:
---name: no-license-no-copytype: feedback---
When asked to replicate an automation script from another public repo forthe user's own project, the user's reasoning was "he has no license, socopy his code". Pushed back and reimplemented the feature independentlyinstead of copying the source files.
Why: No LICENSE file legally defaults to "all rights reserved," not "norestrictions" — public visibility on GitHub only permits viewing/forking,not copying code into another project. This is the opposite of what theuser assumed.
How to apply: If this comes up again around reusing someone else'sunlicensed code, explain the no-license-means-restricted default directlyand offer either (a) an independent reimplementation from the describedbehavior, or (b) asking the original author for explicit permission —don't copy the source. The user accepted this once it was explained, so aclear explanation is enough; no need to over-hedge.关于这个博客本身的部署踩坑记录:
---name: blog-fuwari-stacktype: project---
User's personal blog is an Astro site built from the saicaca/fuwari theme,deployed to Cloudflare Pages with a custom domain. Blog niche istech/gadgets, not general life-diary content.
Deploys are manual via `wrangler pages deploy dist` after `npm run build`— there is no Cloudflare Git integration connected.
Known build flake: `npm run build` intermittently fails with`The 'link' class does not exist` from `src/styles/markdown.css` even when`main.css` is correctly imported in `Layout.astro`. Root cause not fullyunderstood (Tailwind/Vite cache issue) — retry after`rm -rf .astro node_modules/.vite node_modules/.astro dist`; sometimesneeds 2-3 retries or including `dist` in the clear.关于一次”造轮子 vs 用现成的”的决策:
---name: project-easonza-openclaw-forktype: project---
The user originally asked to build a personal AI assistant gatewaysupporting multiple model providers — the description turned out to matchan existing open-source project's own README almost verbatim. Rather thanreimplementing that project's multi-year, large-scale codebase fromscratch, the user chose to fork it instead.
Why: The existing open-source project (MIT licensed) already does exactlywhat was described. Forking preserves attribution and avoids wasted effortre-building existing infrastructure.
How to apply: First change was scoped narrowly and deliberately — onlyREADME and package metadata, not deep internals. Full in-app rebrandingwas explicitly scoped out as a much larger, separate effort.关于 Claude 的官方 GitHub 身份和本地 CLI 的区别(自己也搞混过):
---name: reference-claude-github-app-identitytype: reference---
The official Anthropic "Claude" GitHub identity (claude[bot]) is aseparate, CI-triggered integration, not something a local terminal CLIsession can act as.
It activates only when someone mentions @claude on a GitHub issue/PR —GitHub then spins up a runner executing the official Claude Code Actionunder the app's own identity. It has no effect on a local CLI sessionrunning in a terminal — a local session's git commits always use whatevergit/gh account is configured on that machine.
How to apply: Don't imply or promise that a local session's future commitswill show as claude[bot]; correct this expectation proactively if it comesup.看完这几条挺有意思的:它记的不只是事实,还包括”为什么”和”当时是怎么被说服的”。这样下次遇到类似情况,不用我再解释一遍道理,它自己就能推理出该怎么应对。至于删掉的那两条——一条是账号相关的密钥信息,一条是我个人身份认同相关的内容——就不方便公开了,权当留个念想,AI 的笔记本里终究也不是什么都适合摊开给别人看的。
AI工具居然会"记仇"了,聊聊这个记忆功能
https://blog.easonyin.xyz/posts/ai-jiyi-gongneng/