@@ -10,8 +10,9 @@ Set up Autoloop in this repository by:
10102 . Initializing the repo for agentic workflows
11113 . Copying the Autoloop workflow and configuration files
12124 . Compiling the workflows
13- 5 . Creating a branch, committing, and opening a pull request
14- 6 . Helping create the first Autoloop program
13+ 5 . Adding agent instructions to keep generated workflow files fresh
14+ 6 . Creating a branch, committing, and opening a pull request
15+ 7 . Helping create the first Autoloop program
1516
1617## Step 1: Install gh-aw CLI Extension
1718
@@ -117,7 +118,29 @@ gh aw compile autoloop
117118
118119** What this does** : Generates ` .github/workflows/autoloop.lock.yml ` from the workflow definition.
119120
120- ## Step 5: Create a Branch, Commit, and Open a Pull Request
121+ ## Step 5: Add Agent Instructions
122+
123+ Add repository instructions so future coding agents recompile generated files after editing agentic workflows:
124+
125+ ```` bash
126+ cat >> AGENTS.md << 'EOF '
127+
128+ ## Agentic Workflows
129+
130+ After modifying any `.md` workflow file under `.github/workflows/`, always recompile:
131+
132+ ```bash
133+ gh aw compile
134+ apm compile
135+ ```
136+
137+ Commit the regenerated `.lock.yml` and integration files together with your changes.
138+ EOF
139+ ````
140+
141+ If your repository already uses ` CLAUDE.md ` or ` COPILOT.md ` instead of ` AGENTS.md ` , add the same instruction there too.
142+
143+ ## Step 6: Create a Branch, Commit, and Open a Pull Request
121144
122145Create a new branch for the installation changes, commit, and push:
123146
@@ -136,7 +159,7 @@ gh pr create --title "Install Autoloop" --body "Set up Autoloop workflows and co
136159
137160Report the pull request link to the user.
138161
139- ## Step 6 : Create Your First Program
162+ ## Step 7 : Create Your First Program
140163
141164Next, suggest to the user that we create their first program, which will be added to the existing PR. If they decline, we're done. Else, continue.
142165
0 commit comments