Remote coding agent on Amazon Bedrock AgentCore
Turn a coding task into a pull request. Keep your laptop free.

Submit from Claude Code or the web UI, follow the remote agent's progress, and get a PR with verification evidence powered by Amazon Bedrock AgentCore Runtime.

Sample run — simulated: add CSV export to an expense tracker.
Quick start · Web UI · Claude Code · Architecture ·
Costs and cleanup · Contributing
Who is this for?
For developers delegating scoped features, bug fixes, and tests, and platform engineers
exploring AWS-hosted coding agents with repository-scoped execution and a shared task console.
Why use it?
- Keep working while the agent runs. Submit a task and let remote execution handle the loop.
- See what happened. Follow planning, coding, verification, and review from one board.
- Review the result in GitHub. Get a PR with verification evidence and an explicit draft outcome when checks do not pass.
- Own the deployment. Each repository gets its own AgentCore Runtime and Memory in your AWS account.
Use trusted repositories in a dedicated AWS account. This sample executes repository code;
it does not make untrusted code safe. A runtime or publishing failure may produce no PR.
Quick start
Prerequisites
- A dedicated AWS account, with credentials for your intended profile and region.
- Docker running, Python ≥ 3.11 (tested with 3.12),
uv, Node ≥ 20, and the AWS CLI.
- A trusted, disposable GitHub repository with a default branch that already builds and passes its tests. The agent never guesses how to build a repository. It reads a root
Makefile with a setup: (or bootstrap:) target and a test: target, or a root package.json with scripts.setup and scripts.test. An empty repository does not work. With no default branch, the run fails at the very end when it opens the pull request (422 Validation Failed, "field": "base"). With no test entry point, every PR comes back as an unverified draft. If your repository is empty, set it up with one of the options below before you register it.
- A GitHub account you can create an app under. No token to paste — step 3 creates a GitHub App; see GitHub access.
Preflight checks AgentCore/model availability and prints any required CDK bootstrap command. The ~1.3 GB ARM64 image builds locally. Claude Code is optional; the web UI works without it.
Setting up an empty repository
- Web UI: from this checkout, run
scripts/scaffold.sh <owner>/<repo> (a GitHub URL or a local clone's path also works). It needs git, make, python3 and git credentials that can push, for example gh auth login, and pushes with those rather than through the GitHub App. It clones into a temporary directory, writes a minimal Python project (a Makefile with setup and test targets, one function in src/, and its pytest tests), runs make setup and make test, and when both pass asks before pushing it as main.
- Claude Code: install the plugin (Option B, step 4), clone the repository, and run
/sample-rca:scaffold from the clone. It writes a Python project, or TypeScript if you ask for it by name, runs its setup and tests, pushes it as main after you confirm, and offers to register the repository.
Deploy it
-
Deploy the fleet.
git clone https://github.com/aws-samples/sample-remote-coding-agent
cd sample-remote-coding-agent
make setup
make preflight
make deploy [email protected]
Read the account and region from make preflight before deploying. Preflight is read-only; deploy starts spending without confirmation. Allow 15–25 min, mostly the local image build.
On completion it prints the console URL, API URL, and region. Check known issues if it stalls.
-
Sign in at the console URL. Cognito emails a temporary password to EMAIL; check spam and change it on first sign-in.
-
Connect GitHub. With nothing registered the console opens on Connect GitHub.
Press Create the GitHub App on GitHub — the app arrives pre-described, you confirm it
there, and nothing is copied or pasted. Then Install on GitHub and choose Only
select repositories: that list bounds which repositories the agent can reach.