Skip to content

CodeBoarding/CodeBoarding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

339 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeBoarding

See what your AI is building before it breaks.

CodeBoarding gives developers and coding agents a visual map of a codebase. It combines static analysis with LLM reasoning to generate architecture diagrams, component-level documentation, and navigable outputs you can use in your IDE, CI, and docs.

Website · Open VSX extension · Explore examples · VS Code extension · GitHub Action ·Discord

CodeBoarding demo

Install the extension from Open VSX.

JavaScript TypeScript Java Python Go PHP

Few use cases:

  • Keep architecture visible while agents code.
  • Review AI-generated changes with system context before they turn into hidden debt.
  • Understand large repositories faster with layered diagrams and component breakdowns.
  • Share the same visual model across local workflows, IDEs, pull requests, and docs.

What CodeBoarding generates

  • High-level system architecture diagrams.
  • Deeper component diagrams for important subsystems.
  • Markdown documentation in .codeboarding/.
  • Mermaid output that is easy to embed in docs and PRs.
  • Incremental updates when only part of the codebase changes.

How it works

graph LR
    Application_Orchestrator_Repository_Manager["Application Orchestrator & Repository Manager"]
    LLM_Agent_Core["LLM Agent Core"]
    Static_Code_Analyzer["Static Code Analyzer"]
    Agent_Tooling_Interface["Agent Tooling Interface"]
    Incremental_Analysis_Engine["Incremental Analysis Engine"]
    Documentation_Diagram_Generator["Documentation & Diagram Generator"]
    Application_Orchestrator_Repository_Manager -- "Orchestrator initiates analysis workflow, leveraging incremental updates based on detected code changes." --> Incremental_Analysis_Engine
    Application_Orchestrator_Repository_Manager -- "Orchestrator passes project context and triggers the main analysis workflow for the LLM Agent." --> LLM_Agent_Core
    Incremental_Analysis_Engine -- "Incremental engine requests static analysis for specific code segments (new or changed)." --> Static_Code_Analyzer
    Static_Code_Analyzer -- "Static analyzer provides analysis results to the incremental engine for caching." --> Incremental_Analysis_Engine
    LLM_Agent_Core -- "LLM Agent invokes specialized tools to interact with the codebase and analysis data." --> Agent_Tooling_Interface
    Agent_Tooling_Interface -- "Agent tools query the static analysis engine for detailed code insights." --> Static_Code_Analyzer
    Static_Code_Analyzer -- "Static analysis engine provides requested data to the agent tools." --> Agent_Tooling_Interface
    LLM_Agent_Core -- "LLM Agent delivers structured analysis insights for documentation and diagram generation." --> Documentation_Diagram_Generator
    click Application_Orchestrator_Repository_Manager href "https://github.com/CodeBoarding/CodeBoarding/blob/main/.codeboarding/Application_Orchestrator_Repository_Manager.md" "Details"
    click LLM_Agent_Core href "https://github.com/CodeBoarding/CodeBoarding/blob/main/.codeboarding/LLM_Agent_Core.md" "Details"
    click Static_Code_Analyzer href "https://github.com/CodeBoarding/CodeBoarding/blob/main/.codeboarding/Static_Code_Analyzer.md" "Details"
    click Agent_Tooling_Interface href "https://github.com/CodeBoarding/CodeBoarding/blob/main/.codeboarding/Agent_Tooling_Interface.md" "Details"
    click Incremental_Analysis_Engine href "https://github.com/CodeBoarding/CodeBoarding/blob/main/.codeboarding/Incremental_Analysis_Engine.md" "Details"
    click Documentation_Diagram_Generator href "https://github.com/CodeBoarding/CodeBoarding/blob/main/.codeboarding/Documentation_Diagram_Generator.md" "Details"
Loading

For a deeper architecture walkthrough, see .codeboarding/overview.md.

Quick start

Run from source

uv sync --frozen
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
python install.py
python main.py --local /path/to/repo

Use the packaged CLI

pip install codeboarding
codeboarding-setup
codeboarding --local /path/to/repo

Output is written to /path/to/repo/.codeboarding/.

python install.py and codeboarding-setup download language server binaries to ~/.codeboarding/servers/, shared across projects. npm is required for Python, TypeScript, JavaScript, and PHP language servers; if it is missing, setup can install it via nodeenv.

Configuration

On first run, CodeBoarding creates ~/.codeboarding/config.toml. Set one provider there or use environment variables.

[provider]
# openai_api_key            = "sk-..."
# anthropic_api_key         = "sk-ant-..."
# google_api_key            = "AIza..."
# vercel_api_key            = "vck_..."
# aws_bearer_token_bedrock  = "..."
# ollama_base_url           = "http://localhost:11434"
# openrouter_api_key        = "sk-..."

[llm]
# agent_model   = "gemini-3-flash"
# parsing_model = "gemini-3-flash"

Shell environment variables such as OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, and OLLAMA_BASE_URL take precedence over the config file. For private repositories, set GITHUB_TOKEN in your environment.

Common commands

# Analyze a local repository
python main.py --local ./my-project

# Increase diagram depth
python main.py --local ./my-project --depth-level 2

# Re-analyze only changed parts when possible
python main.py --local ./my-project --incremental

# Update a single component by ID
python main.py --local ./my-project --partial-component-id "1.2"

# Analyze a remote GitHub repository
python main.py https://github.com/pytorch/pytorch

Where to use it

Supported stack

  • Languages: Python, TypeScript, JavaScript, Java, Go, PHP.
  • LLM providers: OpenAI, Anthropic, Google, Vercel AI Gateway, AWS Bedrock, Ollama, OpenRouter, and more.

Examples

Contributing

If you want to improve CodeBoarding, open an issue or send a pull request. We welcome improvements to analysis quality, output generators, integrations, and developer experience.

Vision

CodeBoarding is building an open standard for code understanding: a visual, accurate, high-level representation of a codebase that both humans and agents can use.