@@ -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
@@ -89,7 +90,29 @@ gh aw compile autoloop
8990
9091** What this does** : Generates ` .github/workflows/autoloop.lock.yml ` from the workflow definition.
9192
92- ## Step 5: Create a Branch, Commit, and Open a Pull Request
93+ ## Step 5: Add Agent Instructions
94+
95+ Add repository instructions so future coding agents recompile generated files after editing agentic workflows:
96+
97+ ```` bash
98+ cat >> AGENTS.md << 'EOF '
99+
100+ ## Agentic Workflows
101+
102+ After modifying any `.md` workflow file under `.github/workflows/`, always recompile:
103+
104+ ```bash
105+ gh aw compile
106+ apm compile
107+ ```
108+
109+ Commit the regenerated `.lock.yml` and integration files together with your changes.
110+ EOF
111+ ````
112+
113+ If your repository already uses ` CLAUDE.md ` or ` COPILOT.md ` instead of ` AGENTS.md ` , add the same instruction there too.
114+
115+ ## Step 6: Create a Branch, Commit, and Open a Pull Request
93116
94117Create a new branch for the installation changes, commit, and push:
95118
@@ -108,7 +131,7 @@ gh pr create --title "Install Autoloop" --body "Set up Autoloop workflows and co
108131
109132Report the pull request link to the user.
110133
111- ## Step 6 : Create Your First Program
134+ ## Step 7 : Create Your First Program
112135
113136Next, 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.
114137
0 commit comments