AI Cloud Architect

From code to diagrams: Agentic architecture documentation with Amazon Bedrock AgentCore

AWSHow-to by Göksel SARIKAYA, Abhijit Gautam and Richard MerrittAWS Artificial Intelligence Blog

Learn how a global interdealer broker built an automated architecture documentation pipeline on Amazon Bedrock AgentCore that analyzes .NET code bases, generates architecture diagrams, and maintains searchable documentation through Amazon Bedrock Knowledge Bases and AWS CodePipeline.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Shows a pipeline where a Strands agent on AgentCore reads .NET code, generates Mermaid UML diagrams, and indexes them in Bedrock Knowledge Bases for natural-language search on each commit.

Who it is for

Architects and platform teams running .NET services on AWS CodePipeline who need diagrams that stay current with code.

Key points

  • Agent self-corrects Mermaid syntax errors; AWS says this reaches 95% reliability versus 65% for single-shot calls
  • Knowledge Base uses Titan Text Embeddings v2 with S3 as the vector store and hierarchical chunking (1,500 and 300 tokens)
  • AWS estimates about $0.28 per repository generation, based on May 2026 rates