feat: Load project skills (AGENTS.md, etc.) in PR review action#2017
Merged
feat: Load project skills (AGENTS.md, etc.) in PR review action#2017
Conversation
The PR review agent now loads project-specific skills from the repository being reviewed. This includes: - AGENTS.md (repo-specific guidance) - .cursorrules - Skills from .agents/skills/ or .openhands/skills/ directories This ensures the code review agent follows repository-specific guidelines and conventions documented in AGENTS.md. Co-authored-by: openhands <openhands@all-hands.dev>
enyst
reviewed
Feb 11, 2026
enyst
approved these changes
Feb 11, 2026
Collaborator
enyst
left a comment
There was a problem hiding this comment.
Oh, this is correct, I didn't see it in context!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The PR review agent now loads project-specific skills from the repository being reviewed. This ensures the code review agent follows repository-specific guidelines and conventions documented in AGENTS.md.
Changes
Updated
examples/03_github_workflows/02_pr_review/agent_script.pyload_project_skillsfromopenhands.sdk.context.skillsWhat This Enables
The PR review agent will now load:
.agents/skills/- Project-specific skills (new standard location).openhands/skills/- Project-specific skills (legacy location)This is important because repositories like
software-agent-sdkhave specific guidelines in AGENTS.md (e.g., about.pr/directory artifacts being safe to ignore) that the code review agent should follow.Testing
Related
This PR was created in response to a review comment on PR #2012 asking to verify if the code review action loads AGENTS.md.
@xingyaoww can click here to continue refining the PR
Agent Server images for this PR
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdknikolaik/python-nodejs:python3.12-nodejs22golang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:e7aa8e7-pythonRun
All tags pushed for this build
About Multi-Architecture Support
e7aa8e7-python) is a multi-arch manifest supporting both amd64 and arm64e7aa8e7-python-amd64) are also available if needed