# HarmonyAIDraw > HarmonyAIDraw is an AI diagramming agent for HarmonyOS flowcharts and UML, built on > open-source draw.io (v32.2.0, embed protocol, zero fork). It closes the loop between > design and AI coding inside the IDE: chat-to-diagram, code reverse-engineering, and > diagram-to-ArkTS code verified by real hvigor compilation. Ships as both a VS Code > extension and a DevEco Studio plugin sharing one engine. Apache-2.0 open source. > 中文简介:HarmonyAIDraw 是鸿蒙流程图及 UML 图绘制智能体——基于开源 draw.io, > 在 IDE 内提供自然语言出图、代码逆向制图、图生码并经 hvigor 真编译验证三条链路, > 以 VS Code 扩展与 DevEco Studio 插件双形态交付,Apache-2.0 开源免费。 Website: https://aidraw.yongyitec.com/ Docs: - [Website (English)](https://aidraw.yongyitec.com/en/): overview, features, architecture, install, FAQ - [Website (中文)](https://aidraw.yongyitec.com/zh/): 官网中文版(功能 / 架构 / 安装 / 快速开始 / FAQ) - [Download & Install (English)](https://aidraw.yongyitec.com/en/download/): v0.1.3 install guides for both IDEs - [下载与安装 (中文)](https://aidraw.yongyitec.com/zh/download/): v0.1.3 双 IDE 安装指南 Code: - [Source repository (AtomGit)](https://atomgit.com/Jiangbing321/HarmonyAIDraw): TypeScript monorepo, Apache-2.0 - [Releases](https://atomgit.com/Jiangbing321/HarmonyAIDraw/releases/v0.1.3): vsix + DevEco plugin zip - [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Jiangbing321.harmonyaidraw-vscode): one-click install Facts: - Product: AI diagramming IDE plugin for HarmonyOS developers; version 0.1.3; free, open source (Apache-2.0) - Diagram types: flowchart, sequence, use-case, software architecture, class diagrams; project reverse-engineering adds the HarmonyOS three-layer module architecture (entry/har/hsp) - Four capabilities: F1 chat-to-diagram (progressive painting, step trace, per-step undo, multimodal attachments); F2 code-to-diagram (scans module.json5 / oh-package.json5 / .ets); F3 diagram-to-code (ArkTS pages + ViewModels + routes, compiled with hvigor assembleHap, self-repairs from failure logs up to 2 rounds, outputs -unsigned.hap; also Java/Spring, Python, React skeletons without compilation); F4 dual-IDE parity (VS Code + DevEco Studio share one web asset and one engine, zero duplicated business code) - Models: GLM / DeepSeek / Qwen / Claude / privately deployed models, via a self-built LLM gateway (OpenAI-compatible + Anthropic protocols) - Privacy: local-first — diagrams, sessions and model configs stay in local SQLite; only LLM inference requests leave the machine; private models close the loop - Performance: mid-size project reverse-engineering < 60s; first diagram < 15s; DemoApp compile loop 6s (real project 21s); 1000+ nodes stay fluid; ArkTS parser dependencies 12MB → 0 - Requirements: Windows 10/11; VS Code ≥ 1.85 or DevEco Studio ≥ 26.0.0.851; any one LLM API key - Install: VS Code — `code --install-extension Jiangbing321.harmonyaidraw-vscode`; DevEco Studio — File → Settings → Plugins → Install Plugin from Disk → harmonyaidraw-deveco-0.1.3.zip - Architecture: L4 plugin shells (VS Code TS / DevEco Kotlin) → L3 protocol (drawio embed + HostBridge) → L2 engine (Node: LLM gateway, SQLite, scanner, hvigor builder) → L1 web assets (host-page + drawio submodule); 28 agent tools; only 2 runtime dependencies (json5, node-sqlite3-wasm)