Convert your repo into a full agentic SDLC loop with one command.
npx ghloop initghloop scaffolds an ACPX-powered GitHub Action plus a matching flow so a GitHub issue label can trigger an agent, run a workflow, and open a PR back into the repo.
.github/workflows/<flow-name>.ymlflows/<flow-name>.ts
Generated workflows use the reusable action from this repo:
code-rabi/ghloop/.github/actions/run-acpx-flow@main
You can view the source here
- flow name
- coding agent
- GitHub issue label
It derives the agent auth key when one is known and tells you which GitHub secrets to set at the end.
Known built-in agent secrets:
codex:OPENAI_API_KEYclaude:ANTHROPIC_API_KEYgemini:GEMINI_API_KEYcursor:CURSOR_API_KEY
- name: Run Codex Review
uses: code-rabi/ghloop/.github/actions/run-acpx-flow@main
with:
flow-path: flows/issue-label-agent.ts
default-agent: codex
input-json: '{"repo":"${{ github.repository }}","issueNumber":"${{ github.event.issue.number }}","label":"auto-fix"}'
setup-command: npm install -g acpx @openai/codex
github-token: ${{ github.token }}
agent-auth-key: OPENAI_API_KEY
agent-auth-value: ${{ secrets.OPENAI_API_KEY }}For ACPX runtime and flow authoring docs:
This repo includes:
.github/workflows/ci.ymlfor build and test.github/workflows/publish.ymlfor npm trusted publishing
If you publish your own fork or package, configure npm to trust the .github/workflows/publish.yml workflow as a trusted publisher.
Release flow:
- Bump
package.jsonto the version you want to publish. - Commit and push it.
- Create a GitHub release with tag
v<package.json version>.
The publish workflow validates that the GitHub release tag matches package.json.
pnpm install
pnpm run build
pnpm run test