# AI agent architecture examples

Interactive architecture diagrams of 244 open-source repositories with a GitDiagram architecture diagram where the diagram has an LLM or AI-model component and a component or group named as an agent, most stars first. Each diagram shows the project's main components, how they connect, and links every part to its file on GitHub.

Across the 200 most-starred AI agents here, the median diagram has 22 components. 77% draw a data store (most often a vector store, files on disk and SQLite), 48% have a command-line interface and 26% a web interface.

100% have an LLM or AI-model component, 39% speak MCP, 27% have a plugin or extension system and 30% are split into workspace packages (packages/, apps/, crates/ and similar).

The files their components link to most are index.ts (34), main.py (27), app.py (26), server.ts (22) and App.tsx (20).

Group names that recur: “agent runtime” (32), “user interfaces” (20), “agent execution” (12), “agent capabilities” (10) and “platform services” (8).

By language: Python 42%, TypeScript 33%, Rust 8%, Go 5% and Jupyter Notebook 5%.

## Repositories 1 to 50 of 244

1. [openclaw/openclaw](https://gitdiagram.com/openclaw/openclaw) (394k stars, TypeScript): OpenClaw is a self-hosted assistant whose Gateway coordinates sessions, agent execution, tools, and messaging channels; users reach it through the Control UI, CLI/TUI, or… Markdown: https://gitdiagram.com/openclaw/openclaw.md
2. [nousresearch/hermes-agent](https://gitdiagram.com/nousresearch/hermes-agent) (261k stars, Python): Hermes Agent is a multi-surface AI agent: users interact through the CLI/TUI or messaging gateway, the agent builds context and runs model/tool turns, and results return through… Markdown: https://gitdiagram.com/nousresearch/hermes-agent.md
3. [anomalyco/opencode](https://gitdiagram.com/anomalyco/opencode) (225k stars, TypeScript): OpenCode is an open-source AI coding agent with terminal and desktop interfaces. Markdown: https://gitdiagram.com/anomalyco/opencode.md
4. [ultraworkers/claw-code](https://gitdiagram.com/ultraworkers/claw-code) (195k stars, Rust): Claw Code is the canonical Rust implementation of the claw CLI agent harness; the Python tree is described as a companion/reference workspace, not the primary runtime. Markdown: https://gitdiagram.com/ultraworkers/claw-code.md
5. [instructkr/claude-code](https://gitdiagram.com/instructkr/claude-code) (195k stars, Rust): Claw Code is a Rust CLI agent harness; the README identifies rust/ as its canonical runtime and src/ as a Python reference workspace. Markdown: https://gitdiagram.com/instructkr/claude-code.md
6. [firecrawl/firecrawl](https://gitdiagram.com/firecrawl/firecrawl) (192k stars, TypeScript): Firecrawl is a web-data API for AI agents: clients request search, scraping, discovery, and asynchronous jobs, then receive web content in LLM-ready formats. Markdown: https://gitdiagram.com/firecrawl/firecrawl.md
7. [ollama/ollama](https://gitdiagram.com/ollama/ollama) (185k stars, Go): Ollama is a local-and-cloud open-model runtime: users can run or chat with models through the CLI, call a REST API, or use the desktop app; integrations can also connect through… Markdown: https://gitdiagram.com/ollama/ollama.md
8. [langgenius/dify](https://gitdiagram.com/langgenius/dify) (160k stars, Python): Dify is an LLM application development platform. Markdown: https://gitdiagram.com/langgenius/dify.md
9. [langchain-ai/langchain](https://gitdiagram.com/langchain-ai/langchain) (148k stars, Python): LangChain is a Python framework for composing interoperable LLM applications and agents. Markdown: https://gitdiagram.com/langchain-ai/langchain.md
10. [shubhamsaboo/awesome-llm-apps](https://gitdiagram.com/shubhamsaboo/awesome-llm-apps) (140k stars, Python): Awesome LLM Apps is a curated collection of independent AI-agent, agent-skill, and RAG applications—not one integrated runtime. Markdown: https://gitdiagram.com/shubhamsaboo/awesome-llm-apps.md
11. [openai/codex](https://gitdiagram.com/openai/codex) (133k stars, Rust): Codex CLI is a locally running coding agent: a user starts a session, the agent works with a model and can use local tools, then presents progress and results in the terminal. Markdown: https://gitdiagram.com/openai/codex.md
12. [browser-use/browser-use](https://gitdiagram.com/browser-use/browser-use) (120k stars, Python): Browser Use is a Python AI browser agent: a user supplies a task and model, the agent plans and invokes registered browser actions, and returns a result with history. Markdown: https://gitdiagram.com/browser-use/browser-use.md
13. [earendil-works/pi](https://gitdiagram.com/earendil-works/pi) (119k stars, TypeScript): Pi is an extensible coding-agent harness with interactive, print/JSON, RPC, and TypeScript-SDK entry points. Markdown: https://gitdiagram.com/earendil-works/pi.md
14. [juliusbrussee/caveman](https://gitdiagram.com/juliusbrussee/caveman) (108k stars, Go): Caveman reduces tokens in AI coding workflows: an agent’s requests pass through a local proxy, which compresses eligible content before forwarding it to a provider, while… Markdown: https://gitdiagram.com/juliusbrussee/caveman.md
15. [nexu-io/open-design](https://gitdiagram.com/nexu-io/open-design) (97.7k stars, TypeScript): OpenDesign is a local-first, agent-native design studio: a user starts with a brief, an agent runtime works on project files, and the daemon exposes generated artifacts for… Markdown: https://gitdiagram.com/nexu-io/open-design.md
16. [openhands/openhands](https://gitdiagram.com/openhands/openhands) (91k stars, TypeScript): Agent Canvas is a self-hosted developer control center for coding-agent conversations and automations across local, remote, and cloud backends. Markdown: https://gitdiagram.com/openhands/openhands.md
17. [666ghj/mirofish](https://gitdiagram.com/666ghj/mirofish) (84.2k stars, Python): MiroFish is a web application for running LLM-powered, multi-agent social simulations from uploaded source material. Markdown: https://gitdiagram.com/666ghj/mirofish.md
18. [lobehub/lobehub](https://gitdiagram.com/lobehub/lobehub) (82.8k stars, TypeScript): LobeHub is a workspace for building and operating AI agents, with chat and team collaboration as central user workflows. Markdown: https://gitdiagram.com/lobehub/lobehub.md
19. [datawhalechina/hello-agents](https://gitdiagram.com/datawhalechina/hello-agents) (81.9k stars, Python): Hello-Agents is a Chinese open-source tutorial for learning to design and build AI-native agents, not a single runtime application. Markdown: https://gitdiagram.com/datawhalechina/hello-agents.md
20. [ruvnet/ruflo](https://gitdiagram.com/ruvnet/ruflo) (80.8k stars, TypeScript): Ruflo is an agent meta-harness for Claude Code, Codex, and MCP clients. Markdown: https://gitdiagram.com/ruvnet/ruflo.md
21. [abi/screenshot-to-code](https://gitdiagram.com/abi/screenshot-to-code) (79.1k stars, Python): Screenshot-to-Code is a local/self-hostable AI application that converts screenshots, mockups, Figma-like inputs, URLs, imported code, and recordings into editable web… Markdown: https://gitdiagram.com/abi/screenshot-to-code.md
22. [headroomlabs-ai/headroom](https://gitdiagram.com/headroomlabs-ai/headroom) (74.5k stars, Python): Headroom is a local context-optimization product for AI applications and agents. Markdown: https://gitdiagram.com/headroomlabs-ai/headroom.md
23. [usestrix/strix](https://gitdiagram.com/usestrix/strix) (74.3k stars, Python): Strix is an AI-driven penetration-testing product: users launch local scans or use its cloud interface, agents explore targets and validate vulnerabilities, and the system… Markdown: https://gitdiagram.com/usestrix/strix.md
24. [cline/cline](https://gitdiagram.com/cline/cline) (70.2k stars, TypeScript): Cline is a coding-agent product spanning a terminal CLI, shared SDK/core, VS Code integration, and Cline Hub. Markdown: https://gitdiagram.com/cline/cline.md
25. [code-yeongyu/oh-my-opencode](https://gitdiagram.com/code-yeongyu/oh-my-opencode) (70k stars, TypeScript): OmO is a multi-model agent harness for turning a user’s task into completed work. Markdown: https://gitdiagram.com/code-yeongyu/oh-my-opencode.md
26. [openinterpreter/openinterpreter](https://gitdiagram.com/openinterpreter/openinterpreter) (68.4k stars, Rust): Open Interpreter is a Rust coding-agent CLI that emulates multiple agent harnesses, with a terminal interface and compatibility protocols. Markdown: https://gitdiagram.com/openinterpreter/openinterpreter.md
27. [mem0ai/mem0](https://gitdiagram.com/mem0ai/mem0) (67.7k stars, Python): Mem0 is a memory layer for AI applications, delivered as Python/TypeScript SDKs, a self-hosted API and dashboard, command-line tools, and agent-framework integrations. Markdown: https://gitdiagram.com/mem0ai/mem0.md
28. [mintplex-labs/anything-llm](https://gitdiagram.com/mintplex-labs/anything-llm) (67.5k stars, JavaScript): AnythingLLM is a multi-user AI application for chatting with documents, configuring model providers, and using agents. Markdown: https://gitdiagram.com/mintplex-labs/anything-llm.md
29. [asgeirtj/system_prompts_leaks](https://gitdiagram.com/asgeirtj/system_prompts_leaks) (67.4k stars, Python): This is a static, community-maintained archive of captured AI system prompts and related agent/skill artifacts, not a running application. Markdown: https://gitdiagram.com/asgeirtj/system_prompts_leaks.md
30. [zhulinsen/daily_stock_analysis](https://gitdiagram.com/zhulinsen/daily_stock_analysis) (65.7k stars, Python): Daily Stock Analysis is a multi-market AI stock-research and decision-support product, delivered through a web/desktop workspace, API, and chat bots. Markdown: https://gitdiagram.com/zhulinsen/daily_stock_analysis.md
31. [jingyaogong/minimind](https://gitdiagram.com/jingyaogong/minimind) (65k stars, Python): MiniMind is a from-scratch, compact language-model project: its main user journey is preparing training data, training or adapting a model, then evaluating or serving generated… Markdown: https://gitdiagram.com/jingyaogong/minimind.md
32. [virattt/ai-hedge-fund](https://gitdiagram.com/virattt/ai-hedge-fund) (63.6k stars, Python): AI Hedge Fund is an educational research and trading-simulation application. Markdown: https://gitdiagram.com/virattt/ai-hedge-fund.md
33. [alishahryar1/free-claude-code](https://gitdiagram.com/alishahryar1/free-claude-code) (62.5k stars, Python): Free Claude Code is a local model gateway and coding-agent environment: users configure providers and a model, launch a client, and send requests through a Claude-compatible API… Markdown: https://gitdiagram.com/alishahryar1/free-claude-code.md
34. [crewaiinc/crewai](https://gitdiagram.com/crewaiinc/crewai) (59.5k stars, Python): CrewAI is a Python multi-agent automation framework: developers define role-based Crews or event-driven Flows, which coordinate model calls and can combine precise workflow… Markdown: https://gitdiagram.com/crewaiinc/crewai.md
35. [lordog/dive-into-llms](https://gitdiagram.com/lordog/dive-into-llms) (55.4k stars, Jupyter Notebook): This repository is a free, hands-on educational tutorial series, not an application with a shared runtime. Markdown: https://gitdiagram.com/lordog/dive-into-llms.md
36. [gpt-engineer-org/gpt-engineer](https://gitdiagram.com/gpt-engineer-org/gpt-engineer) (55.1k stars, Python): gpt-engineer is a Python coding-agent experimentation platform: it turns a natural-language project prompt into generated code, can improve an existing codebase, execute… Markdown: https://gitdiagram.com/gpt-engineer-org/gpt-engineer.md
37. [run-llama/llama_index](https://gitdiagram.com/run-llama/llama_index) (52.3k stars, Python): LlamaIndex OSS is a Python framework for grounding LLM applications in user data, with retrieval-augmented querying and agent orchestration as central capabilities. Markdown: https://gitdiagram.com/run-llama/llama_index.md
38. [hkuds/nanobot](https://gitdiagram.com/hkuds/nanobot) (49.5k stars, Python): nanobot is a self-hosted personal AI agent framework. Markdown: https://gitdiagram.com/hkuds/nanobot.md
39. [keygraphhq/shannon](https://gitdiagram.com/keygraphhq/shannon) (48.1k stars, TypeScript): Shannon is a local, autonomous AI pentester for web applications and APIs. Markdown: https://gitdiagram.com/keygraphhq/shannon.md
40. [alibaba/open-code-review](https://gitdiagram.com/alibaba/open-code-review) (47.4k stars, Go): OpenCodeReview is an AI code-review product exposed through a CLI and editor integrations. Markdown: https://gitdiagram.com/alibaba/open-code-review.md
41. [tashfeenahmed/freellmapi](https://gitdiagram.com/tashfeenahmed/freellmapi) (47.2k stars, TypeScript): FreeLLMAPI aggregates free and custom model providers behind an OpenAI-compatible API, with a router selecting available models and tracking per-key limits. Markdown: https://gitdiagram.com/tashfeenahmed/freellmapi.md
42. [librechat-ai/librechat](https://gitdiagram.com/librechat-ai/librechat) (46.6k stars, TypeScript): LibreChat is a self-hostable AI chat application supporting multiple model providers, Agents and tools, file workflows, and chat features such as search, artifacts, and audio. Markdown: https://gitdiagram.com/librechat-ai/librechat.md
43. [zhayujie/cowagent](https://gitdiagram.com/zhayujie/cowagent) (46.1k stars, Python): CowAgent is a Python-based, extensible AI-agent runtime: it receives multimodal messages, plans and executes tool-using tasks, maintains memory/knowledge, and replies through the… Markdown: https://gitdiagram.com/zhayujie/cowagent.md
44. [astrbotdevs/astrbot](https://gitdiagram.com/astrbotdevs/astrbot) (45.7k stars, Python): AstrBot is an extensible conversational-agent platform that connects messaging channels and Web Chat to AI providers, agent tools, plugins, and knowledge features. Markdown: https://gitdiagram.com/astrbotdevs/astrbot.md
45. [danny-avila/librechat](https://gitdiagram.com/danny-avila/librechat) (44.5k stars, TypeScript): LibreChat is a self-hosted multi-model conversational platform with chat, Agents, Assistants, tools, files, MCP, artifacts, and automation. Markdown: https://gitdiagram.com/danny-avila/librechat.md
46. [badlogic/pi-mono](https://gitdiagram.com/badlogic/pi-mono) (44.3k stars, TypeScript): This is a TypeScript monorepo organized around one core product, the Pi coding agent, plus shared libraries underneath it. Markdown: https://gitdiagram.com/badlogic/pi-mono.md
47. [anthropics/claude-plugins-official](https://gitdiagram.com/anthropics/claude-plugins-official) (43.9k stars, Python): This repository is a curated Claude Code plugin directory, not one unified application. Markdown: https://gitdiagram.com/anthropics/claude-plugins-official.md
48. [vectorize-io/hindsight](https://gitdiagram.com/vectorize-io/hindsight) (41.7k stars, Python): Hindsight is a long-term memory system for AI agents. Markdown: https://gitdiagram.com/vectorize-io/hindsight.md
49. [vectifyai/pageindex](https://gitdiagram.com/vectifyai/pageindex) (38.9k stars, Python): PageIndex is a vectorless RAG SDK: it builds hierarchical document trees, then uses LLM-guided tools to search them and answer questions. Markdown: https://gitdiagram.com/vectifyai/pageindex.md
50. [google-research/google-research](https://gitdiagram.com/google-research/google-research) (38.9k stars, Jupyter Notebook): Google Research is a collection of independently maintained research projects, not one integrated application; its README recommends working within a project subdirectory. Markdown: https://gitdiagram.com/google-research/google-research.md

Next page: https://gitdiagram.com/architecture-examples/ai-agents/2

More hubs: https://gitdiagram.com/architecture-examples

Counted over GitDiagram's stored diagrams of public repositories, from the names their components and groups carry and the files they link to; the rules are the ones in the [2026 open-source architecture report](https://gitdiagram.com/open-source-architecture-2026). Stars are GitHub's when the diagram was last made. Rebuilt daily: hubs grow as more repositories' languages are known.
