Skip to main content

GitHub Project Board to PRs, with Rework

Many teams carry a long tail of small, well-defined issues. This reference implementation turns them into tested pull requests: move an issue to In Progress on a GitHub Projects board, and an AgentCore Runtime session runs Claude Code on Amazon Bedrock to plan, implement, test, and open the PR. A human reviews and merges, and a /agent fix <what failed> comment on the PR adds new commits to the same branch.

What it demonstrates​

  • A GitHub trigger with no stored keys. GitHub Actions sign in to AWS with OIDC, a dispatcher Lambda mints a 1-hour GitHub App token scoped to one repository, and Claude is called through the runtime's IAM role.
  • One session per job. Each issue or fix comment gets its own AgentCore session, using the async task pattern, and the session stops when the job ends.
  • Guardrails in code, not prompts. The orchestrator validates every plan, limits each sub-task to a few declared files, and rejects acceptance tests that still pass without the code change.

Acceptance tests run repository code inside the runtime container with credentials removed, not in Code Interpreter. Review agent PRs like any other contribution.

Resources​

  • GitHub issues to PRs with AgentCore: walkthrough covering architecture, the GitHub–AWS handshake, setup, and troubleshooting
  • Sample code: runtime, orchestrator, and Terraform under agentcore/; GitHub Actions workflows and kickoff scripts under workflows/ and scripts/