This prompt guides you, a coding agent, to install Autoloop — an automated research and experimentation platform that runs iterative optimization loops on GitHub Agentic Workflows.
Set up Autoloop in this repository by:
- Installing the gh-aw CLI extension
- Initializing the repo for agentic workflows
- Copying the Autoloop workflow and configuration files
- Compiling the workflows
- Creating a branch, committing, and opening a pull request
- Helping create the first Autoloop program
Run the installation script from the gh-aw repository:
curl -sL https://raw.githubusercontent.com/github/gh-aw/main/install-gh-aw.sh | bashVerify installation:
gh aw versionYou should see version information displayed. If you encounter an error, check that:
- GitHub CLI (
gh) is installed and authenticated - The installation script completed without errors
gh aw initWhat this does: Configures .gitattributes, creates the dispatcher agent, and sets up Copilot setup steps.
Clone the Autoloop repository and copy its files into this repo:
git clone https://github.com/githubnext/autoloop /tmp/autoloopCopy the workflow definitions:
cp -r /tmp/autoloop/workflows/ .github/workflows/Copy the issue template and create the Autoloop directories:
mkdir -p .github/ISSUE_TEMPLATE
cp -r /tmp/autoloop/.github/ISSUE_TEMPLATE/ .github/ISSUE_TEMPLATE/
mkdir -p .autoloop/programsClean up:
rm -rf /tmp/autoloopgh aw compile autoloop
gh aw compile sync-branchesWhat this does: Generates .github/workflows/autoloop.lock.yml and .github/workflows/sync-branches.lock.yml from the workflow definitions.
Create a new branch for the installation changes, commit, and push:
git checkout -b install-autoloop
git add .
git commit -m "Install Autoloop"
git push -u origin install-autoloopThen open a pull request for review:
gh pr create --title "Install Autoloop" --body "Set up Autoloop workflows and configuration"Report the pull request link to the user.
Next, 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.
Help the user create their first Autoloop program as a GitHub issue using the Autoloop Program issue template. See create-program.md for a detailed guide on writing programs.
A good first program has:
- A measurable numeric metric
- A bounded set of target files
- An incremental goal where small changes can improve the metric
When proposing a program, always clarify whether it is open-ended or goal-oriented:
- Open-ended programs run indefinitely, always seeking improvement (e.g., "continuously improve algorithm performance"). Omit
target-metricfrom the frontmatter. - Goal-oriented programs have a specific finish line (e.g., "reach 95% test coverage"). Set
target-metricin the frontmatter. When the metric is reached, the program completes automatically — theautoloop-programlabel is removed andautoloop-completedis added.
Read the target repo to find good candidates for autoloop programs. Test coverage? Bundle size optimization? Algo improvements? ML pipeline improvements?
Optionally, you may copy existing examples from the .autoloop/programs/ folder in the Autoloop repo for inspiration.
- Verify GitHub CLI is installed:
gh --version - Re-run the installation script from Step 1
- Check that
gh auth statusshows a valid session
- Ensure
.github/workflows/autoloop.mdand.github/workflows/sync-branches.mdexist - Ensure
.github/workflows/shared/directory was copied - Re-run
gh aw compile autoloopwith--verbosefor details
- Autoloop repository: https://github.com/githubnext/autoloop
- GitHub Agentic Workflows: https://github.github.com/gh-aw/
- Creating programs: See
create-program.md