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 crucial selections. This publish closes that hole with working reference implementations.
This publish walks by means of the structure, design selections, and key code patterns behind two reference implementations that reveal AI-DLC building part 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 offers automated code safety evaluation by means 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 best way to construction AI-driven workflows that preserve 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 observe
The AI-DLC building part positions AI to suggest structure, generate implementation plans, produce code, and create deployment artifacts, with workforce 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 evaluate.
- Steady code high quality enforcement: A multi-agent system analyzes code pushed by means of steady integration and steady supply (CI/CD) pipelines, producing safety assessments, Widespread Vulnerabilities and Exposures (CVE) checks, and coverage compliance stories that inform human decision-making.
Each methods share a standard architectural basis constructed on AgentCore, demonstrating how groups can compose AI-driven workflows from modular, manageable elements.
Answer 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 information definition language (DDL) to provide an .mmd diagram saved again to Amazon S3. It reads solely schema metadata (tables, constraints, and overseas keys), by no means row knowledge, making it a clear reference for schema-to-diagram automation.
Enterprise problem
Database groups managing evolving SQL schemas want present entity relationship documentation. Handbook creation of ER diagrams is time-intensive and documentation incessantly drifts from the precise schema. When schema adjustments land by means of pull requests, groups want up to date diagrams with out including handbook documentation steps to the event workflow.
Structure
The system makes use of a serverless, event-driven structure with the next elements:
- S3 occasion set off: SQL information uploaded to an Amazon S3 bucket set off an AWS Lambda perform that initiates the evaluation workflow.
- Authentication: Amazon Cognito offers 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 means 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
.mmddiagram 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 means of a CI/CD pipeline).
- The Lambda set off reads the file content material and authenticates by means 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 embody:
- Chunked processing: Giant SQL information are cut up into manageable segments, analyzed independently, then consolidated right into a unified diagram. This handles schemas with a whole lot of tables with out exceeding context limits.
- Structured prompting: The agent makes use of a scientific evaluation immediate that extracts tables, columns, knowledge sorts, 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 period, chunk counts, and error attribution.
The entire implementation, together with OpenAI Codex expertise and MCP server integration, is out there within the sample-to-create-mermaid-entity-diagrams-from-sql-using-agentic-ai-on-agentcore repository.
Answer 2: Safe software program handoffs
This serverless code safety evaluation answer makes use of Amazon Bedrock AgentCore to mechanically 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 means of a real-time, session-based net dashboard. Amazon Cognito offers authentication, and AgentCore Observability, a functionality of Amazon Bedrock AgentCore, and Amazon CloudWatch present monitoring.
Enterprise problem
Code evaluations for safety compliance require specialised data throughout CVE databases, organizational coding insurance policies, and language-specific safety patterns. Handbook safety evaluations create bottlenecks in supply pipelines, and inconsistent utility of requirements throughout groups results in variable code high quality.
Structure
This answer offers automated code safety evaluation by means of a multi-agent structure for safe software program handoffs between improvement levels:
- Code information are uploaded to an Amazon S3 bucket (manually or by means 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 Test Lambda: Validates code towards organization-specific safety insurance policies.
- CVE Database Test Lambda: Scans dependency information for recognized vulnerabilities.
- AgentCore runtime (Strands framework): The core evaluation agent performs deep code evaluate, together with construction evaluation, logic high quality analysis, reminiscence and efficiency evaluation, safety concern detection, and finest practices compliance.
- AgentCore reminiscence: Shops evaluation outcomes with semantic search capabilities, supporting historic comparability and development evaluation.
- Dashboard Lambda: Serves an internet 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 Answer 1, with the addition of MCP device calls routed by means of AgentCore Gateway:
The agent receives code content material from the AWS Lambda set off, performs multi-dimensional evaluation utilizing the muse mannequin (FM), then invokes exterior instruments (coverage checker, CVE scanner) by means of AgentCore Gateway as wanted. Outcomes are persevered to AgentCore reminiscence for dashboard retrieval and historic comparability.
Key design selections embody:
- 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 means of AgentCore Gateway, conserving every part single-purpose and independently updatable.
- Session-based end result persistence: Every evaluation run creates a novel 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 means of AgentCore Gateway utilizing MCP somewhat 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 out there within the sample-agentic-secure-software-handoffs repository.
Whereas AgentCore offers 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 expertise
Kiro helps the AI-DLC inception and building phases by means of structured specs and customized agent expertise:
- 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 expertise: Groups can outline reusable Kiro agent skills that encode organizational requirements (coding patterns, safety necessities, architectural pointers), in order that AI-generated code constantly meets enterprise high quality bars.
- Agentic process 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 evaluate at every specification checkpoint.
OpenAI ChatGPT Codex (MCP server and expertise)
The repository additionally contains an OpenAI Codex integration that demonstrates how the identical ER diagram technology workflow extends to extra coding brokers by means of MCP and customized expertise:
- MCP server for reside database schema entry: An area stdio-based MCP server connects Codex to MySQL or Amazon Aurora MySQL databases by means of
INFORMATION_SCHEMA. The server exposes three instruments (schema_summary,generate_er_markdown, andgenerate_mermaid) that enable Codex to question desk buildings, columns, indexes, and overseas key relationships with out accessing desk row knowledge. - Customized Codex talent: A
SKILL.mdfile encodes the ER diagram technology workflow as a reusable Codex talent, guiding the agent by means 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:
- Fast prototyping: Earlier than deploying to AgentCore runtime, builders use Claude Code to iterate on agent logic, take a look at prompts, and validate device integration patterns domestically.
- Infrastructure-as-code technology: Claude Code generates deployment scripts, Dockerfiles, AWS Id and Entry Administration (IAM) insurance policies, and AWS CloudFormation templates. These artifacts observe architectural specs produced throughout the AI-DLC building part.
- Code evaluate and refactoring: Native brokers carry out first-pass evaluations towards venture guidelines and customized directions, catching points earlier than code enters the CI/CD pipeline the place the safe software program handoff system offers 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 workforce validates AI-generated specs in a mob elaboration session.
- Development (Claude Code and Kiro): Generate implementation code, deployment scripts, and take a look at suites. Native brokers deal with file technology and iterative refinement whereas Kiro manages process orchestration.
- Validation (AgentCore): Code pushed by means of CI/CD triggers automated safety evaluation. The multi-agent system offers a high 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.
Greatest practices
Primarily based on implementing these methods, we suggest the next practices:
- Separate agent considerations: Design every agent with a single, well-defined accountability. 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 study from earlier interactions, examine present evaluation with historic baselines, and preserve state throughout periods with out reprocessing.
- Instrument with OpenTelemetry from day one: Tracing offers visibility into agent habits, processing period, 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 choices, 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 means of CI/CD, not handbook add: In manufacturing, join brokers to repository occasions (merge requests, pipeline levels) somewhat than requiring handbook 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 matter detection, and grounding validation to verify 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 mirror 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 offers 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. Comply with the deployment scripts in sequence, then lengthen 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.
In regards to the authors


