[{"data":1,"prerenderedAt":89},["ShallowReactive",2],{"werk-ai-agents-en":3},{"id":4,"title":5,"body":6,"date":79,"description":80,"draft":81,"extension":82,"image":79,"imageAlt":79,"meta":83,"metric":79,"metricLabel":79,"navigation":84,"order":74,"path":85,"seo":86,"stem":87,"__hash__":88},"en\u002Fwerk\u002Fai-agents.md","Working with AI agents in a team",{"type":7,"value":8,"toc":72},"minimark",[9,14,18,22,57,61],[10,11,13],"h2",{"id":12},"problem","Problem",[15,16,17],"p",{},"An AI agent that writes code is fast, but it is just as fast at doing something you do not want: committing without being asked, deleting files or following its own style. In a team there is a second problem. Everyone makes their own agreements with the agent, so the result differs per developer.",[10,19,21],{"id":20},"what-i-did","What I did",[23,24,25,33,39,45,51],"ul",{},[26,27,28,32],"li",{},[29,30,31],"strong",{},"Shared rules."," The team's agreements live in one repository that every developer loads. Personal preferences are kept apart and win when they conflict.",[26,34,35,38],{},[29,36,37],{},"A hook as a safety net."," An agent can ignore a rule written in text. So a hook blocks dangerous git commands before they run.",[26,40,41,44],{},[29,42,43],{},"A model per task."," Mechanical work goes to a small model, normal research to a mid-size model, and only choices where judgment decides the outcome go to the largest model.",[26,46,47,50],{},[29,48,49],{},"Several issues in parallel."," One session divides the work and starts a separate agent per issue.",[26,52,53,56],{},[29,54,55],{},"A fixed verification step."," An agent's work is only done once it has been checked: lint, the full test suite and a check of the diff against the rules.",[10,58,60],{"id":59},"what-i-learned","What I learned",[23,62,63,66,69],{},[26,64,65],{},"A rule that only exists as text is a request. What must never happen belongs in a hook.",[26,67,68],{},"Rules grow out of mistakes. Every correction gets a fixed place, so the same mistake does not come back.",[26,70,71],{},"Working in parallel only saves time if the check at the end is as strict as it is for a single issue.",{"title":73,"searchDepth":74,"depth":74,"links":75},"",2,[76,77,78],{"id":12,"depth":74,"text":13},{"id":20,"depth":74,"text":21},{"id":59,"depth":74,"text":60},null,"Shared rules, a hook that blocks dangerous git commands, a model per task and a fixed verification step.",false,"md",{},true,"\u002Fwerk\u002Fai-agents",{"title":5,"description":80},"werk\u002Fai-agents","QZ7Vc3I47yvg8w3bofAF1OPFv80x2YylJgmcheah2Cg",1794308981353]