GitDiagram
Browse

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%.

In the 200 most-starred diagrams
Has a command-line interface100%
Draws a data store61%
Has plugins or extensions31%
Split into workspace packages24%
Speaks MCP22%
Has an LLM or AI-model component20%

Repositories 1–50 of 1,000

  1. codecrafters-io/build-your-own-x★ 560k · Markdown

    This repository is a curated index of step-by-step guides for recreating technologies, not a runtime application.

  2. public-apis/public-apis★ 497k · Python

    This repository is a community-curated catalog of public APIs, not an API execution platform.

  3. morluto/rea★ 445k · TypeScript

    REA is a local reverse-engineering toolkit exposed through an MCP server and CLI.

  4. openclaw/openclaw★ 394k · 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…

  5. affaan-m/ecc★ 300k · JavaScript

    ECC is a harness-native agent engineering system: an operator starts or manages agent sessions, coordinates work across harnesses, and inspects session activity.

  6. deepseek-ai/deepseek-harness★ 277k · TypeScript

    DeepSeek Harness is a plugin-oriented agent harness with a local Web UI and Desktop host.

  7. nousresearch/hermes-agent★ 261k · 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…

  8. anomalyco/opencode★ 225k · TypeScript

    OpenCode is an open-source AI coding agent with terminal and desktop interfaces.

  9. yt-dlp/yt-dlp★ 197k · Python

    yt-dlp is a command-line audio/video downloader.

  10. ultraworkers/claw-code★ 195k · 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.

  11. instructkr/claude-code★ 195k · Rust

    Claw Code is a Rust CLI agent harness; the README identifies rust/ as its canonical runtime and src/ as a Python reference workspace.

  12. microsoft/markitdown★ 194k · Python

    MarkItDown is a Python toolkit that converts local files, streams, and web resources into Markdown for text-analysis and LLM workflows.

  13. ohmyzsh/ohmyzsh★ 190k · 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.

  14. ollama/ollama★ 185k · 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…

  15. affaan-m/everything-claude-code★ 178k · JavaScript

    - This is a cross-harness configuration and automation platform for AI coding tools, not a product app.

  16. f/prompts.chat★ 177k · MDX

    prompts.chat is an open-source AI prompt library and community platform, with companion tools for building, using, and learning about prompts.

  17. huggingface/transformers★ 168k · Python

    Transformers is a pretrained-model definition framework for inference and training across text, vision, audio, video, and multimodal tasks.

  18. msitarzewski/agency-agents★ 167k · 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.

  19. genymobile/scrcpy★ 152k · 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.

  20. github/spec-kit★ 147k · Python

    Spec Kit is a Python CLI and toolkit for configuring coding-agent projects and supplying reusable development processes.

  21. nextlevelbuilder/ui-ux-pro-max-skill★ 142k · Python

    UI UX Pro Max combines a design-intelligence skill, a multi-assistant installer CLI, and a browsable style gallery.

  22. graphify-labs/graphify★ 142k · Python

    Graphify is a local code and document knowledge-graph builder with CLI and assistant integrations.

  23. ytdl-org/youtube-dl★ 141k · Python

    youtube-dl is a command-line and embeddable downloader that turns supplied URLs or search terms into selected media files.

  24. openai/codex★ 133k · 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.

  25. ggml-org/llama.cpp★ 133k · C++

    llama.cpp is a C/C++ runtime for local and cloud LLM and VLM inference.

  26. shadcn-ui/ui★ 124k · 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…

  27. tauricresearch/tradingagents★ 121k · Python

    TradingAgents is a multi-agent financial analysis and trading-decision framework, exposed through a CLI and package API.

  28. earendil-works/pi★ 119k · TypeScript

    Pi is an extensible coding-agent harness with interactive, print/JSON, RPC, and TypeScript-SDK entry points.

  29. jaywcjlove/awesome-mac★ 115k · 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.

  30. thedotmack/claude-mem★ 115k · 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.

  31. instructkr/claw-code★ 113k · Rust

    1. This repo has two distinct layers

  32. tauri-apps/tauri★ 113k · 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.

  33. microsoft/typescript★ 112k · Go

    TypeScript is a language compiler and tooling platform: users compile JavaScript/TypeScript projects into JavaScript and receive diagnostics, while editors use its language…

  34. openai/whisper★ 110k · Python

    Whisper is a speech-recognition and speech-translation package.

  35. panniantong/agent-reach★ 110k · Python

    Agent Reach is a command-line bridge that lets AI agents search and read supported web platforms through normalized channel actions.

  36. denoland/deno★ 109k · Rust

    Deno is a secure-by-default JavaScript, TypeScript, and WebAssembly runtime, with a CLI and substantial developer tooling.

  37. juliusbrussee/caveman★ 108k · 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…

  38. google-gemini/gemini-cli★ 107k · TypeScript

    Gemini CLI is a terminal-based AI coding agent.

  39. pbakaus/impeccable★ 106k · Rust

    Impeccable equips coding agents to steer and review interface design, while also providing deterministic design detection and browser-based iteration.

  40. microsoft/terminal★ 105k · C++

    This repository contains Windows Terminal, the Windows console host, and shared console/terminal infrastructure.

  41. react/create-react-app★ 103k · JavaScript

    1. This repository is a monorepo for the Create React App toolchain, not a single application.

  42. neovim/neovim★ 103k · 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.

  43. angular/angular★ 101k · TypeScript

    Angular is a TypeScript/JavaScript platform for building web applications.

  44. tailwindlabs/tailwindcss★ 97.8k · TypeScript

    Tailwind CSS is a utility-first CSS framework.

  45. microsoft/playwright★ 97k · TypeScript

    Playwright is a cross-browser automation and testing framework, also used for scripts and AI-agent workflows.

  46. oven-sh/bun★ 96.2k · 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…

  47. vllm-project/vllm★ 96.1k · Python

    vLLM is an LLM inference and serving system.

  48. localsend/localsend★ 95.6k · 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.

  49. sherlock-project/sherlock★ 94.6k · Python

    Sherlock is a username-discovery CLI that checks usernames across hundreds of social networks.

  50. d4vinci/scrapling★ 93.8k · 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…

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. Stars are GitHub's when the diagram was last made. Rebuilt daily: hubs grow as more repositories' languages are known.