# Repository Briefing: HKUDS/DeepTutor
> Source: https://repoforai.com/repo/HKUDS/DeepTutor (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/HKUDS/DeepTutor
- **Official Docs / Website**: http://arxiv.org/abs/2604.26962
- **Category**: Chat UI & AI Apps (聊天界面与 AI 应用)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A+ (98/100 · Maintenance 35/35 · Adoption 23/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.7.5 (2026-12-03) — https://github.com/HKUDS/DeepTutor/releases
- **Review Snapshot**: 2026-12-02 (Note: v1.7.5 on 2026-12-03 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP
- **Momentum**: 65,487 ★ total (+152 24h / +1,631 7d) · 7,876 forks
- **Topics**: `ai-agents`, `ai-tutor`, `clawbot`, `cli-tool`, `deepresearch`, `interactive-learning`, `learning`, `multi-agent-systems`, `rag`
- **When to Use**: Best for: Learners and educators who want a self-hosted workspace that turns their own materials into cited tutoring, structured practice, and progress they can revisit. Skip if: You only need lightweight model chat, or need guaranteed offline operation without validating the model, retrieval, and tool stack yourself.

## Overview
```text
### Architecture & Core Mechanics
DeepTutor is a Python-based tutoring application with a shared agent runtime. Chat is the main entry point: within a thread, the tutor can ask clarifying questions, retrieve from selected libraries, read attachments, call tools or subagents, and write notebook records. Quiz, Research, Solve, Visualize, Reading, and Mastery Path share session context but retain distinct workflows. Materials and progress are organized by workspace, while Partners and personalization are account-scoped.

The root tree separates deeptutor/, deeptutor_cli/, and deeptutor_web/. The package uses setuptools, with dependencies including PyYAML, Jinja2, openai, tiktoken, aiohttp, and httpx. Personas, skills, MCP services, and CLI apps extend the shared runtime. Evaluate those integrations separately from core tutoring: their permissions and data paths depend on the tools you enable.

### Key Capabilities & Differentiators
DeepTutor's main strength is connecting source-based study with what happens after the chat. It supports versioned libraries built with LlamaIndex, PageIndex, GraphRAG, or LightRAG, plus external knowledge sources. Reading workflows cover documents, video, and audio with source-linked citations. Books, Practice, Mastery Path, and the learning notebook let users revisit material without having to reconstruct their study history from chat threads.

Chat offers toggleable tools such as web, paper, and Zotero search, plus GeoGebra analysis. Image and video generation require separately configured generation models. The app can consult Claude Code, Codex, or Grok CLI, import previous conversations, or use persistent Partners with their own memory, resources, and messaging channels. Memory Graph exposes editable L1 traces, L2 facts, and L3 synthesis with evidence links, so users can check what personalization is based on.

### Trade-offs & Limitations
Compared with a general-purpose self-hosted chat frontend, DeepTutor is a better fit when users need to revisit sources, track mastery, and turn reading into practice. For occasional model chat or PDF Q&A, a simpler frontend avoids maintaining learning workflows and choosing among retrieval backends. Pilot with your own PDFs and course material, checking citation quality and reindexing behavior before committing to a backend.

Remote inference reduces local compute requirements, but introduces provider costs and data-handling constraints. Local inference shifts sizing and maintenance to your team; model choice and concurrency drive compute needs, while the library adds indexing and storage work. Self-hosting the app does not keep all traffic local if web search, external agents, or hosted models remain enabled. Review those data paths and tool permissions before connecting sensitive materials.

### Hardware & Deployment Guide
For a local trial, ghcr.io/hkuds/deeptutor:latest serves the web app on 127.0.0.1:3782 and persists settings and local data in a named volume mounted at /app/data. For Compose, use scripts/docker_compose.py to render port mappings from system.json. Configure model providers in Web Settings or data/user/settings/model_catalog.json. When Ollama, LM Studio, or vLLM runs on the Docker host, use a host-reachable endpoint rather than container localhost; the Compose example uses host.docker.internal.

The full PyPI install, deeptutor[full], includes Web and CLI and requires Python 3.11–3.14 and Node.js 20.9+; bare deeptutor installs core chat and the SDK. macOS and Windows desktop previews bundle both runtimes. v1.7.0 introduced modular installation and resumable embedding checkpoints. v1.7.4 replaced the desktop runtime signing key after release credentials were exposed in GitHub Actions artifacts; desktop users on older builds should install the updated release.
```

## Key Capabilities
```text
- Session runtime: Chat, Solve, Quiz, Research, Visualize, Reading, and Mastery Path share context while keeping distinct workflows.
- Retrieval: Versioned libraries can use LlamaIndex, PageIndex, GraphRAG, or LightRAG; citations link back to sources.
- Memory: L1 traces, L2 facts, and L3 synthesis are inspectable and editable through Memory Graph, with evidence links for review.
- Workspace scope: Subject materials and progress are organized by workspace; Partners and personalization are account-scoped.
- Extensibility: Skills, personas, MCP services, and CLI apps extend the runtime; Chat can consult Claude Code, Codex, or Grok CLI.
- Container persistence: The Docker quickstart binds port 3782 to loopback and mounts a named volume at /app/data.
```

## Quick Start / Clone
```bash
docker run --rm --name deeptutor \
  -p 127.0.0.1:3782:3782 \
  -v deeptutor-data:/app/data \
  ghcr.io/hkuds/deeptutor:latest
```
