repowisecopilotkit/openbot

Architecture of copilotkit/openbot

copilotkit/openbot is 2,505 source files holding 26,286 symbols across 24 modules, written mainly in TypeScript, Rust, Python. The largest module is app, with 1,486 files, and 28 files are entry points into the dependency graph.

How openbot fits together

The browser interface in app is where people sign in, talk to their Bots, and manage connected apps, approvals and settings. Screens built from app/src/components call the query and mutation definitions in app/src/lib, and those definitions send every request through one client function. The desktop app in desktop wraps the same screens in a native window, and desktop/src-tauri/src/main.rs starts the Rust side, which talks to the React screens only through Tauri's invoke and listen calls. The shared directory holds the names and rules for tools, approvals, messages and prompts, so the app and the browser extension show the same wording. Each agent directory has an entry point such as agent-adk/src/main.py, and the OpenBot backend runs the workspace API, Bot computers, identity and permissions. The scripts directory contains the scripts that start a local OpenBot and connect it to CopilotKit Learning.

Largest modules

  • app: 1,486 files and 255,783 lines of code
  • desktop: 217 files and 153,779 lines of code
  • extension: 161 files and 56,838 lines of code
  • shared: 105 files and 14,117 lines of code
  • scripts: 72 files and 20,636 lines of code
  • mobile: 40 files and 4,496 lines of code
  • tests: 40 files and 9,177 lines of code
  • agent-claude-sdk: 25 files and 5,725 lines of code

Languages

By file count: TypeScript 2,038 files, Rust 106 files, Python 100 files, Shell 31 files, Dockerfile 15 files, JavaScript 6 files.

Documentation

Repowise documents openbot in 1,753 pages generated from the source, 18 of them written explanations of the repository and its modules. Module guides include:

  • app/src/lib/agents: Agent Summaries and AI Connection
  • app: App
  • app/src/routes/_authed: Authed
  • app/src/components/channels: Channel Chat and Work Views
  • app/src/lib/channels: Channel and Capability Services

More on openbot: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos