# CLI tool architecture examples

Interactive architecture diagrams of 1,000 open-source repositories with a GitDiagram architecture diagram where the diagram has a command-line or terminal interface component, 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 CLI tools and command-line projects here, the median diagram has 20.5 components. 61% draw a data store (most often a cache, files on disk and SQLite), 100% have a command-line interface and 14% a web interface.

20% have an LLM or AI-model component, 22% speak MCP, 31% have a plugin or extension system and 24% are split into workspace packages (packages/, apps/, crates/ and similar).

The files their components link to most are main.rs (27), index.ts (20), main.py (17), __init__.py (16) and lib.rs (16).

Group names that recur: “user interfaces” (37), “agent runtime” (16), “integrations” (7), “application runtime” (6) and “entry points” (6).

By language: Python 33%, TypeScript 18%, Rust 16%, Go 11% and JavaScript 5%.

## Repositories 1 to 50 of 1,000

1. [codecrafters-io/build-your-own-x](https://gitdiagram.com/codecrafters-io/build-your-own-x) (560k stars, Markdown): This repository is a curated index of step-by-step guides for recreating technologies, not a runtime application. Markdown: https://gitdiagram.com/codecrafters-io/build-your-own-x.md
2. [public-apis/public-apis](https://gitdiagram.com/public-apis/public-apis) (497k stars, Python): This repository is a community-curated catalog of public APIs, not an API execution platform. Markdown: https://gitdiagram.com/public-apis/public-apis.md
3. [morluto/rea](https://gitdiagram.com/morluto/rea) (445k stars, TypeScript): REA is a local reverse-engineering toolkit exposed through an MCP server and CLI. Markdown: https://gitdiagram.com/morluto/rea.md
4. [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
5. [affaan-m/ecc](https://gitdiagram.com/affaan-m/ecc) (300k stars, JavaScript): ECC is a harness-native agent engineering system: an operator starts or manages agent sessions, coordinates work across harnesses, and inspects session activity. Markdown: https://gitdiagram.com/affaan-m/ecc.md
6. [deepseek-ai/deepseek-harness](https://gitdiagram.com/deepseek-ai/deepseek-harness) (277k stars, TypeScript): DeepSeek Harness is a plugin-oriented agent harness with a local Web UI and Desktop host. Markdown: https://gitdiagram.com/deepseek-ai/deepseek-harness.md
7. [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
8. [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
9. [yt-dlp/yt-dlp](https://gitdiagram.com/yt-dlp/yt-dlp) (197k stars, Python): yt-dlp is a command-line audio/video downloader. Markdown: https://gitdiagram.com/yt-dlp/yt-dlp.md
10. [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
11. [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
12. [microsoft/markitdown](https://gitdiagram.com/microsoft/markitdown) (194k stars, Python): MarkItDown is a Python toolkit that converts local files, streams, and web resources into Markdown for text-analysis and LLM workflows. Markdown: https://gitdiagram.com/microsoft/markitdown.md
13. [ohmyzsh/ohmyzsh](https://gitdiagram.com/ohmyzsh/ohmyzsh) (190k stars, Shell): Oh My Zsh is a Zsh configuration framework: it assembles shell defaults, a selected prompt theme, and user-selected plugins into each interactive shell. Markdown: https://gitdiagram.com/ohmyzsh/ohmyzsh.md
14. [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
15. [affaan-m/everything-claude-code](https://gitdiagram.com/affaan-m/everything-claude-code) (178k stars, JavaScript): - This is a cross-harness configuration and automation platform for AI coding tools, not a product app. Markdown: https://gitdiagram.com/affaan-m/everything-claude-code.md
16. [f/prompts.chat](https://gitdiagram.com/f/prompts.chat) (177k stars, MDX): prompts.chat is an open-source AI prompt library and community platform, with companion tools for building, using, and learning about prompts. Markdown: https://gitdiagram.com/f/prompts.chat.md
17. [huggingface/transformers](https://gitdiagram.com/huggingface/transformers) (168k stars, Python): Transformers is a pretrained-model definition framework for inference and training across text, vision, audio, video, and multimodal tasks. Markdown: https://gitdiagram.com/huggingface/transformers.md
18. [msitarzewski/agency-agents](https://gitdiagram.com/msitarzewski/agency-agents) (167k stars, Shell): The Agency is a collection of role-specific AI agent prompts, with CLI scripts and tool integrations for selecting and installing them into AI coding assistants. Markdown: https://gitdiagram.com/msitarzewski/agency-agents.md
19. [genymobile/scrcpy](https://gitdiagram.com/genymobile/scrcpy) (152k stars, C): scrcpy is a desktop application for mirroring Android video and audio and controlling the device over USB or TCP/IP; OTG supports physical-input simulation without debugging. Markdown: https://gitdiagram.com/genymobile/scrcpy.md
20. [github/spec-kit](https://gitdiagram.com/github/spec-kit) (147k stars, Python): Spec Kit is a Python CLI and toolkit for configuring coding-agent projects and supplying reusable development processes. Markdown: https://gitdiagram.com/github/spec-kit.md
21. [nextlevelbuilder/ui-ux-pro-max-skill](https://gitdiagram.com/nextlevelbuilder/ui-ux-pro-max-skill) (142k stars, Python): UI UX Pro Max combines a design-intelligence skill, a multi-assistant installer CLI, and a browsable style gallery. Markdown: https://gitdiagram.com/nextlevelbuilder/ui-ux-pro-max-skill.md
22. [graphify-labs/graphify](https://gitdiagram.com/graphify-labs/graphify) (142k stars, Python): Graphify is a local code and document knowledge-graph builder with CLI and assistant integrations. Markdown: https://gitdiagram.com/graphify-labs/graphify.md
23. [ytdl-org/youtube-dl](https://gitdiagram.com/ytdl-org/youtube-dl) (141k stars, Python): youtube-dl is a command-line and embeddable downloader that turns supplied URLs or search terms into selected media files. Markdown: https://gitdiagram.com/ytdl-org/youtube-dl.md
24. [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
25. [ggml-org/llama.cpp](https://gitdiagram.com/ggml-org/llama.cpp) (133k stars, C++): llama.cpp is a C/C++ runtime for local and cloud LLM and VLM inference. Markdown: https://gitdiagram.com/ggml-org/llama.cpp.md
26. [shadcn-ui/ui](https://gitdiagram.com/shadcn-ui/ui) (124k stars, TypeScript): shadcn/ui is an open-source, copy-into-your-project component ecosystem: a CLI installs, customizes, migrates, and publishes registry content; a documentation site exposes… Markdown: https://gitdiagram.com/shadcn-ui/ui.md
27. [tauricresearch/tradingagents](https://gitdiagram.com/tauricresearch/tradingagents) (121k stars, Python): TradingAgents is a multi-agent financial analysis and trading-decision framework, exposed through a CLI and package API. Markdown: https://gitdiagram.com/tauricresearch/tradingagents.md
28. [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
29. [jaywcjlove/awesome-mac](https://gitdiagram.com/jaywcjlove/awesome-mac) (115k stars, Swift): This repository is a curated directory of Mac apps and developer tools, presented as Markdown lists and exposed as localized JSON and feed files. Markdown: https://gitdiagram.com/jaywcjlove/awesome-mac.md
30. [thedotmack/claude-mem](https://gitdiagram.com/thedotmack/claude-mem) (115k stars, TypeScript): Claude-Mem is a persistent memory system for coding agents: it captures work, turns it into searchable observations, and supplies relevant context to later sessions. Markdown: https://gitdiagram.com/thedotmack/claude-mem.md
31. [instructkr/claw-code](https://gitdiagram.com/instructkr/claw-code) (113k stars, Rust): 1. This repo has two distinct layers Markdown: https://gitdiagram.com/instructkr/claw-code.md
32. [tauri-apps/tauri](https://gitdiagram.com/tauri-apps/tauri) (113k stars, Rust): Tauri is a cross-platform framework for desktop and mobile apps whose frontend runs in a system WebView and communicates with a Rust application backend. Markdown: https://gitdiagram.com/tauri-apps/tauri.md
33. [microsoft/typescript](https://gitdiagram.com/microsoft/typescript) (112k stars, Go): TypeScript is a language compiler and tooling platform: users compile JavaScript/TypeScript projects into JavaScript and receive diagnostics, while editors use its language… Markdown: https://gitdiagram.com/microsoft/typescript.md
34. [openai/whisper](https://gitdiagram.com/openai/whisper) (110k stars, Python): Whisper is a speech-recognition and speech-translation package. Markdown: https://gitdiagram.com/openai/whisper.md
35. [panniantong/agent-reach](https://gitdiagram.com/panniantong/agent-reach) (110k stars, Python): Agent Reach is a command-line bridge that lets AI agents search and read supported web platforms through normalized channel actions. Markdown: https://gitdiagram.com/panniantong/agent-reach.md
36. [denoland/deno](https://gitdiagram.com/denoland/deno) (109k stars, Rust): Deno is a secure-by-default JavaScript, TypeScript, and WebAssembly runtime, with a CLI and substantial developer tooling. Markdown: https://gitdiagram.com/denoland/deno.md
37. [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
38. [google-gemini/gemini-cli](https://gitdiagram.com/google-gemini/gemini-cli) (107k stars, TypeScript): Gemini CLI is a terminal-based AI coding agent. Markdown: https://gitdiagram.com/google-gemini/gemini-cli.md
39. [pbakaus/impeccable](https://gitdiagram.com/pbakaus/impeccable) (106k stars, Rust): Impeccable equips coding agents to steer and review interface design, while also providing deterministic design detection and browser-based iteration. Markdown: https://gitdiagram.com/pbakaus/impeccable.md
40. [microsoft/terminal](https://gitdiagram.com/microsoft/terminal) (105k stars, C++): This repository contains Windows Terminal, the Windows console host, and shared console/terminal infrastructure. Markdown: https://gitdiagram.com/microsoft/terminal.md
41. [react/create-react-app](https://gitdiagram.com/react/create-react-app) (103k stars, JavaScript): 1. This repository is a monorepo for the Create React App toolchain, not a single application. Markdown: https://gitdiagram.com/react/create-react-app.md
42. [neovim/neovim](https://gitdiagram.com/neovim/neovim) (103k stars, Vim Script): Neovim is a modal text editor whose main workflow is opening and editing files through its command-line application, then presenting the result through a terminal or attached UI. Markdown: https://gitdiagram.com/neovim/neovim.md
43. [angular/angular](https://gitdiagram.com/angular/angular) (101k stars, TypeScript): Angular is a TypeScript/JavaScript platform for building web applications. Markdown: https://gitdiagram.com/angular/angular.md
44. [tailwindlabs/tailwindcss](https://gitdiagram.com/tailwindlabs/tailwindcss) (97.8k stars, TypeScript): Tailwind CSS is a utility-first CSS framework. Markdown: https://gitdiagram.com/tailwindlabs/tailwindcss.md
45. [microsoft/playwright](https://gitdiagram.com/microsoft/playwright) (97k stars, TypeScript): Playwright is a cross-browser automation and testing framework, also used for scripts and AI-agent workflows. Markdown: https://gitdiagram.com/microsoft/playwright.md
46. [oven-sh/bun](https://gitdiagram.com/oven-sh/bun) (96.2k stars, Rust): Bun is a single-executable JavaScript/TypeScript toolkit: its principal user workflow is invoking bun to run an app or script, with built-in package management, bundling, and… Markdown: https://gitdiagram.com/oven-sh/bun.md
47. [vllm-project/vllm](https://gitdiagram.com/vllm-project/vllm) (96.1k stars, Python): vLLM is an LLM inference and serving system. Markdown: https://gitdiagram.com/vllm-project/vllm.md
48. [localsend/localsend](https://gitdiagram.com/localsend/localsend) (95.6k stars, Dart): LocalSend is a cross-platform nearby-device sharing product: users discover peers on the local network, select a peer and files or a message, then send or accept a transfer. Markdown: https://gitdiagram.com/localsend/localsend.md
49. [sherlock-project/sherlock](https://gitdiagram.com/sherlock-project/sherlock) (94.6k stars, Python): Sherlock is a username-discovery CLI that checks usernames across hundreds of social networks. Markdown: https://gitdiagram.com/sherlock-project/sherlock.md
50. [d4vinci/scrapling](https://gitdiagram.com/d4vinci/scrapling) (93.8k stars, Python): Scrapling is a web-scraping framework: users fetch static or browser-rendered pages, parse and extract content, or scale the same work into concurrent spiders with session… Markdown: https://gitdiagram.com/d4vinci/scrapling.md

Next page: https://gitdiagram.com/architecture-examples/cli-tools/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.
