Behavioral protocol-enhanced PR-Agent images
347
๐ด PR-Agent fork with PUA behavioral enhancements, published from junit/pr-agent-puaโ
This repository keeps the PR-Agent product identity while publishing the fork from
junit/pr-agent-pua, with behavior protocol enhancements that are not fully compatible with
upstream pr-agent.
This project's behavioral enhancement system is inspired by tanweai/puaโ , an innovative approach to AI agent behavioral protocols. Thank you to the original author for pioneering this direction.
This fork is built upon the excellent foundation of qodo-ai/pr-agentโ . We extend our gratitude to the QodoAI team (formerly CodiumAI) for creating such a powerful open-source code review platform.
Initial Vision: We originally considered a full port of the interactive PUA system, where agents would engage in iterative dialogue during code review.
Pivot: After deep analysis, we realized interactive PR review is not a good fit for automated workflows:
Final Approach: We extracted the core behavioral protocols and adapted them for non-interactive, single-pass code review:
This protocol-based approach delivers the behavioral enhancement benefits while maintaining compatibility with standard PR workflowsโbecause trust should be simple, but verification should be rigorous.
PUA (Protocol-based Unified Agent) adds:
PUA configuration highlights:
pua.locale and pua.command_locales.* support global and per-command locale routing
pua.command_extra_instructions.* appends command-specific behavioral constraints
pua.flavor_overrides.<flavor>.* overrides rhetoric keywords without changing routing
Dynaconf environment variables must use double underscores, such as PUA__ENABLED=true
Original Project: qodo-ai/pr-agentโ
Fork Repository: junit/pr-agent-puaโ
License: AGPL-3.0 (same as upstream)
Compatibility: Core PR-Agent workflow is preserved, but fork-specific behavior is not a drop-in replacement
See FORK_CHANGES.mdโ for detailed modifications.
PR-Agent is a behavioral protocol-enhanced code review system in this repository. It is built on top of qodo-ai/pr-agentโ , published from junit/pr-agent-puaโ , and adds culture-specific methodologies and quality gates that enforce rigorous review standardsโbecause trust should be simple, but verification should be rigorous.
Culture-Specific Intelligence โ Choose from 13 corporate culture flavors (Alibaba, Huawei, Musk, Jobs, Amazon, ByteDance, Tencent, Baidu, Pinduoduo, Meituan, JD, Xiaomi, Netflix) or enable auto-routing to let the system intelligently select the best methodology for each command.
Three Red Lines Quality Gates โ Every review is automatically checked against three non-negotiable standards:
Automatic Retry Mechanism โ When quality gates fail, the system automatically regenerates the review with focused prompts, ensuring consistent behavioral standards without manual intervention.
Multi-Language Support โ Full Chinese/English support with automatic locale detection and per-command language overrides.
You can quickly experience the public PR-Agent bot on any public GitHub repository by commenting
@CodiumAI-Agent /improve. For this fork's behavior and deployment options, use the workflows and
images published from junit/pr-agent-pua.
Add automated PR reviews to your repository with a simple workflow file:
# .github/workflows/pr-agent.yml
name: PR Agent
on:
pull_request:
types: [opened, synchronize]
jobs:
pr_agent_job:
runs-on: ubuntu-latest
steps:
- name: PR Agent action step
uses: junit/pr-agent-pua@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Full GitHub Action setup guideโ
Run PR-Agent locally on your repository:
pip install pr-agent
export OPENAI_KEY=your_key_here
pr-agent --pr_url https://github.com/owner/repo/pull/123 review
Fast & Affordable: Each tool (/review, /improve, /ask) uses a single LLM call (~30 seconds, low cost)
Handles Any PR Size: Our PR Compression strategyโ effectively processes both small and large PRs
Highly Customizable: JSON-based prompting allows easy customization of review categories and behavior via configuration filesโ
Platform Agnostic:
Open Source Benefits:
PR-Agent offers comprehensive pull request functionalities integrated with various git providers:
| GitHub | GitLab | Bitbucket | Azure DevOps | Gitea | ||
|---|---|---|---|---|---|---|
| TOOLSโ | Describeโ | โ | โ | โ | โ | โ |
| Reviewโ | โ | โ | โ | โ | โ | |
| Improveโ | โ | โ | โ | โ | โ | |
| Askโ | โ | โ | โ | โ | ||
| โฎ Ask on code linesโ | โ | โ | ||||
| Help Docsโ | โ | โ | โ | |||
| Update CHANGELOGโ | โ | โ | โ | โ | ||
| USAGEโ | CLIโ | โ | โ | โ | โ | โ |
| App / webhookโ | โ | โ | โ | โ | โ | |
| Tagging botโ | โ | |||||
| Actionsโ | โ | โ | โ | โ | ||
| COREโ | Adaptive and token-aware file patch fittingโ | โ | โ | โ | โ | |
| Chat on code suggestionsโ | โ | โ | ||||
| Dynamic contextโ | โ | โ | โ | โ | ||
| Fetching ticket contextโ | โ | โ | โ | |||
| Incremental Updateโ | โ | |||||
| Interactivityโ | โ | โ | ||||
| Local and global metadataโ | โ | โ | โ | โ | ||
| Multiple models supportโ | โ | โ | โ | โ | ||
| PR compressionโ | โ | โ | โ | โ | ||
| RAG context enrichmentโ | โ | โ | ||||
| Self reflectionโ | โ | โ | โ | โ |
For a quick public demo, you can mention @CodiumAI-Agent on your public GitHub repository and
add the desired command in a PR comment. For this repository's forked deployment, use the Action,
Docker image, or self-hosted setup published from junit/pr-agent-pua.
For example, add a comment to any pull request with the following text:
@CodiumAI-Agent /review
and the agent will respond with a review of your PR.
Note that this public bot is suitable only for initial experimentation.
It does not have 'edit' access to your repo, for example, so it cannot update the PR description or
add labels (@CodiumAI-Agent /describe will publish PR description as a comment). In addition, the
bot cannot be used on private repositories, as it does not have access to the files there.
The following diagram illustrates PR-Agent tools and their flow:

To contribute to the project, get started by reading our Contributing Guideโ .
This open-source release remains here as a community contribution from Qodo โ the origin of modern AI-powered code collaboration. Weโre proud to share it and inspire developers worldwide.
The project now has its first external maintainer, Naor (@naorpeledโ ), and is currently in the process of being donated to an open-source foundation.
Content type
Image
Digest
sha256:6ca1267edโฆ
Size
216.6 MB
Last updated
7 months ago
docker pull junit/pr-agent-pua:sha-361df50d80db