Skills Plugins MCP Prompt Model 导航 博客 资讯 我的中心
工具与能力 #deepseek#deepwiki#dsh-plugin#grok#okf-format

deepwiki-rs

Turn code into clarity. Generate accurate technical docs and AI-ready context in minutes—perfectly structured for human teams and intelligent agents.

sopaco @sopaco ⬇ 1 ★ 2,900 Rust

安装

dsh plugin add github:sopaco/deepwiki-rs
下载安装清单

需要可复现安装时,可在仓库后追加 #commit 固定提交。

Turn code into clarity. Generate accurate technical docs and AI-ready context in minutes—perfectly structured for human teams and intelligent agents.

该插件未提供要点说明,请参考仓库 README。

deepseekdeepwikidsh-plugingrokokf-format
  1. 安装并启动 DeepSeek Harness:npx @deepseek-ai/dsh web
  2. 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
  3. 用 dsh plugins list 确认已安装,必要时重启 Harness 生效

插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。

代码仓库github.com/sopaco/deepwiki-rs
许可证MIT
主要语言Rust
下载量1
GitHub 星标2,900
最近推送2026-09-14
收录日期2026-09-19
分类工具与能力

事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。

以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。

Litho (deepwiki-rs)

    English
    |
    中文

💪🏻 High-performance AI-driven intelligent document generator (DeepWiki-like) built with Rust

📚 Automatically generates high quality Repo-Wiki for any codebase

  [图片: Litho Docs]

  [图片: Litho Docs]

  [图片: GitHub Actions Workflow Status]

  [图片: sopaco%2Fdeepwiki-rs | Trendshift]

  [图片: sopaco%2Fdeepwiki-rs | Trendshift]

🚀 Litho has evolved into Terrain — give your AI agents a living map of your codebase.

  [图片: Terrain — agent environment managements]

  [图片: Terrain — engineering knowledge assets]

On top of Litho: knowledge base stays in sync with code · broader language & framework support · mainstream agents (Claude Code, Codex, DeepSeek Harness…) read it via ACP · Litho Book built in.

Check out Terrain →  ·  Litho stays the fast, focused C4 doc generator.

👋 What's Litho

Litho is an AI-powered documentation generation engine that automatically analyzes your source code and generates comprehensive, professional architecture documentation in the C4 model format. No more manual documentation that falls behind code changes - Litho keeps your documentation perfectly in sync with your codebase.

Litho transforms raw code into beautifully structured documentation with context diagrams, container diagrams, component diagrams, and code-level documentation - all automatically generated from your source code.

Whether you're a developer, architect, or technical lead, Litho eliminates the burden of maintaining documentation and ensures your team always has accurate, up-to-date architectural information.

  Transform your codebase into professional architecture documentation in minutes

      Before Litho
      After Litho

Manual Documentation

Outdated, incomplete, or missing documentation

Manual updates that fall behind code changes

Inconsistent formatting and structure

Time-consuming to maintain

Hard to navigate and understand

Usually just a few markdown files

AI-Generated Documentation

Automatically generated from codebase

Always up-to-date with code changes

Professional C4 model structure

Consistent formatting and styling

Easy to navigate and understand

Complete with diagrams, context, and relationships

  🚀 Litho automatically transforms your messy codebase into beautiful, professional documentation

😺 Why use Litho

Automatically keep documentation in sync with codebase changes - no more outdated docs

Save hundreds of hours on manual documentation creation and maintenance

Improve onboarding for new team members with comprehensive, up-to-date documentation

Enhance code reviews by providing clear architectural context

Meet compliance requirements with auditable, automated documentation

