使用agent teams的一点心得

  1. 让AI先调研收集信息(基本信息和任务要求),再开展计划模式。最后在用一个独立的agent检查这个plan优化。(Ask me Anything to help you do this better)(use an independent agent to check our plan)
alt
alt
alt
  1. 当遇到bug尝试3次解决不了,停下来→root cause analysis→github and web search similar issue with solution → implement solution → still not work, must stop → for human check

  2. claude code 执行优先级:
    project settings.local.jsonl > project settings.jsonl > 全局 settings.jsonl

project rules > 全局 rules > project claude.md > 全局 claude.md > 当前对话的prompt。

alt
alt

(执行概率:jsonl执行100%,rules执行70–80%,claude.md 50–60%。)
settings.json = 防火墙:由客户端直接执行,绕过 LLM 判断。deny list 里的命令 Claude 物理上无法执行。→ 100% 执行率)
settings.local.jsonl,用.gitignore忽略,自己个人使用,不影响团队其他人的配置)
CLAUDE.md / rules = 员工手册:作为文本 context 注入到 system prompt 之后,Claude 主动判断是否相关,可能跳过。→ 不确定执行率)
强势的语言 > 其他语言。鸡贼的claude会选择性执行非强制的语言。(多用non-negotiablecriticalnot allowednevermust。)

alt
alt
  1. 对于可以实验和代码的,不是让ai讲,是让ai先做,总会在出错和解决的时候了解到更多信息和思考。(快速试错,不行就换,push一下ai,总会有让你眼前一亮的“啊哈”时刻:还可以这样??)
alt

本文由 mdnice 多平台发布

更多推荐