agentleFS
AWSKnown publisherawslabs/agentcore-samples/01-features/05-authenticate-and-authorize/01-inbound-auth/04-inbound-auth-pingfederate/agent/private-idp-ping-agent/AGENTS.md

agentcore-samples / private-idp-ping-agent

AGENTS.md3.4k starsChanged 6 months agoApache-2.0View on GitHub

This project contains configuration and infrastructure for an Amazon Bedrock AgentCore application. The agentcore/ directory is a declarative model of the project. The agentcore/cdk/ subdirectory uses the @aws/agentcore-cdk L3 constructs to deploy the configuration to AWS. The project uses a flat resource model. Agents, memories, credentials, gateways, evaluators, and policies are independent top-level arrays in agentcore.json. There is no binding between resources in the schema — each resource is provisioned independently. Agents discover memories and credentials at runtime via environment…

  • Reads credentials
  • Installs packages

Trending

Quiet since October.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 3 mentionsJun 2026: 2 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the awslabs/agentcore-samples repository that our weekly crawl found: only 9 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about awslabs/agentcore-samples

The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 9

Talked about on GitHub (9 times).

On GitHub · 9

4 more on GitHub

The file

We split this AGENTS.md into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Schema Validation: If your JSON conforms to the types in .llm-context/, it will deploy successfully.

    line 22
  2. Very specific:

    Resource Removal: Use agentcore remove to remove resources.

    line 24
  3. Distinctive:

    When modifying JSON config files:

    line 117
  4. Very specific:

    Read the corresponding agentcore/.llm-context/*.ts file for type definitions

    line 119
  5. Very specific:

    Check validation constraint comments (@regex, @min, @max)

    line 120
  6. Distinctive:

    Use exact enum values as string literals

    line 121
  7. Distinctive:

    Use CloudFormation-safe names (alphanumeric, start with letter)

    line 122
  8. Very specific:

    Run agentcore validate to verify changes

    line 123

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AgentCore Project

This project contains configuration and infrastructure for an Amazon Bedrock AgentCore application.

The agentcore/ directory is a declarative model of the project. The agentcore/cdk/ subdirectory uses the @aws/agentcore-cdk L3 constructs to deploy the configuration to AWS.

Mental Model

The project uses a flat resource model. Agents, memories, credentials, gateways, evaluators, and policies are independent top-level arrays in agentcore.json. There is no binding between resources in the schema — each resource is provisioned independently. Agents discover memories and credentials at runtime via environment variables or SDK calls. Tags defined in agentcore.json flow through to deployed CloudFormation resources.

Critical Invariants

  1. Schema-First Authority: The .json files are the source of truth. Do not modify agent behavior by editing generated CDK code in cdk/.
  2. Resource Identity: The name field determines the CloudFormation Logical ID.
    • Renaming a resource will destroy and recreate it.
    • Modifying other fields will update the resource in-place.
  3. Schema Validation: If your JSON conforms to the types in .llm-context/, it will deploy successfully. Run agentcore validate to check.
  4. Resource Removal: Use agentcore remove to remove resources. Run agentcore deploy after removal to tear down deployed infrastructure.

Directory Structure

myProject/
├── AGENTS.md               # This file — AI coding assistant context
├── agentcore/
│   ├── agentcore.json      # Main project config (AgentCoreProjectSpec)
│   ├── aws-targets.json    # Deployment targets (account + region)
│   ├── .env.local          # Secrets — API keys (gitignored)
│   ├── .llm-context/       # TypeScript type definitions for AI assistants
│   │   ├── README.md       # Guide to using schema files
│   │   ├── agentcore.ts    # AgentCoreProjectSpec types
│   │   ├── aws-targets.ts  # AWS deployment target types
│   │   └── mcp.ts          # Gateway and MCP tool types
│   └── cdk/                # AWS CDK project (@aws/agentcore-cdk L3 constructs)
├── app/                    # Agent application code
└── evaluators/             # Custom evaluator code (if any)

Schema Reference

The agentcore/.llm-context/ directory contains TypeScript type definitions optimized for AI coding assistants. Each file maps to a JSON config file and includes validation constraints as comments (@regex, @min, @max).

JSON ConfigSchema FileRoot Type
agentcore/agentcore.jsonagentcore/.llm-context/agentcore.tsAgentCoreProjectSpec
agentcore/agentcore.json (gateways)agentcore/.llm-context/mcp.tsAgentCoreMcpSpec
agentcore/aws-targets.jsonagentcore/.llm-context/aws-targets.tsAwsDeploymentTarget[]

Key Types

  • AgentCoreProjectSpec: Root config with runtimes, memories, credentials, agentCoreGateways, evaluators, onlineEvalConfigs, policyEngines arrays
  • AgentEnvSpec: Agent configuration (build type, entrypoint, code location, runtime version, network mode)
  • Memory: Memory resource with strategies (SEMANTIC, SUMMARIZATION, USER_PREFERENCE, EPISODIC) and expiry
  • Credential: API key or OAuth credential provider
  • AgentCoreGateway: MCP gateway with targets (Lambda, MCP server, OpenAPI, Smithy, API Gateway)
  • Evaluator: LLM-as-a-Judge or code-based evaluator
  • OnlineEvalConfig: Continuous evaluation pipeline bound to an agent

Common Enum Values

  • BuildType: 'CodeZip' | 'Container'
  • NetworkMode: 'PUBLIC' | 'VPC'
  • RuntimeVersion: 'PYTHON_3_10' | 'PYTHON_3_11' | 'PYTHON_3_12' | 'PYTHON_3_13' | 'PYTHON_3_14' | 'NODE_18' | 'NODE_20' | 'NODE_22'
  • MemoryStrategyType: 'SEMANTIC' | 'SUMMARIZATION' | 'USER_PREFERENCE' | 'EPISODIC'
  • GatewayTargetType: 'lambda' | 'mcpServer' | 'openApiSchema' | 'smithyModel' | 'apiGateway' | 'lambdaFunctionArn'
  • ModelProvider: 'Bedrock' | 'Gemini' | 'OpenAI' | 'Anthropic'

Build Types

  • CodeZip: Python source packaged as a zip and deployed directly to AgentCore Runtime.
  • Container: Docker image built in CodeBuild (ARM64), pushed to a per-agent ECR repository. Requires a Dockerfile in the agent's codeLocation directory. For local development (agentcore dev), the container is built and run locally with volume-mounted hot-reload.

Supported Frameworks (for template agents)

  • Strands — Bedrock, Anthropic, OpenAI, Gemini
  • LangChain/LangGraph — Bedrock, Anthropic, OpenAI, Gemini
  • GoogleADK — Gemini
  • OpenAI Agents — OpenAI
  • Autogen — Bedrock, Anthropic, OpenAI, Gemini

Protocols

  • HTTP — Standard HTTP agent endpoint
  • MCP — Model Context Protocol server
  • A2A — Agent-to-Agent protocol (Google A2A)

Deployment

Deployments are orchestrated through the CLI:

agentcore deploy    # Synthesizes CDK and deploys to AWS
agentcore status    # Shows deployment status

Alternatively, deploy directly via CDK:

cd agentcore/cdk
npm install
npx cdk synth
npx cdk deploy

Editing Schemas

When modifying JSON config files:

  1. Read the corresponding agentcore/.llm-context/*.ts file for type definitions
  2. Check validation constraint comments (@regex, @min, @max)
  3. Use exact enum values as string literals
  4. Use CloudFormation-safe names (alphanumeric, start with letter)
  5. Run agentcore validate to verify changes

CLI Commands

CommandDescription
agentcore createCreate a new project
agentcore add <resource>Add agent, memory, credential, gateway, evaluator, policy
agentcore remove <resource>Remove a resource
agentcore devRun agent locally with hot-reload
agentcore deployDeploy to AWS
agentcore statusShow deployment status
agentcore invokeInvoke agent (local or deployed)
agentcore logsView agent logs
agentcore tracesView agent traces
agentcore evalRun evaluations against an agent
agentcore packagePackage agent artifacts
agentcore validateValidate configuration
agentcore pause / resumePause or resume a deployed agent

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.