I then added a few more personal preferences and suggested tools from my previous failures working with agents in Python: use uv and .venv instead of the base Python installation, use polars instead of pandas for data manipulation, only store secrets/API keys/passwords in .env while ensuring .env is in .gitignore, etc. Most of these constraints don’t tell the agent what to do, but how to do it. In general, adding a rule to my AGENTS.md whenever I encounter a fundamental behavior I don’t like has been very effective. For example, agents love using unnecessary emoji which I hate, so I added a rule:
generated content may not always be optimal or efficient,更多细节参见Line官方版本下载
[&:first-child]:overflow-hidden [&:first-child]:max-h-full",更多细节参见旺商聊官方下载
// 倒序遍历2*len-1次:模拟数组循环(核心!易错点1)