Support for multiple programming languages (Rust, Python, Java, Go, C#, JavaScript, etc.)

Generate professional C4 model diagrams with context, containers, components, and code

Integrate with CI/CD pipelines to automatically generate documentation on every commit

🌟 For:

Development teams of all sizes

Open source projects

Enterprise software developers

Anyone who hates maintaining outdated docs!

❤️ Like Litho? Star it 🌟 or Sponsor Me! ❤️

Thanks to the kind people

[图片: Stargazers repo roster for @sopaco/deepwiki-rs]

🌠 Features & Capabilities

Core Capabilities

AI-driven architecture documentation generation from codebase analysis

Automatic C4 model diagram creation (Context, Container, Component, Code)

Intelligent extraction of code comments, structures, and relationships

Multi-language support for various programming languages

Customizable template system for documentation output

Advanced Features

External Knowledge Integration - Mount external documentation (PDF, Markdown, SQL, etc.) as knowledge sources for enhanced analysis

Database Documentation - Auto-generate database schema documentation with ERD diagrams for SQL projects

Git history analysis for tracking architectural evolution

Cross-referencing between code elements and documentation

Interactive documentation with embedded diagrams and examples

Integration with CI/CD pipelines for automated documentation generation

💡 Problem Solved

Litho solves the common problem of outdated and incomplete technical documentation by automatically generating up-to-date architecture documentation from your source code. No more manual documentation that falls behind code changes - Litho keeps your documentation in sync with your codebase.

🌐 Litho Eco Ecosystem

Litho is part of a broader ecosystem of tools designed to enhance developer productivity and documentation quality. The Litho Eco ecosystem includes complementary tools that work seamlessly with Litho to provide a complete documentation workflow:

📘 Litho Book

Litho Book is a high-performance markdown reader built with Rust and Axum, specifically designed to provide an elegant interface for browsing documentation generated by Litho.

Key Features

Real-time markdown rendering with syntax highlighting

Full Mermaid chart support for architectural diagrams

Intelligent search with fuzzy matching for files and content

High-performance architecture with low memory usage

AI Intelligent Document Interpretation, Answering Questions

🌠 Snapshots

      [图片: snapshot-1]

      [图片: snapshot-2]

Integration with Litho

Litho Book serves as the ideal companion application for consuming documentation generated by Litho. The typical workflow is:

Use Litho to generate documentation from your codebase

Use Litho Book to browse and explore the generated documentation with an elegant interface

Learn more about Litho Book

🔧 Mermaid Fixer

Mermaid Fixer is a high-performance AI-driven tool that automatically detects and fixes syntax errors in Mermaid diagrams within Markdown files.

Key Features

Automated scanning of directories for Markdown files

Precise detection of Mermaid syntax errors using JS sandbox validation

AI-powered intelligent fixing with LLM integration

Comprehensive reporting of before/after changes

Flexible configuration with support for multiple LLM providers

Integration with Litho

Mermaid Fixer enhances the quality of documentation generated by Litho by automatically fixing syntax errors in Mermaid diagrams. This ensures that all architectural diagrams in your documentation are valid and render correctly.

👀 Snapshots

      [图片: snapshot-1]

      [图片: snapshot-2]

Learn more about Mermaid Fixer

🤖Agent Skills

Run in Smithery! [图片: Run in Smithery]

🧠 How it works

[图片: zread]

Four-Stage Processing Pipeline

Litho's architecture is designed around a four-stage processing pipeline that transforms raw code into comprehensive documentation:

flowchart TD
    A[Input: Source Code Repository] --> B[Phase 1: Preprocessing]
    B --> C[Phase 2: Intelligent Research & Analysis]
    C --> D[Phase 3: Documentation Generation]
    D --> E[Phase 4: Verification & Enhancement]
    E --> F[Output: High-Quality Technical Documentation]

    subgraph Preprocessing Phase
        B1[Code Scanning & Discovery]
        B2[Multi-Language Syntax Analysis]
        B3[Structure & Dependency Extraction]
        B4[Code Insight Generation]
        B5[Agent Memory Chunk Initialization]
        B --> B1 --> B2 --> B3 --> B4 --> B5
    end

    subgraph Intelligent Research & Analysis Phase
        C1[System Context Researcher]
        C2[Domain Module Detector]
        C3[Workflow Researcher]
        C4[Boundary Analyzer]
        C5[Key Module Insight Officer]
        C6[Agent Memory Chunk Read/Write]
        C7[ReAct Reasoning Loop]
        C --> C1 --> C2 --> C3 --> C4 --> C5 --> C6 --> C7
    end

    subgraph Documentation Generation Phase
        D1[Overview Documentation Editor]
        D2[Architecture Documentation Editor]
        D3[Workflow Documentation Editor]
        D4[Boundary Documentation Editor]
        D5[Key Module Editor]
        D6[Agent Memory Chunk Reading]
        D7[High-Quality Documentation Assembly]
        D --> D1 --> D2 --> D3 --> D4 --> D5 --> D6 --> D7
    end

    subgraph Verification & Enhancement Phase
        E1[Mermaid Syntax Verification]
        E2[Documentation Integrity Check]
        E3[Diagram Auto-Repair]
        E4[Quality Report Generation]
        E5[Final Documentation Output]
        E --> E1 --> E2 --> E3 --> E4 --> E5
    end

    style B fill:#e3f2fd,stroke:#1976d2
    style C fill:#f3e5f5,stroke:#7b1fa2
    style D fill:#e8f5e8,stroke:#388e3c
    style E fill:#fff3e0,stroke:#e65100

Preprocessing Stage

Litho begins by scanning your entire codebase to identify source files, extract metadata, and analyze project structure. This stage:

Discovers all source code files across multiple languages

Parses file structures and identifies key components

Extracts comments, documentation strings, and code annotations

Identifies dependencies between modules and components

Builds a comprehensive representation of your codebase

flowchart TD
A[Preprocessing Agent] --> B[Structure Extractor]
A --> C[Original Document Extractor]
A --> D[Code Analysis Agent]
A --> E[Relationship Analysis Agent]
B --> F[Project Structure]
C --> G[Original Document Materials]
D --> H[Core Code Insights]
E --> I[Code Dependencies]
F --> J[Store to Memory]
G --> J
H --> J
I --> J

Research Stage

In this AI-powered stage, Litho analyzes the code structure to understand the architectural intent:

Applies machine learning models to identify patterns and relationships

Infers architectural roles from code structure and naming conventions

Determines component boundaries and service responsibilities

Maps dependencies and data flow between components

Identifies potential architectural smells and anti-patterns

Generates context-aware documentation for each component

flowchart TD
A[Research Orchestrator] --> B[SystemContext Researcher]
A --> C[Domain Module Detector]
A --> D[Architecture Researcher]
A --> E[Workflow Researcher]
A --> F[Key Module Insights]
B --> G[System Context Report]
C --> H[Domain Module Report]
D --> I[Architecture Analysis Report]
E --> J[Workflow Analysis Report]
F --> K[Module Deep Insights]
G --> Memory
H --> Memory
I --> Memory
J --> Memory
K --> Memory

Composition and Output Stage

Litho combines the analyzed information into a structured documentation format:

Generates C4 model diagrams (Context, Container, Component, Code)

Creates hierarchical documentation structure with clear navigation

Embeds relevant code examples and explanations

Applies consistent styling and formatting across all documentation

Adds cross-references between related components and diagrams

flowchart TD
A[Document Composer] --> B[Overview Editor]
A --> C[Architecture Editor]
A --> D[Module Insight Editor]
B --> E[Overview Document]
C --> F[Architecture Document]
D --> G[Module Documents]
E --> H[Document Tree]
F --> H
G --> H
H --> I[Disk Outlet]
I --> J[Output Directory]

Validation and Enhancement Stage

The final stage ensures documentation quality and completeness:

Validates diagram syntax and consistency

Checks for completeness of documentation coverage

Identifies gaps in documentation and suggests improvements

Integrates with Mermaid Fixer to ensure all diagrams render correctly

Generates statistics and reports on documentation coverage

Creates an index and table of contents for easy navigation

🏗️ Architecture Overview

Litho features a sophisticated modular architecture designed for high performance, extensibility, and intelligent analysis. The system implements a multi-stage workflow with specialized AI agents and comprehensive caching mechanisms.

graph LR
    subgraph Input Phase
        A[CLI Startup] --> B[Load Configuration]
        B --> C[Scan Structure]
        C --> D[Extract README]
    end
    subgraph Analysis Phase
        D --> E[Language Parsing]
        E --> F[AI-Enhanced Analysis]
        F --> G[Store in Memory]
    end
    subgraph Reasoning Phase
        G --> H[Orchestrator Startup]
        H --> I[System Context Analysis]
        H --> J[Domain Module Detection]
        H --> K[Workflow Analysis]
        H --> L[Key Module Insights]
        I --> M[Store in Memory]
        J --> M
        K --> M
        L --> M
    end
    subgraph Orchestration Phase
        M --> N[Orchestration Hub Startup]
        N --> O[Generate Project Overview]
        N --> P[Generate Architecture Diagram]
        N --> Q[Generate Workflow Documentation]
        N --> R[Generate Module Insights]
        O --> S[Write to DocTree]
        P --> S
        Q --> S
        R --> S
    end
    subgraph Output Phase
        S --> T[Persist Documents]
        T --> U[Generate Summary Report]
    end

Core Modules

Litho's architecture consists of several interconnected modules that work together to deliver seamless documentation generation:

Code Scanner: Discovers and analyzes source code files across multiple languages

Language Parser: Extracts structural information from code using language-specific parsers

Architecture Analyzer: AI-powered component that infers architectural patterns and relationships

Diagram Generator: Creates C4 model diagrams using Mermaid syntax

Documentation Formatter: Structures content into organized, navigable documentation

Core Process

The core processing flow follows a deterministic pipeline:

Scan - Discover and analyze source code files

Parse - Extract structural and semantic information

Analyze - Apply AI models to infer architecture and relationships

Generate - Create diagrams and documentation content

Format - Structure content into organized documentation

Export - Output in desired format(s)

sequenceDiagram
participant Main as main.rs
participant Workflow as workflow.rs
participant Context as GeneratorContext
participant Preprocess as PreProcessAgent
participant Research as ResearchOrchestrator
participant Doc as DocumentationOrchestrator
participant Outlet as DiskOutlet
Main->>Workflow : launch(config)
Workflow->>Context : Create context (LLM, Cache, Memory)
Workflow->>Preprocess : execute(context)
Preprocess->>Context : Store project structure and metadata
Context-->>Workflow : Preprocessing complete
Workflow->>Research : execute_research_pipeline(context)
Research->>Research : Execute multiple research agents in parallel
loop Each Research Agent
Research->>StepForwardAgent : execute(context)
StepForwardAgent->>Context : Validate data sources
StepForwardAgent->>AgentExecutor : Call prompt or extract
AgentExecutor->>LLMClient : Initiate LLM request
LLMClient->>CacheManager : Check cache
alt Cache hit
CacheManager-->>LLMClient : Return cached result
else Cache miss
LLMClient->>LLM : Call LLM API
LLM-->>LLMClient : Return raw response
LLMClient->>CacheManager : Store result to cache
end
LLMClient-->>AgentExecutor : Return processed result
AgentExecutor-->>StepForwardAgent : Return result
StepForwardAgent->>Context : Store result to Memory
end
Research-->>Workflow : Research complete
Workflow->>Doc : execute(context, doc_tree)
Doc->>Doc : Call multiple composition agents to generate docs
Doc-->>Workflow : Documentation generation complete
Workflow->>Outlet : save(context)
Outlet-->>Workflow : Storage complete
Workflow-->>Main : Process finished

🖥 Getting Started

Prerequisites

Rust (version 1.70 or later)

Cargo

Installation

Option 1: Install from crates.io (Recommended)

cargo install deepwiki-rs

Option 2: Build from Source

Clone the repository:
 git clone https://github.com/sopaco/deepwiki-rs.git

Navigate to the project directory:
 cd deepwiki-rs

Build the project:
 cargo build --release

The compiled binary will be available in the target/release directory.

🚀 Usage

Litho provides a simple command-line interface to generate documentation from your codebase. For more configuration parameters, refer to the CLI Options Detail.

Basic Command

deepwiki-rs -p ./my-project -o ./docs

# Generate documentation in the target language.
deepwiki-rs --target-language en -p ./my-project

deepwiki-rs --target-language ja -p ./my-project

This command will:

Scan all files in ./my-project

Analyze the code structure and relationships

Generate comprehensive C4 architecture documentation

Save the output to ./litho.docs directory

Documentation Generation

Litho supports several options for generating documentation:

# Generate documentation with default settings
deepwiki-rs skip certain processing stages in the generation workflow
deepwiki-rs --skip-preprocessing --skip-research

Advanced Options

# Turn off ReAct Mode to avoid auto-scanning project files via tool-calls
deepwiki-rs -p ./src --disable-preset-tools --llm-api-base-url <your llm provider base-api> --llm-api-key <your api key> --model-efficient GPT-5-mini

# Set up both the efficient model and the powerful model simultaneously
deepwiki-rs -p ./src --model-efficient GPT-5-mini --model-poweruful GPT-5-Pro --llm-api-base-url <your llm provider base-api> --llm_api_key <your api key> --model-efficient GPT-5-mini

📚 External Knowledge Integration

Litho supports mounting external documentation as knowledge sources to enhance generated documentation with business context and architectural decisions.

Supported Document Types

PDF - Architecture diagrams, design documents

Markdown - Technical documentation, ADRs

SQL - Database schema files

YAML/JSON - API specifications (OpenAPI), configurations

Text - Plain text documentation

Knowledge Categories

Documents are organized into categories for targeted delivery to specific agents:

architecture - System architecture and C4 model docs

database - Schema, ERD, and data model documentation

api - API specifications and endpoint docs

deployment - Infrastructure and DevOps documentation

adr - Architecture Decision Records

workflow - Business processes and workflows

general - Uncategorized general documentation

Sync Knowledge Command

# Sync external knowledge sources (processes and caches local docs)
deepwiki-rs sync-knowledge

# Force sync even if cache is fresh
deepwiki-rs sync-knowledge --force

Configuration Example (litho.toml)

[knowledge.local_docs]
enabled = true
cache_dir = ".litho/cache/knowledge/local_docs"
watch_for_changes = true

# Default chunking for large documents
[knowledge.local_docs.default_chunking]
enabled = true
max_chunk_size = 8000
chunk_overlap = 200
strategy = "semantic"  # Options: semantic, paragraph, fixed
min_size_for_chunking = 10000

# Architecture documentation category
[[knowledge.local_docs.categories]]
name = "architecture"
description = "System architecture documentation"
paths = [
    "docs/architecture/**/*.md",
    "docs/design/**/*.pdf"
]
target_agents = [
    "SystemContextResearcher",
    "ArchitectureResearcher",
    "ArchitectureEditor"
]

# Database documentation category
[[knowledge.local_docs.categories]]
name = "database"
description = "Database schema documentation"
paths = [
    "docs/database/**/*.md",
    "docs/schema/**/*.sql"
]
target_agents = [
    "ArchitectureResearcher",
    "DomainModulesDetector",
    "KeyModulesInsight"
]

🗄️ Database Documentation

Litho automatically analyzes SQL database projects (.sqlproj) and SQL files to generate comprehensive database documentation including:

Database Projects - SQL Server project structure

Tables - Schema, columns, data types, constraints, primary keys

Views - View definitions and referenced tables

Stored Procedures - Parameters, operations, accessed tables

Functions - Scalar and table-valued functions

Relationships - Foreign keys and implicit references (with ERD diagrams)

Data Flows - ETL operations and data movement patterns

Database Analysis Features

📊 Database code distribution: Projects(2) SQL Files(15) DAO(3)
✅ Database overview analysis completed:
   - Database projects: 2 items
   - Tables: 12 items
   - Views: 5 items
   - Stored procedures: 8 items
   - Functions: 3 items
   - Table relationships: 6 items
   - Data flows: 4 items
   - Confidence: 8.5/10

Generated Database Documentation

The database documentation is automatically included in the output as 6.Database-Overview.md with:

Summary statistics table

Detailed table schemas with column definitions

Mermaid ER diagrams showing relationships

Stored procedure documentation

Data flow descriptions

📁 Output Structure

Litho generates a well-organized documentation structure:

project-docs/
├── 1. Project Overview      # Project overview, core functionality, technology stack
├── 2. Architecture Overview # Overall architecture, core modules, module breakdown
├── 3. Workflow Overview     # Overall workflow, core processes
├── 4. Deep Dive/            # Detailed technical topic implementation documentation
│   ├── Topic1.md
│   ├── Topic2.md
├── 5. Boundary-Interfaces   # API endpoints, external integrations
├── 6. Database-Overview     # Database schema, tables, relationships (SQL projects only)

🤝 Contribute

We welcome all forms of contributions! Report bugs or submit feature requests through GitHub Issues.

Ways to Contribute

Language Support: Add support for additional programming languages

Template Creation: Design new documentation templates and styles

Diagram Enhancements: Improve Mermaid diagram generation algorithms

Performance Optimization: Enhance processing speed and memory usage

Test Coverage: Add comprehensive test cases for various code patterns

Documentation: Improve project documentation and usage guides

Bug Fixes: Help identify and fix issues in the codebase

Development Contribution Process

Fork this project

Create a feature branch (git checkout -b feature/amazing-feature)

Commit your changes (git commit -m 'Add some amazing feature')

Push to the branch (git push origin feature/amazing-feature)

Create a Pull Request

🪪 License

MIT. A copy of the license is provided in the LICENSE file.

👨 About Me

🚀 Help me develop this software better by sponsoring on GitHub

An experienced internet veteran, having navigated through the waves of PC internet, mobile internet, and AI applications. Starting from an individual mobile application developer to a professional in the corporate world, I possess rich experience in product design and research and development. Currently, I am employed at Kuaishou, focusing on the R&D of universal front-end systems and AI exploration.

GitHub: sopaco

FAQ

What is Litho (deepwiki-rs)?

Litho is an AI-powered documentation generation engine built with Rust. It automatically analyzes your source code and generates comprehensive, professional architecture documentation in the C4 model format.

What programming languages does Litho support?

Litho supports multiple programming languages including Rust, Python, Java, Go, C#, JavaScript, and more.

What is C4 model?

C4 model is a software architecture documentation approach with four levels:

Context diagram (system context)

Container diagram (system containers)

Component diagram (container components)

Code diagram (component implementation)

How do I install Litho?

cargo install deepwiki-rs

Or build from source:

git clone https://github.com/sopaco/deepwiki-rs
cargo build --release

Can Litho integrate with CI/CD?

Yes, Litho can integrate with CI/CD pipelines to automatically generate documentation on every commit.

Why use Litho instead of manual documentation?

Automatically keeps documentation in sync with codebase

Saves hundreds of hours on manual maintenance

Professional C4 model structure

Consistent formatting and styling

Easy to navigate and understand

Where can I get help?

Documentation: https://github.com/sopaco/deepwiki-rs/tree/main/docs

GitHub Issues: https://github.com/sopaco/deepwiki-rs/issues

数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。