feat(agent): reusable pi-agent workflow + agent image #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/pi-agent-reusable-workflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds an AI coding-bot pipeline that any Forgejo repo can consume via
uses:, mirroring the existingqa-bunreusable-workflow + base-image pattern. Generalizes the bot that until now lived hardcoded inrara-website.Changes
docker/agent.Dockerfile— amd64 CI runtime (Alpine, matching the original rara runner + first-class PHP 8.3 packages for consumers) baking Pi coding agent + umans provider + forge CLI (/usr/local/bin/forge) + generic skills (/opt/pi-skills) + pinnedjust. forge-cli is fetched at build time via a buildkitPACKAGE_TOKENsecret — never baked into a layer..forgejo/workflows/pi-agent.yml—workflow_callreusable workflow. Issue label → coder → PR → reviewer pass. Host, repo, bot identity, label, model and config dir are all inputs; project skills auto-discovered from<config_dir>/skills/*; project toolchain via optionaljust agent-setup(skipped if undefined).pi-skills/— genericforgejo-cli+forgejo-branch-checkoutskills, single source of truth, baked into the image (consumers no longer copy them → no drift)..forgejo/workflows/release.yml—build-agentjob pushesagent:<tag>+agent:latest.README.md— pi-agent consumption section +agent-setupcontract row; stale version refs bumped tov0.3.0.Consumer contract
+ a
.pi-agent/dir (settings.json,ci-coder.md,ci-reviewer.md,skills/).Release sequence
After merge: tag
v0.3.0→release.ymlbuilds + pushesforge-base/agent:v0.3.0. The rara-website consumer PR pins@v0.3.0and only works once the tag + image exist.Notes
PACKAGE_TOKEN(already present, used by the bun image).🤖 Generated with Claude Code
d01d325cdada1f2ef900