Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# AgentCore Configuration Template for Claude Agent with Dynamic Skills
#
# This file will be generated by `agentcore configure` command.
# The values below show the recommended configuration options.
#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0

default_agent: claude_dynamic_skills

agents:
# Simple implementation using Claude SDK with prompt injection
claude_simple:
name: claude_simple
entrypoint: claude_sdk_bedrock.py
deployment_type: container
platform: linux/amd64 # or linux/arm64 based on your preference
container_runtime: docker
aws:
execution_role_auto_create: true
region: ${AWS_REGION}
ecr_auto_create: true
network_configuration:
network_mode: PUBLIC
protocol_configuration:
server_protocol: HTTP
observability:
enabled: true
memory:
mode: NO_MEMORY

# Advanced implementation using Claude Agent SDK with native skill discovery
claude_dynamic_skills:
name: claude_dynamic_skills
entrypoint: agent/agent.py
deployment_type: container
platform: linux/amd64 # or linux/arm64 based on your preference
container_runtime: docker
aws:
execution_role_auto_create: true
region: ${AWS_REGION}
ecr_auto_create: true
network_configuration:
network_mode: PUBLIC
protocol_configuration:
server_protocol: HTTP
observability:
enabled: true
memory:
mode: NO_MEMORY

# Configuration Notes:
#
# 1. execution_role_auto_create: true
# AgentCore will create an IAM role with basic permissions.
# You'll need to add S3 permissions manually via AWS Console.
#
# 2. ecr_auto_create: true
# AgentCore will create an ECR repository for your container images.
#
# 3. platform: Choose based on your development/deployment environment:
# - linux/amd64: Standard x86_64 architecture
# - linux/arm64: ARM-based systems (Apple Silicon, Graviton)
#
# 4. observability: enabled
# Enables CloudWatch logging and AWS X-Ray tracing.
#
# 5. memory: NO_MEMORY
# No persistent memory between invocations.
# Each container startup loads skills fresh from S3.

# Required IAM Permissions (add to execution role):
# {
# "Version": "2012-10-17",
# "Statement": [
# {
# "Effect": "Allow",
# "Action": [
# "s3:GetObject",
# "s3:ListBucket"
# ],
# "Resource": [
# "arn:aws:s3:::YOUR_SKILLS_BUCKET_NAME",
# "arn:aws:s3:::YOUR_SKILLS_BUCKET_NAME/*"
# ]
# },
# {
# "Effect": "Allow",
# "Action": "bedrock:InvokeModel",
# "Resource": "arn:aws:bedrock:*:*:model/us.anthropic.claude-*"
# }
# ]
# }
67 changes: 67 additions & 0 deletions claude-agent-sdk-dynamic-skills-on-agentcore/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Build artifacts
build/
dist/
*.egg-info/
*.egg

# Python cache
__pycache__/
__pycache__*
*.py[cod]
*$py.class
*.so
.Python

# Virtual environments
.venv/
.env
venv/
env/
ENV/

# Testing
.pytest_cache/
.coverage
.coverage*
htmlcov/
.tox/
*.cover
.hypothesis/
.mypy_cache/
.ruff_cache/

# Development
*.log
*.bak
*.swp
*.swo
*~
.DS_Store

# IDEs
.vscode/
.idea/

# Version control
.git/
.gitignore
.gitattributes

# Documentation
docs/

# CI/CD
.github/
.gitlab-ci.yml
.travis.yml

# Project specific
tests/

# Bedrock AgentCore specific - keep config but exclude runtime files
.bedrock_agentcore.yaml
.dockerignore
.bedrock_agentcore/

# Keep wheelhouse for offline installations
# wheelhouse/
39 changes: 39 additions & 0 deletions claude-agent-sdk-dynamic-skills-on-agentcore/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Environment variables
.env

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
*.egg-info/
*.egg
dist/
build/

# Virtual environments
venv/
env/
ENV/
.venv/

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# Testing
.pytest_cache/
.coverage
htmlcov/
.tox/

# AgentCore
.bedrock_agentcore.yaml

# OS
.DS_Store
Thumbs.db
16 changes: 16 additions & 0 deletions claude-agent-sdk-dynamic-skills-on-agentcore/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
MIT No Attribution

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading
Loading