Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
157c017
feat(runtime): add --platform-version to add runtime
Nov 20, 2026
6d2b890
ci: pin workflow-metrics to the devtools commit that runs on ubuntu-l…
jariy17 Nov 24, 2026
722f842
feat(telemetry): record the template a project is created with (#2907)
tejaskash Nov 24, 2026
48273c4
feat(runtime): support s3BucketMount filesystem configurations
Nov 18, 2026
8ac3531
feat(runtime): add --platform-version to add runtime
Nov 20, 2026
acedeb8
feat(runtime): add V2 runtime settings, dev warmup hooks, and V2 temp…
vigneshsundar1997 Nov 24, 2026
8cdf3bd
Merge #2897 (s3BucketMount) into release/2026-11-25
jariy17 Nov 24, 2026
ae14bb5
fix(runtime): leave s3BucketMount V2 rule to the service (#2915)
sasha177 Nov 25, 2026
0728529
fix(runtime): bug bash fixes for V2 warmup hooks in dev, add runtime,…
vigneshsundar1997 Nov 25, 2026
a6452a4
feat(runtime): support pre-built ECR container images (#2719)
notgitika Nov 25, 2026
9d183aa
Merge v1.x into release/2026-11-25
Nov 25, 2026
564a035
Merge pull request #2925 from aws/release/2026-11-25
jariy17 Nov 25, 2026
173134a
chore(release): v1.3.0
github-actions[bot] Nov 25, 2026
e134af3
Merge pull request #2929 from aws/release/v1.3.0
jariy17 Nov 25, 2026
b564424
fix(region): strip inline comments from AWS config (#2941)
nborges-aws Nov 27, 2026
f54e68c
fix(tui): keep unmatched markdown markers as literal text (#2945)
andretorresdg Nov 27, 2026
f006ebb
test: raise timeouts on Windows-slow remove and memory wizard tests
Nov 30, 2026
a3866b0
Merge pull request #2965 from aws/test/windows-timeouts
jariy17 Nov 30, 2026
eb75202
feat(payments): add merchant payment providers, payment intent comman…
jariy17 Nov 30, 2026
40ec0a2
chore(release): v1.4.0
github-actions[bot] Nov 30, 2026
a6f14f3
Merge pull request #2968 from aws/release/v1.4.0
jariy17 Nov 30, 2026
f23462e
test(e2e): give project create 10 minutes on Windows
Nov 30, 2026
4c47a77
Merge pull request #2969 from aws/test/windows-e2e-create-timeout
jariy17 Nov 30, 2026
4ac7f3b
feat(box): merge Box on Runtime from box-integration into v1.x (#2922)
vvargu Dec 1, 2026
6aef002
fix(templates): keep litellm below 1.106.0 in LiteLLM Strands project…
tejaskash Dec 1, 2026
3a3c2e3
test(e2e): Deploy the Box tests with the pinned @aws/agentcore-cdk re…
mquang-amazon Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
name: CI
on:
push:
branches: [v0.x, v1.x]
branches: [v0.x, v1.x, box-integration]
pull_request:
branches: [v0.x, v1.x]
branches: [v0.x, v1.x, box-integration]
workflow_dispatch:

concurrency:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: CodeQL

on:
push:
branches: [v0.x, v1.x]
branches: [v0.x, v1.x, box-integration]
pull_request:
branches: [v0.x, v1.x, "feat/**"]
branches: [v0.x, v1.x, box-integration, "feat/**"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/v0.x' && github.ref != 'refs/heads/v1.x' }}
cancel-in-progress: ${{ github.ref != 'refs/heads/v0.x' && github.ref != 'refs/heads/v1.x' && github.ref != 'refs/heads/box-integration' }}

jobs:
analyze:
Expand Down
84 changes: 80 additions & 4 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
required: false
type: boolean
default: false
region:
description: AWS region to deploy and test in; empty uses the E2E_REGION variable, else us-east-1
required: false
type: string
default: ""
secrets:
WORKFLOW_SECRETS_READER_ROLE_ARN:
required: true
Expand All @@ -39,6 +44,10 @@ on:
description: Run E2E tests only on Linux
type: boolean
default: false
region:
description: AWS region to deploy and test in; empty uses the E2E_REGION variable, else us-east-1
type: string
default: ""

concurrency:
group: e2e-test-${{ inputs.ref || github.ref }}-${{ inputs.tags || 'all' }}-${{ inputs.linuxOnly && 'linux-only' || 'all-os' }}
Expand Down Expand Up @@ -90,14 +99,15 @@ jobs:
matrix.name == 'Linux' && '["ubuntu-latest"]'
|| matrix.name == 'Windows' && '["windows-latest"]'
|| matrix.name == 'macOS' && '["macos-latest"]'
|| matrix.name == 'Linux-arm64' && '["ubuntu-24.04-arm"]'
) }}
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
name: ${{ fromJSON(inputs.linuxOnly && '["Linux"]' || '["Linux","Windows","macOS"]') }}
name: ${{ fromJSON(inputs.linuxOnly && '["Linux"]' || '["Linux","Linux-arm64","Windows","macOS"]') }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -111,6 +121,9 @@ jobs:
with:
# Keep template installs on the newest Python supported by AgentCore CodeZip.
python-version: "3.14"
# A run whose tag filter leaves nothing to install with uv (for example `box` on Windows,
# which has no box) has no cache to save, which setup-uv otherwise reports as a failure.
ignore-nothing-to-cache: true
- run: bun install --frozen-lockfile
- name: Fetch E2E role from Secrets Manager
uses: aws/agentcore-devx-devtools/.github/actions/fetch-secrets@e68d09b0c33dfb7a798448d50e6b48beedf00a3b
Expand All @@ -121,8 +134,71 @@ jobs:
uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
role-to-assume: ${{ env.E2E_AWS_ROLE_ARN }}
aws-region: ${{ vars.E2E_REGION || 'us-east-1' }}
aws-region: ${{ inputs.region || vars.E2E_REGION || 'us-east-1' }}
role-duration-seconds: 7200
unset-current-credentials: true
# box ships only arm64 builds, so only the macOS (Apple silicon) and Linux arm64 runners can run
# the Box tests. They skip on a runner with no box on PATH.
- name: Install box
if: matrix.name == 'macOS' || matrix.name == 'Linux-arm64'
env:
# The build's key in boxRelease.json, which pins its archive and SHA-256.
BUILD: ${{ matrix.name == 'macOS' && 'darwin' || 'linux' }}
run: |
PIN=src/core/project/backends/boxRelease.json
REPO=$(jq -er .box.repo "$PIN")
# A build may name its own release, for a release whose build of this machine is broken.
VER=$(jq -er ".box.${BUILD}.version // .box.version" "$PIN")
ASSET=$(jq -er ".box.${BUILD}.asset" "$PIN")
SHA=$(jq -er ".box.${BUILD}.sha256" "$PIN")
# macOS's sha256sum passes a malformed checksum line, so check the hash's shape first.
if [[ ! "$SHA" =~ ^[0-9a-f]{64}$ ]]; then
echo "the pinned .box.${BUILD}.sha256 in $PIN is not a SHA-256: '$SHA'" >&2
exit 1
fi
WORK=$(mktemp -d)
curl -fsSL --retry 3 -o "${WORK}/${ASSET}" \
"https://github.com/${REPO}/releases/download/v${VER}/${ASSET}"
# Check against the pin in the repository, not a checksum file of the same release.
# Linux has sha256sum, and macOS may have only shasum.
SUM=$(command -v sha256sum || echo "shasum -a 256")
echo "${SHA} ${WORK}/${ASSET}" | $SUM -c -
# box reads its packs from resources/ beside it, so keep the release together.
if [[ "$BUILD" == darwin ]]; then
# On macOS, unpack as the runner user into a folder it owns, as a developer does. The
# folder must not be named `box`: macOS reads a folder `box` that holds an executable
# `box` as a bundle, finds the signature invalid (`invalid Info.plist`), and kills box at
# launch (Killed: 9). That is what happened under /opt/box.
DIR="${RUNNER_TEMP}/box-${VER}"
mkdir -p "$DIR"
tar -xzf "${WORK}/${ASSET}" -C "$DIR"
echo "$DIR" >> "$GITHUB_PATH"
# If macOS refuses box, say why before running it.
codesign --verify --strict --verbose=2 "$DIR/box" || codesign -dv --verbose=4 "$DIR/box" || true
if ! "$DIR/box" --version; then
log show --last 2m --predicate 'eventMessage CONTAINS "box"' --style compact 2>/dev/null | tail -40 || true
exit 1
fi
else
sudo mkdir -p /opt/box
sudo tar --no-same-owner -xzf "${WORK}/${ASSET}" -C /opt/box
sudo ln -sf /opt/box/box /usr/local/bin/box
box --version
fi
# Ubuntu 24.04 lets AppArmor stop an unprivileged process from making a user namespace, which
# `box run` needs for its sandbox. The runner is a throwaway VM.
- name: Allow user namespaces for box
if: matrix.name == 'Linux-arm64'
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
# The Box tests that deploy install the @aws/agentcore-cdk release that the CLI pins for new
# projects in src/assets/cdk/package.json (AGENTCORE_E2E_BOX_CDK in
# e2eTest/project/templates.test.ts), which deploys Box projects since 1.5.0.
- name: Use the pinned L3 constructs for the Box tests
if: matrix.name == 'macOS' || matrix.name == 'Linux-arm64'
shell: bash
run: |
VERSION=$(node -p 'require("./src/assets/cdk/package.json").dependencies["@aws/agentcore-cdk"]')
echo "AGENTCORE_E2E_BOX_CDK=${VERSION}" >> "$GITHUB_ENV"
- name: Build CLI
if: inputs.npmVersion == ''
run: bun run build
Expand All @@ -137,11 +213,11 @@ jobs:
if: inputs.tags == ''
env:
AGENTCORE_CLI_PATH: ${{ inputs.npmVersion != '' && 'agentcore' || format('node {0}/dist/index.js', github.workspace) }}
AWS_REGION: ${{ vars.E2E_REGION || 'us-east-1' }}
AWS_REGION: ${{ inputs.region || vars.E2E_REGION || 'us-east-1' }}
run: bun run test:e2e
- name: Run tagged E2E tests
if: inputs.tags != ''
env:
AGENTCORE_CLI_PATH: ${{ inputs.npmVersion != '' && 'agentcore' || format('node {0}/dist/index.js', github.workspace) }}
AWS_REGION: ${{ vars.E2E_REGION || 'us-east-1' }}
AWS_REGION: ${{ inputs.region || vars.E2E_REGION || 'us-east-1' }}
run: bun run test:e2e -- --tagsFilter="${{ inputs.tags }}"
6 changes: 3 additions & 3 deletions .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR Automation

on:
pull_request_target:
branches: [v0.x, v1.x, "feat/**"]
branches: [v0.x, v1.x, box-integration, "feat/**"]
types: [opened, reopened, edited, synchronize, labeled]
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
with:
runner: ubuntu
pr_number: ${{ inputs.pr_number || format('{0}', github.event.pull_request.number) }}
allowed_base_branches: '["v0.x","v1.x"]'
allowed_base_branches: '["v0.x","v1.x","box-integration"]'
secrets: inherit

harness-review:
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
fi

case "$base_ref" in
v0.x|v1.x|feat/*) ;;
v0.x|v1.x|box-integration|feat/*) ;;
*)
echo "::error::Unsupported base branch: $base_ref"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
metrics:
uses: aws/agentcore-devx-devtools/.github/workflows/workflow-metrics.yml@c2106996dd94e56f6c5fad625c83573e9724fb63
uses: aws/agentcore-devx-devtools/.github/workflows/workflow-metrics.yml@28f401925cbdd8900e468d10ed950b48fd2cde1a
with:
namespace: AgentCoreCLI/Workflows
os: Linux
Expand Down
114 changes: 113 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ flags: for templates that take a model provider (`agent-python-strands` and its
variant, `a2a-python-strands`, `agui-python-strands`, `agent-typescript-strands`) the wizard asks
for the provider (Amazon Bedrock, Anthropic, OpenAI, an OpenAI-compatible endpoint, Gemini, or
LiteLLM, which is Python-only), the model id, and an API-key file. The API key is kept in
`agentcore/.env.local` and provisioned as an AgentCore Identity credential on deploy.
`agentcore/.env.local` and provisioned as an AgentCore Identity credential on deploy. For a Box
template created with no API key, build reads the provider's key (such as `OPENAI_API_KEY`) from
your shell or `agentcore/.env.local`, adds a credential such as `openai`, and deploy provisions
that key in AgentCore Identity.

To bring your own code into a project instead, add a runtime for it:

Expand Down Expand Up @@ -110,6 +113,11 @@ up from the current directory.
`agentcore dev` runs runtimes locally or deploys harnesses and prints invoke guidance.
Use `--mode browser` for Agent Inspector, `--skip-deploy` to reuse deployed harnesses,
and `--agent <name>` to choose an agent in mixed projects.
For a runtime with a build warmup hook (`hooksConfiguration.build.warmup`), dev waits for a healthy
`GET /ping`, then sends the hook's `memory` and `disk` calls as platform version V2 does, and fails
the start if either fails.

See [payment checkout configuration](docs/payments.md) for merchant providers, billing connectors, and intent inspection.

New payment credentials receive provider names that payment connectors can reference.
An existing payment credential keeps the provider ARN recorded for its deployment
Expand Down Expand Up @@ -201,8 +209,112 @@ yourself.
Note that `agentcore status` reports only the resources `agentcore.json`
declares, not the ones you add in the stack.

## Running agents in Box (preview)

Six templates run their agent in a box, both under `agentcore dev` and on AgentCore Runtime:
the CodeZip templates `agent-python-strands-box`, `agent-python-minimal-box`,
`agent-python-langchain-box`, `a2a-python-strands-box`, and `agui-python-strands-box`, and the
container template `agent-python-strands-box-container`.
`agentcore create --template <name>` makes a Box project from one of them; every other template
runs its agent without box. Each runtime of a Box project runs in a box, with its own box profile,
`.box/<runtime>/local/profile.toml`. `agentcore add runtime` adds a Python CodeZip runtime in a box
to a Box project, and refuses a TypeScript runtime and a Bedrock Agent import there.
`agentcore export harness` refuses a Box project. Each box runtime needs its
`"box": { "version": ... }` in `agentcore.json`, which create and add runtime write, and its local
box profile; build and deploy stop without them. Build derives the AgentCore Runtime profile of
each runtime from its local profile. box comes from the `box-cli` archives of the public GitHub
release `v0.3.3` of [strands-agents/box](https://github.com/strands-agents/box/releases). No token
or account is needed to download it. Use that release's build for your machine for `agentcore dev`
and the profile checks of `build`: an older box cannot read the profiles that this CLI writes.

`src/core/project/backends/boxRelease.json` pins the Linux build of box that ships to AgentCore
Runtime, with its repository, version and SHA-256. It also pins the macOS arm64 build, which the e2e
workflow installs on its macOS runner. `bun scripts/bump-box-release.ts --box <version>`
(with `--box-repo` to move repository) rewrites the file from the release's `SHA256SUMS.txt`.

How each command uses it:

- A CodeZip agent's zip carries box. `build` and `deploy` download box once with `curl` into
`~/.agentcore/box/`, check it against its pinned SHA-256, and stage box and its packs into the
runtime's `.box-dist/`.
- A container agent's image downloads box while it builds. `dev`, `build` and `deploy` stage the
release that `box.version` names, with its checksum, as `box-release.env` beside the Dockerfile
(`.box-dist/`, or `.box-dev/` under `dev`), and the Dockerfile downloads that release with `curl`,
checks its SHA-256 and unpacks it into `/opt/box`. The CLI downloads nothing for a container, so
the build machine, or AWS CodeBuild on `deploy`, needs network to github.com. `agentcore dev`
builds the image on your machine and `agentcore deploy` builds it in AWS CodeBuild.
- A CodeZip agent under `agentcore dev` runs in the `box` on your PATH, which you install from
the release: download the build for your machine, unpack it into a folder, and add that folder
to your PATH. `agentcore create --template agent-python-strands-box` and `agentcore dev` stop
with that instruction when `box` is not on your PATH. Container agents need no local box.

Each box runtime names its release in `agentcore.json` with `"box": { "version": "<version>" }`,
which `agentcore create` writes. Every box runtime runs the pinned version, whose checksums
`boxRelease.json` keeps: build and deploy set `box.version` to it, and say so when it named another.

On AgentCore Runtime, box signs the agent's Bedrock and Memory calls with the execution role: the
profile's bare `aws://` resolves the AWS default credential chain, which box reads and refreshes
itself.

### Create, run and deploy

```sh
agentcore create --name MyBoxAgent --template agent-python-strands-box-container
cd MyBoxAgent
AGENTCORE_CONTAINER_TOOL=finch agentcore dev # optional
agentcore deploy --yes
agentcore invoke --runtime agent --session-id my-box-session-0000000000000000000001 --payload '{"prompt":"My favorite color is teal. Remember it."}'
agentcore invoke --runtime agent --session-id my-box-session-0000000000000000000001 --payload '{"prompt":"What is my favorite color?"}'
agentcore logs runtime --name agent --since 15m --query '"running profile"'
```

The CodeBuild log of the deploy shows `/tmp/box.tar.gz: OK` and `box 0.3.3`. The
second answer should say teal, and the runtime log shows `running profile ...` with no `ERROR`,
`blocked by egress control` or `AccessDenied` line. For a CodeZip agent, use
`--template agent-python-strands-box` and skip the container settings.

A boxed agent gets the deployed Memory IDs and the Runtime's region inside the box. It does not get
the `AGENTCORE_GATEWAY_<NAME>_URL` variables of gateways you add yourself: its calls go out through
its Box gateway. When the project has a Memory, each runtime of the project gets every Memory of
the project, and its calls to the AgentCore host (`bedrock-agentcore.<region>.amazonaws.com`) are
the exception: box signs them with the execution role and sends them to that host directly, so
Memory can hold each call to the session of the runtime. Box routes a connection by its host alone,
and Code Interpreter, Browser, and the other AgentCore APIs share that host, so their calls go
there directly too, and the execution role needs the grants for them (a `codeInterpreter` or
`browser` connection of the runtime gives one). No boxed runtime of a project with a Memory can send
a credential of its own to that host: build stops for a profile entry with a secret other than
`aws://`, or a Box gateway target with an API key or OAuth credential, that would. A `PRIVATE_VPC` runtime
reaches that host through the AgentCore endpoint of its private VPC, which only the runtime's role
may call through. Code in the box can make any AgentCore call on that host that the
execution role allows, so a `bedrock-agentcore` grant added through `additionalPolicies` is open
to it. A runtime in a VPC of your own needs a `bedrock-agentcore` VPC endpoint.

A Box project that an older CLI created still has `start.sh`, or a Dockerfile that runs it. Build
and deploy now render profiles that those files cannot start. Create the project again, or copy
`start.py` (CodeZip) or the `Dockerfile` (container) from a new `agentcore create` project.

### Containment

`agentcore create --containment private-vpc` with a box template also runs the runtime in its own
private VPC with no internet path. It writes `"containment": "PRIVATE_VPC"` on the runtime.

### Troubleshooting

- `ExpiredTokenException` from `aws` or `deploy`: your AWS credentials expired. Refresh them and
run the command again.
- `curl: (22) The requested URL returned error: 404` in the CodeBuild log, or a deploy error that
names the release URL: the pinned version is not published in `strands-agents/box`.
- `SHA-256 ... not the pinned` or `sha256sum: WARNING: 1 computed checksum did NOT match`: the
release asset changed after it was pinned. Nothing was installed.
- `box run` exits with an error in the runtime log: box refused its profile, and the agent does
not start. The error names the reason. The agent never runs outside box on AgentCore Runtime.
- A CodeZip agent on `PYTHON_3_10` needs `tomli` in its dependencies, because `start.py` reads the
profile with it there. `agent-python-strands-box` lists it.

## Documentation

- [AWS Billing connectors](docs/aws-billing.md): headless configuration and deployment prerequisites.

- [Command reference](command.md): every command and flag.
- [Harness project configuration](docs/harness-project-configuration.md): Harness YAML, prompts, tools, skills, and environment settings.
- [China regions](docs/china-regions.md): what is available there and how the restrictions are enforced.
Expand Down
Loading
Loading