An autonomous software engineering peer that lives in your repository.
The PR Collab Agent helps you build better systems whilst ensuring you understand your own code. It acts as a "Tool for Thought" rather than a blind automation tool.
- Create an Issue: Open an issue for your task (e.g., "Refactor the authentication logic").
- Plan: Comment
/agent planon the issue. The agent will analyse your request and propose a plan. - Execute: Comment
/agent execute. The agent will write the code and open a Pull Request. - Review: Answer the stewardship questions in the PR description before merging.
You can run the agent locally using Node.js or in an isolated container using Docker.
- A GitHub account.
- A GitHub App (see Setup Guide).
- Google Gemini API Key.
-
Install dependencies:
npm install
-
Configure: Run the setup wizard:
node scripts/setup.js
-
Run in CLI Mode (Manual):
npm run cli <owner> <repo> <issue_number>
-
Run in Webhook Mode (Automatic):
npm start
See Webhook Setup Guide to configure GitHub.
-
Build the image:
docker build -t pr-collab-agent . -
Run the container:
docker run -p 3000:3000 --env-file .env pr-collab-agent
This tool follows the AI Stewardship Cycle to prevent skill atrophy.
- Architect: The agent plans with you.
- Integrator: The agent writes the code for you. It uses a deterministic branch name (
pr-collab-agent/issue-{number}) to ensure a stable workflow. - Trainer: The agent ensures you understand the work.