1 00:00:00,005 --> 00:00:02,066 Shall we create the project's rules? 2 00:00:04,998 --> 00:00:06,615 A rule is something every agent in the 3 00:00:06,615 --> 00:00:09,325 project needs to know before it starts. 4 00:00:09,325 --> 00:00:11,989 In my case, things like what language it answers in, 5 00:00:11,989 --> 00:00:15,010 and the files it can't change without telling me. 6 00:00:15,010 --> 00:00:18,084 It can apply to this project, to every project, 7 00:00:18,084 --> 00:00:20,683 or only to a role or a type of CLI. 8 00:00:20,683 --> 00:00:25,023 For this project, I write one rule with two instructions: answer 9 00:00:25,023 --> 00:00:29,156 in English, and don't change package.json without telling me first. 10 00:00:29,156 --> 00:00:33,246 I save it, and from now on it applies to the agents in this project. 11 00:00:33,246 --> 00:00:34,932 When I create the first stage, 12 00:00:34,932 --> 00:00:38,029 I get a request to write the guidance to CLAUDE.md. 13 00:00:39,061 --> 00:00:42,237 Before allowing it, I like to look at what will be written. 14 00:00:42,237 --> 00:00:43,763 It's a block between two markers, 15 00:00:43,763 --> 00:00:46,413 and the rest of the file stays as it was. 16 00:00:46,413 --> 00:00:49,794 This permission is per project, so it only asks once. 17 00:00:51,288 --> 00:00:53,560 Claude answered with both instructions. 18 00:00:53,560 --> 00:00:55,644 In the prompt, I only asked which rules it 19 00:00:55,644 --> 00:00:58,643 had to follow; it read the rest from the file. 20 00:00:58,643 --> 00:01:00,388 There's also a screen that shows everything the 21 00:01:00,388 --> 00:01:03,474 agent receives, and where each part comes from. 22 00:01:03,474 --> 00:01:06,639 I open that one when the agent does something I didn't expect. 23 00:01:06,639 --> 00:01:08,893 This rule lives in the repository. 24 00:01:08,893 --> 00:01:12,832 git status shows the new files, so the rule goes into the commit, 25 00:01:12,832 --> 00:01:15,699 and anyone who clones the repository gets it too. 26 00:01:15,699 --> 00:01:18,864 In Flow, there's a counter for the project's rules. 27 00:01:18,864 --> 00:01:21,325 They apply to both Claude and Codex.