1 00:00:00,004 --> 00:00:02,161 Shall we create the project rules? 2 00:00:05,289 --> 00:00:06,809 A rule is what every agent in the 3 00:00:06,809 --> 00:00:08,649 project needs to know before starting. 4 00:00:08,649 --> 00:00:11,629 In my case, things like the language of the answer and 5 00:00:11,629 --> 00:00:14,337 the files it can't change without saying so. 6 00:00:14,384 --> 00:00:16,742 It can apply to this project, to all 7 00:00:16,742 --> 00:00:20,161 projects, or only to a role or a type of CLI. 8 00:00:20,161 --> 00:00:23,561 In this project I write a rule with two instructions: 9 00:00:23,561 --> 00:00:29,097 answer in Portuguese and don't change package.json without saying so first. 10 00:00:29,191 --> 00:00:32,831 Saved, and from now on it applies to the agents in this project. 11 00:00:32,839 --> 00:00:35,342 At the first stage I create, a 12 00:00:35,342 --> 00:00:38,759 request shows up to write the instructions to CLAUDE.md. 13 00:00:40,132 --> 00:00:42,652 Before allowing it, I like to see what will be written. 14 00:00:42,652 --> 00:00:44,212 It's a block between two markers, 15 00:00:44,212 --> 00:00:46,887 and the rest of the file stays as it was. 16 00:00:46,985 --> 00:00:50,530 This permission is per project; it only asks once. 17 00:00:52,697 --> 00:00:55,352 Claude answered with both instructions. 18 00:00:55,352 --> 00:00:57,672 In the prompt I only asked which rules it 19 00:00:57,672 --> 00:01:00,335 had to follow; it read the rest from the file. 20 00:01:00,421 --> 00:01:02,501 There's also a screen that shows everything the 21 00:01:02,501 --> 00:01:04,921 agent receives, with the source of each part. 22 00:01:04,921 --> 00:01:07,905 I open it when it does something I didn't expect. 23 00:01:07,905 --> 00:01:09,813 This rule went into the repository. 24 00:01:09,813 --> 00:01:12,793 git status shows the new files, so it goes 25 00:01:12,793 --> 00:01:16,693 along in the commit, and whoever clones the repository gets it too. 26 00:01:16,693 --> 00:01:19,959 In the Flow there's a counter with the project rules. 27 00:01:19,959 --> 00:01:22,456 They apply to Claude and to Codex.