Skip to content

autogen mermaid generator.stub

Nicolas Cravino edited this page Apr 15, 2026 · 2 revisions

id: autogen-mermaid-generator name: AutogenMermaidGenerator repo_path: ~/Documents/sw30labs/repos/AutogenMermaidGenerator remote_url: https://github.com/sw30labs/AutogenMermaidGenerator.git primary_language: Python framework: pyautogen GroupChat + OpenAI ingested: 2026-04-13 last_commit_date: 2024-11-17 category: developer-tools stacks: [agentic, converter]

Purpose

Generates Mermaid.js diagrams from source code using AI agents in a GroupChat structure. Creates visual representations of code architecture including data flow diagrams, entity-relationship diagrams, and component interactions.

Architecture

  • Three-agent system via GroupChat: START → CORE_CODER_AGENT → CORE_MANAGER_AGENT → END with rejection/acceptance loop
  • AUTOGEN_MANAGER_AGENT: Monitors both core agents for quality assurance
  • Iterative refinement: Manager validates diagrams and requests corrections until quality threshold met
  • YAML-driven prompts: Includes target, simple_start, core agent instructions, example schemas, and output examples
  • Multi-diagram output: Generates ERD, data flow diagrams, component diagrams in Mermaid syntax
  • JSON + Markdown reports: Structured output with data dictionary and context

Dependencies

  • pyautogen (0.3.1) - GroupChat orchestration
  • openai - GPT-4 LLM
  • tiktoken - token counting for OpenAI
  • chardet - file encoding detection
  • PyYAML - configuration
  • Python stdlib

Key Features

  • Automatic diagram generation from source code
  • Multi-agent validation and refinement
  • Entity-Relationship Diagram (ERD) support
  • Data Flow Diagram (DFD) support
  • Sequence diagram generation
  • Token counting and context management
  • Markdown report generation with examples
  • File MD5 hash tracking
  • Comprehensive logging and error handling

Tags

  • python
  • llm
  • openai
  • mermaid
  • cli
  • developer-tools

Entities and Topics

Clone this wiki locally