Engineering groups adopting the AI-Pushed Improvement Lifecycle (AI-DLC) with Amazon Bedrock AgentCore and coding brokers like Kiro typically battle with the hole between conceptual frameworks and dealing code. Amazon Bedrock AgentCore is a service for constructing, connecting, and optimizing brokers at scale with any framework or mannequin. AI-DLC positions AI as a central collaborator throughout the software program improvement lifecycle, dealing with routine execution whereas people retain oversight of essential selections. This submit closes that hole with working reference implementations.
This submit walks by way of the structure, design selections, and key code patterns behind two reference implementations that show AI-DLC building section patterns utilizing Amazon Bedrock AgentCore, Kiro, and native agentic coding instruments. The primary generates Mermaid entity relationship diagrams from SQL schemas utilizing AgentCore runtime, a functionality of Amazon Bedrock AgentCore. The second supplies automated code safety evaluation by way of a multi-agent structure that makes use of AgentCore Gateway, a functionality of Amazon Bedrock AgentCore, and AgentCore reminiscence, a functionality of Amazon Bedrock AgentCore, together with exterior device integrations. Collectively, they illustrate the way to construction AI-driven workflows that keep human-in-the-loop governance whereas accelerating supply. Each implementations hyperlink to finish deployment directions of their respective GitHub repositories.
AI-DLC building patterns in apply
The AI-DLC building section positions AI to suggest structure, generate implementation plans, produce code, and create deployment artifacts, with group members offering clarification on technical selections in actual time. The implementations described right here map on to this sample:
Automated artifact technology: An agent receives structured enter (SQL schema information), creates an in depth plan, generates output (Mermaid ER diagrams), and shops outcomes for human overview.
Steady code high quality enforcement: A multi-agent system analyzes code pushed by way of steady integration and steady supply (CI/CD) pipelines, producing safety assessments, Widespread Vulnerabilities and Exposures (CVE) checks, and coverage compliance studies that inform human decision-making.
Each methods share a typical architectural basis constructed on AgentCore, demonstrating how groups can compose AI-driven workflows from modular, manageable parts.
Resolution 1: SQL schema to ER diagram technology
This AWS Samples venture auto-generates Mermaid ER diagrams from SQL schema information utilizing an agentic AI workflow on Amazon Bedrock AgentCore. After SQL code is checked in by builders, the Amazon Easy Storage Service (Amazon S3) set off and AWS Lambda function-based workflow invokes the AgentCore runtime, which parses the info definition language (DDL) to supply an .mmd diagram saved again to Amazon S3. It reads solely schema metadata (tables, constraints, and overseas keys), by no means row information, making it a clear reference for schema-to-diagram automation.
Enterprise problem
Database groups managing evolving SQL schemas want present entity relationship documentation. Guide creation of ER diagrams is time-intensive and documentation ceaselessly drifts from the precise schema. When schema modifications land by way of pull requests, groups want up to date diagrams with out including guide documentation steps to the event workflow.
Structure
The system makes use of a serverless, event-driven structure with the next parts:
Determine 1: Occasion-driven structure for SQL schema to ER diagram technology
S3 occasion set off: SQL information uploaded to an Amazon S3 bucket set off an AWS Lambda operate that initiates the evaluation workflow.
Authentication: Amazon Cognito supplies OAuth2 machine-to-machine (M2M) authentication. Shopper credentials are saved in AWS Programs Supervisor Parameter Retailer.
AgentCore runtime: A containerized agent constructed with the Strands framework runs on AgentCore runtime. The agent makes use of Claude Sonnet 4 by way of Amazon Bedrock to parse SQL DDL statements and generate Mermaid ER diagram syntax. (For mannequin availability by AWS Area, see Regional availability by fashions.)
AgentCore reminiscence: Gives persistent session context with a 90-day expiry, and helps semantic search throughout earlier analyses and incremental schema understanding.
Output storage: Generated .mmd diagram information are saved to Amazon S3 below a devoted prefix, with metadata monitoring the supply file and technology timestamp.
The workflow proceeds as follows:
A SQL file is uploaded to Amazon S3 (manually or by way of a CI/CD pipeline).
The Lambda set off reads the file content material and authenticates by way of Cognito OAuth.
The set off invokes the AgentCore runtime agent with the SQL content material because the payload.
The agent analyzes the schema and identifies tables, columns, constraints, and overseas key relationships. It then generates an entire Mermaid erDiagram.
The diagram is saved to Amazon S3 and the evaluation session is saved in AgentCore reminiscence.
Implementation particulars
The agent implementation makes use of the BedrockAgentCoreApp runtime wrapper with the @app.entrypoint decorator to register the handler:
Key design selections embrace:
Chunked processing: Giant SQL information are break up into manageable segments, analyzed independently, then consolidated right into a unified diagram. This handles schemas with lots of of tables with out exceeding context limits.
Structured prompting: The agent makes use of a scientific evaluation immediate that extracts tables, columns, information varieties, main keys, and overseas key relationships earlier than producing diagram syntax.
OpenTelemetry tracing: Each step is instrumented with spans and attributes, offering observability into processing length, chunk counts, and error attribution.
The entire implementation, together with OpenAI Codex abilities and MCP server integration, is obtainable within the sample-to-create-mermaid-entity-diagrams-from-sql-using-agentic-ai-on-agentcore repository.
Resolution 2: Safe software program handoffs
This serverless code safety evaluation resolution makes use of Amazon Bedrock AgentCore to routinely scan Python or Java code for safety vulnerabilities, CVE dangers in dependencies, and coverage violations. The evaluation is triggered when code is pushed from a GitLab pipeline to Amazon S3. A Strands-based agent then evaluates the code utilizing Anthropic Claude Sonnet fashions on Amazon Bedrock. It calls Mannequin Context Protocol (MCP) instruments that run on AWS Lambda for CVE and coverage checks. (For mannequin availability by Area, see Regional availability by fashions.) Outcomes, together with high quality scores from 1 to 10 and suggestions, are saved in AgentCore reminiscence with semantic search and surfaced by way of a real-time, session-based internet dashboard. Amazon Cognito supplies authentication, and AgentCore Observability, a functionality of Amazon Bedrock AgentCore, and Amazon CloudWatch present monitoring.
Enterprise problem
Code opinions for safety compliance require specialised data throughout CVE databases, organizational coding insurance policies, and language-specific safety patterns. Guide safety opinions create bottlenecks in supply pipelines, and inconsistent utility of requirements throughout groups results in variable code high quality.
Structure
This resolution supplies automated code safety evaluation by way of a multi-agent structure for safe software program handoffs between improvement levels:
Determine 2: Multi-agent structure for automated code safety evaluation
Code information are uploaded to an Amazon S3 bucket (manually or by way of a CI/CD pipeline). An AWS Lambda set off detects new uploads and initiates the AgentCore evaluation workflow with OAuth2 authentication.
AgentCore Gateway with MCP instruments: The gateway orchestrates calls to exterior device integrations:
Coverage Verify Lambda: Validates code towards organization-specific safety insurance policies.
CVE Database Verify Lambda: Scans dependency information for recognized vulnerabilities.
AgentCore runtime (Strands framework): The core evaluation agent performs deep code overview, together with construction evaluation, logic high quality analysis, reminiscence and efficiency evaluation, safety subject detection, and finest practices compliance.
AgentCore reminiscence: Shops evaluation outcomes with semantic search capabilities, supporting historic comparability and development evaluation.
Dashboard Lambda: Serves an online UI that gives session-based outcomes with search and multi-tab navigation throughout information, violations, and high quality metrics.
Key capabilities
The evaluation agent follows the identical AgentCore runtime sample as Resolution 1, with the addition of MCP device calls routed by way of AgentCore Gateway:
The agent receives code content material from the AWS Lambda set off, performs multi-dimensional evaluation utilizing the inspiration mannequin (FM), then invokes exterior instruments (coverage checker, CVE scanner) by way of AgentCore Gateway as wanted. Outcomes are endured to AgentCore reminiscence for dashboard retrieval and historic comparability.
Key design selections embrace:
Multi-agent separation: The code evaluation agent focuses solely on high quality evaluation. Coverage checking and CVE scanning are delegated to devoted AWS Lambda capabilities invoked by way of AgentCore Gateway, holding every element single-purpose and independently updatable.
Session-based outcome persistence: Every evaluation run creates a singular session in AgentCore reminiscence. The dashboard retrieves outcomes by session ID, permitting builders to match high quality scores throughout a number of code submissions.
Gateway-mediated device invocation: Exterior instruments are registered by way of AgentCore Gateway utilizing MCP relatively than direct invocation. This decouples the agent from device implementation particulars and permits new instruments to be added with out modifying agent code.
The entire implementation is obtainable within the sample-agentic-secure-software-handoffs repository.
Whereas AgentCore supplies the cloud runtime for deployed, event-driven agent workloads, the event workflow itself advantages from native agentic instruments that implement AI-DLC patterns on the developer’s workstation.
Kiro brokers and abilities
Kiro helps the AI-DLC inception and building phases by way of structured specs and customized agent abilities:
Spec-driven improvement: Kiro transforms pure language necessities into structured specs with acceptance standards, then generates implementation plans from these specs. This maps on to the AI-DLC sample of AI creating plans and looking for human validation earlier than execution.
Customized abilities: Groups can outline reusable Kiro agent abilities that encode organizational requirements (coding patterns, safety necessities, architectural pointers), in order that AI-generated code constantly meets enterprise high quality bars.
Agentic activity execution: Kiro’s agent mode handles multi-file implementation duties with autonomous device use (file creation, terminal instructions, search) whereas sustaining the human-in-the-loop overview at every specification checkpoint.
OpenAI ChatGPT Codex (MCP server and abilities)
The repository additionally consists of an OpenAI Codex integration that demonstrates how the identical ER diagram technology workflow extends to extra coding brokers by way of MCP and customized abilities:
MCP server for reside database schema entry: An area stdio-based MCP server connects Codex to MySQL or Amazon Aurora MySQL databases by way of INFORMATION_SCHEMA. The server exposes three instruments (schema_summary, generate_er_markdown, and generate_mermaid) that permit Codex to question desk buildings, columns, indexes, and overseas key relationships with out accessing desk row information.
Customized Codex ability: A SKILL.md file encodes the ER diagram technology workflow as a reusable Codex ability, guiding the agent by way of schema evaluation and diagram creation with constant high quality.
Safe credential administration: Database credentials are retrieved from AWS Secrets and techniques Supervisor with TLS verification enforced, following the identical safety patterns used within the AgentCore implementation.
Claude Code (native agent)
Claude Code operates as an area command-line agent that enhances AgentCore deployments:
Speedy prototyping: Earlier than deploying to AgentCore runtime, builders use Claude Code to iterate on agent logic, check prompts, and validate device integration patterns regionally.
Infrastructure-as-code technology: Claude Code generates deployment scripts, Dockerfiles, AWS Id and Entry Administration (IAM) insurance policies, and AWS CloudFormation templates. These artifacts comply with architectural specs produced throughout the AI-DLC building section.
Code overview and refactoring: Native brokers carry out first-pass opinions towards venture guidelines and customized directions, catching points earlier than code enters the CI/CD pipeline the place the safe software program handoff system supplies the authoritative safety evaluation.
The mixed workflow
A typical AI-DLC bolt (brief, intense work cycle) utilizing these instruments follows this sample:
Inception (Kiro): Remodel enterprise necessities into specs with acceptance standards. The group validates AI-generated specs in a mob elaboration session.
Building (Claude Code and Kiro): Generate implementation code, deployment scripts, and check suites. Native brokers deal with file technology and iterative refinement whereas Kiro manages activity orchestration.
Validation (AgentCore): Code pushed by way of CI/CD triggers automated safety evaluation. The multi-agent system supplies a top quality evaluation earlier than merge.
Operations (AgentCore): Manufacturing brokers (just like the ER diagram generator) run repeatedly on AgentCore runtime, triggered by occasions, processing workloads at scale with full observability.
Finest practices
Primarily based on implementing these methods, we advocate the next practices:
Separate agent issues: Design every agent with a single, well-defined duty. The ER diagram agent solely generates ER diagrams. Composability comes from orchestration, not from overloading particular person brokers.
Use AgentCore reminiscence for context continuity: Persistent reminiscence permits brokers to be taught from earlier interactions, examine present evaluation with historic baselines, and keep state throughout periods with out reprocessing.
Instrument with OpenTelemetry from day one: Tracing supplies visibility into agent habits, processing length, and failure modes. That is important for debugging immediate effectiveness and figuring out efficiency bottlenecks.
Retailer configuration in Parameter Retailer: Decouple configuration from code. Cognito credentials, reminiscence IDs, mannequin alternatives, and bucket names ought to all be retrievable at runtime.
Implement chunked processing for big inputs: Design brokers to deal with inputs that exceed mannequin context home windows by splitting, analyzing independently, and consolidating outcomes.
Safe with Cognito M2M authentication: Use OAuth2 shopper credentials stream for service-to-service communication. Keep away from hardcoded credentials or long-lived tokens.
Combine by way of CI/CD, not guide add: In manufacturing, join brokers to repository occasions (merge requests, pipeline levels) relatively than requiring guide file uploads. The S3 set off sample proven right here interprets on to GitLab webhook or GitHub Actions integration.
Apply Amazon Bedrock Guardrails for manufacturing agent outputs: Configure content material filtering insurance policies, denied subject detection, and grounding validation to ensure agent-generated responses meet accountable AI requirements. For code evaluation brokers, guardrails can block outputs containing insecure code patterns or hallucinated CVE references. For diagram technology brokers, grounding checks validate that outputs precisely replicate the supply schema. Mix guardrails with automated analysis pipelines to repeatedly monitor agent habits and flag drift from anticipated output high quality.
Conclusion
The AI-DLC methodology turns into sensible when backed by concrete implementation patterns. Amazon Bedrock AgentCore supplies the runtime infrastructure (containerized brokers, persistent reminiscence, safe gateways, and exterior device integration) whereas native instruments like Kiro and Claude Code speed up the event workflow itself.
Begin with the SQL-to-ER-Diagram pattern to deploy your first AgentCore agent. Observe the deployment scripts in sequence, then prolong the sample with multi-agent coordination, MCP device integrations, and CI/CD-driven triggers utilizing the Safe software program handoffs pattern.
To go deeper, see Transfer your AI brokers from proof of idea to manufacturing with Amazon Bedrock AgentCore for a complementary walkthrough of taking brokers to manufacturing scale. For full-service particulars, API references, and configuration steerage, discuss with the Amazon Bedrock AgentCore documentation.





