Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

update tag

Bingxi Zhao (Frank)1bb5e31d3457
diff --git a/.gitignore b/.gitignore
index 03eca4259..72f8baadd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,7 +10,7 @@ data/
run_code_workspace/
deeptutor/agents/question/reference_papers/
deeptutor/services/rag/eg_only_for_analysis/
-DeepTutor_arxiv-3/
+DeepTutor_arxiv-4/
# LaTeX build artifacts
*.aux
diff --git a/README.md b/README.md
index c6b5d731e..83a43633b 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,7 @@
[![License](https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square)](LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/HKUDS/DeepTutor?style=flat-square&color=brightgreen)](https://github.com/HKUDS/DeepTutor/releases)
[![GitHub last commit](https://img.shields.io/github/last-commit/HKUDS/DeepTutor?style=flat-square)](https://github.com/HKUDS/DeepTutor/commits)
+[![arXiv](https://img.shields.io/badge/arXiv-Coming_Soon-b31b1b?style=flat-square&logo=arxiv&logoColor=white)](#)
[![Discord](https://img.shields.io/badge/Discord-Community-5865F2?style=flat-square&logo=discord&logoColor=white)](https://discord.gg/eRsjPgMU4t)
[![Feishu](https://img.shields.io/badge/Feishu-Group-00D4AA?style=flat-square&logo=feishu&logoColor=white)](./Communication.md)
@@ -23,7 +24,7 @@
---
### πŸ“° News
-> **[2026.3.24]** Long time no see! ✨ DeepTutor v1.0.0 is finally here β€” an agent-native evolution featuring a lightweight refactor, TutorBot, and flexible mode switching under the Apache-2.0 license. A new chapter begins, and our story continues!
+> **[2026.4.4]** Long time no see! ✨ DeepTutor v1.0.0-beta.1 is finally here β€” an agent-native evolution featuring a ground-up architecture rewrite, TutorBot, and flexible mode switching under the Apache-2.0 license. A new chapter begins, and our story continues!
> **[2026.2.6]** πŸš€ We've reached 10k stars in just 39 days! A huge thank you to our incredible community for the support!
@@ -33,7 +34,7 @@
### πŸ“¦ Releases
-> **[2026.3.24]** [v1.0.0](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.0) β€” Agent-native refactor with flexible tool integration, CLI & SDK entry points, TutorBot powered by the nanobot engine, Co-Writer, Guided Learning, and persistent memory. DeepTutor is now lighter, faster, and better than ever!
+> **[2026.4.4]** [v1.0.0-beta.1](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.0-beta.1) β€” Agent-native architecture rewrite (DeepTutor 2.0) with two-layer plugin model (Tools + Capabilities), CLI & SDK entry points, TutorBot multi-channel bot agent, Co-Writer, Guided Learning, and persistent memory.
<details>
<summary><b>Past releases</b></summary>
diff --git a/assets/releases/ver-1-0-0-beta1.md b/assets/releases/ver-1-0-0-beta1.md
index fc068bd6c..088d0cc9f 100644
--- a/assets/releases/ver-1-0-0-beta1.md
+++ b/assets/releases/ver-1-0-0-beta1.md
@@ -1,78 +1,166 @@
-# DeepTutor v1.0.0-beta1 Release Notes
+# πŸš€ DeepTutor v1.0.0-beta1 Release Notes
-**Release Date:** 2026.03.13
+**Release Date:** 2026.04.04
-DeepTutor v1.0.0-beta1 is a major architecture release (DeepTutor 2.0), focused on decoupling runtime layers, unifying entry points, and rebuilding the app shell for capability-native workflows.
+We're thrilled to announce **DeepTutor v1.0.0-beta1** β€” the first beta of the **DeepTutor 2.0** architecture. This is a ground-up rewrite that transforms DeepTutor from a monolithic RAG tutor into an **agent-native learning platform** with a two-layer plugin model (Tools + Capabilities), three unified entry points (CLI / WebSocket / Python SDK), and a completely rebuilt web application shell.
-**Diff Scope:** `main...dev` (733 files changed, 64,336 insertions, 57,258 deletions)
+> ⚠️ **Beta Notice:** This is **beta 1** of v1.0.0. The core architecture is stable, but some **UI interactions and edge-case workflows may still contain bugs**. We appreciate your patience and welcome bug reports via [Issues](https://github.com/HKUDS/DeepTutor/issues).
-## Highlights
+> πŸ“Œ **Knowledge Base Note:** In this release, the RAG pipeline has been **simplified to LlamaIndex only**. LightRAG and RAG-Anything pipelines along with their related knowledge base content have been **temporarily removed** to focus on stability. They will be re-introduced in upcoming releases.
-### Agent-Native Runtime (Tools + Capabilities)
+> [!TIP]
+> **Call for Feedback:** If you encounter any bugs or have feature requests, please [open an issue](https://github.com/HKUDS/DeepTutor/issues)! PRs are welcome β€” see our [Contributing Guide](https://github.com/HKUDS/DeepTutor/blob/main/CONTRIBUTING.md).
-- Added new core runtime contracts: `ToolProtocol`, `CapabilityProtocol`, `UnifiedContext`, `StreamEvent`, and `StreamBus`.
-- Introduced `ChatOrchestrator` with two runtime registries: `ToolRegistry` (tool discovery, schema export, execution) and `CapabilityRegistry` (capability routing and manifest management).
-- Enabled stage-aware streaming and consistent trace events across all entry points.
+**Diff Scope:** `main...dev` (903 files changed, 92,701 insertions, 73,749 deletions)
-### Unified Entry Points: CLI / WebSocket / Python Facade
+---
-- Added standalone CLI package `deeptutor_cli` with unified commands: `chat`, `run`, `solve`, `quiz`, `research`, `animate`, `kb`, `memory`, `session`, `notebook`, `plugin`, and `serve`.
-- Added unified WebSocket endpoint `/api/v1/ws` with turn lifecycle support (`start_turn`, `subscribe_turn`, `subscribe_session`, `resume_from`, `cancel_turn`).
-- Added stable app facade (`deeptutor/app/facade.py`) for SDK-style integrations.
+## Quick Summary
-### Capability Layer Refactor
+- **Architecture** β€” Complete rewrite from `src/` to `deeptutor/` + `deeptutor_cli/` with agent-native runtime (Tools + Capabilities).
+- **Entry Points** β€” Three unified entry points: standalone CLI (`deeptutor`), WebSocket API (`/api/v1/ws`), and Python SDK facade.
+- **Capabilities** β€” Five built-in capabilities: `chat`, `deep_solve`, `deep_question`, `deep_research`, `math_animator`.
+- **Tools** β€” Seven LLM-callable tools: `rag`, `web_search`, `code_execution`, `reason`, `brainstorm`, `paper_search`, `geogebra_analysis`.
+- **Web App** β€” Rebuilt Next.js app with workspace/utility route groups, new Playground, Co-Writer, Agents, and Guide pages.
+- **TutorBot** β€” Multi-channel bot agent supporting 12 messaging platforms.
+- **Infra** β€” SQLite-backed session persistence, turn runtime, provider-level LLM traffic control and telemetry.
-- Standardized built-in capabilities: `chat`, `deep_solve` (planning -> reasoning -> writing), `deep_question` (ideation -> generation, plus follow-up mode), `deep_research`, and `math_animator`.
-- Unified capability manifests, CLI aliases, request schemas, and stage-level stream events.
+---
-### Tooling System Upgrade
+## ✨ Highlights
-- Unified built-in tool wrappers: `brainstorm`, `rag`, `web_search`, `code_execution`, `reason`, `paper_search`, and `geogebra_analysis`.
-- Added alias resolution and OpenAI-style schema export in runtime registry.
-- Improved observability for tool calls/results through stream events and playground APIs.
+### πŸ—οΈ Agent-Native Runtime (Tools + Capabilities)
-### Service Infrastructure Rebuild
+Introduced a two-layer plugin model that decouples tool execution from high-level agent workflows:
-- Refactored services into clearer domains: `config`, `llm`, `rag`, `search`, `session`, `memory`, `notebook`, `setup`, and `path_service`.
-- Added turn runtime + SQLite-backed session/event persistence with replayable streams.
-- Expanded provider routing and multimodal support in LLM services.
-- Split dependencies by usage layer: `requirements/core.txt`, `server.txt`, `rag-lite.txt`, `rag-full.txt`, `providers.txt`, `dev.txt`.
+- **Core Contracts:** `ToolProtocol`, `CapabilityProtocol`, `UnifiedContext`, `StreamEvent`, and `StreamBus` β€” the foundation of all runtime execution.
+- **ChatOrchestrator:** Central coordinator with two registries:
+ - `ToolRegistry` β€” tool discovery, OpenAI-style schema export, and execution.
+ - `CapabilityRegistry` β€” capability routing, manifest management, and stage-aware streaming.
-### Web Application Restructure
+### πŸ–₯️ Unified Entry Points: CLI / WebSocket / Python SDK
-- Reorganized Next.js app shell into workspace/utility route groups: `web/app/(workspace)` and `web/app/(utility)`.
-- Added unified chat context and session-aware sidebars.
-- Rebuilt core pages/components around capability-driven interaction and trace visualization.
+Three entry points share a single `ChatOrchestrator` runtime:
-### Security & Stability Improvements
+| Entry Point | Description |
+|:---|:---|
+| **CLI** (`deeptutor`) | Typer-based CLI with sub-commands: `run`, `chat`, `bot`, `kb`, `memory`, `session`, `notebook`, `plugin`, `config`, `provider`, `serve` |
+| **WebSocket** (`/api/v1/ws`) | Unified endpoint with turn lifecycle: `start_turn`, `subscribe_turn`, `subscribe_session`, `resume_from`, `cancel_turn` |
+| **Python SDK** (`deeptutor.app.facade`) | Programmatic facade for SDK-style integrations |
-- Hardened code execution with AST-based import/call guards and isolated Python execution mode.
-- Added startup validation for capability-to-tool consistency.
-- Expanded tests across runtime, tools, CLI, session streaming, and provider layers.
+### 🧠 Capability Layer
-## Breaking Changes
+Five built-in capabilities, each a multi-step agent pipeline:
-- Package layout migrated from legacy `src/` tree to `deeptutor/` + `deeptutor_cli/`.
-- Runtime execution model is now capability-native orchestration (`chat` default, deep modes selected explicitly).
-- Web route structure changed significantly; multiple legacy pages/components were removed or relocated.
-- Runtime data layout is now centered under `data/user/workspace/...`.
-- Optional capabilities/providers require installing matching dependency layers.
+| Capability | Stages | Description |
+|:---|:---|:---|
+| `chat` | responding | Default tool-augmented conversation |
+| `deep_solve` | planning β†’ reasoning β†’ writing | Multi-stage problem solving |
+| `deep_question` | ideation β†’ evaluation β†’ generation β†’ validation | Intelligent question generation with follow-up mode |
+| `deep_research` | search β†’ analyze β†’ synthesize β†’ report | Multi-agent research with report generation |
+| `math_animator` | analysis β†’ design β†’ codegen β†’ review β†’ render | Manim-based math concept video generation |
-## Upgrade Notes
+### πŸ”§ Tooling System
-1. Install CLI minimum dependencies: `pip install -r requirements/core.txt`
-2. Install API server dependencies (if needed): `pip install -r requirements/server.txt`
-3. Install full RAG stack (if needed): `pip install -r requirements/rag-full.txt`
-4. Migrate existing runtime data: `python scripts/migrate_user_data.py`
-5. Start CLI entry: `deeptutor chat`
-6. Start server entry: `deeptutor serve --port 8001`
+Seven unified LLM-callable tools with bilingual prompt hints (en/zh):
-## What's Changed
+| Tool | Description |
+|:---|:---|
+| `rag` | Knowledge base retrieval via LlamaIndex |
+| `web_search` | 10 search providers: Tavily, Exa, Jina, Serper, Perplexity, Brave, Baidu, SearXNG, DuckDuckGo, OpenRouter |
+| `code_execution` | Sandboxed Python execution with AST-based safety guards |
+| `reason` | Dedicated deep-reasoning LLM call |
+| `brainstorm` | Breadth-first idea exploration with structured rationale |
+| `paper_search` | arXiv academic paper search |
-- Massive codebase decoupling and runtime unification (DeepTutor 2.0 refactor).
-- Introduced capability-first orchestration and standardized tool registry contracts.
-- Added standalone CLI operation mode and unified WebSocket turn runtime.
-- Rebuilt web app shell and session workflow for capability-native interaction.
-- Consolidated service architecture with stronger execution safety and testability.
+### πŸ€– TutorBot β€” Multi-Channel Bot Agent
-**Full Changelog**: https://github.com/HKUDS/DeepTutor/compare/main...dev
+New autonomous bot system (`deeptutor/tutorbot/`) that brings DeepTutor to messaging platforms:
+
+- **12 Channels:** Telegram, Discord, Slack, WeChat Work (WeCom), Feishu, DingTalk, WhatsApp, Matrix, QQ, Email, MoChat
+- **Agent Loop:** Tool-augmented LLM loop with memory, subagent spawning, and team collaboration
+- **Built-in Tools:** Shell, filesystem, web, MCP, cron, and message tools
+- **Background Services:** Heartbeat health checks and cron-based scheduled tasks
+
+### 🌐 Web Application Restructure
+
+Complete rebuild of the Next.js frontend with new route groups:
+
+**Workspace Routes (`(workspace)/`):**
+
+| Page | Description |
+|:---|:---|
+| **Home** (`/`) | Main chat interface with tool-augmented conversation |
+| **Guide** (`/guide`) | Interactive learning guide with session history, progress tracking, and completion summaries |
+| **Playground** (`/playground`) | Unified deep capability UI (deep_solve, deep_question, deep_research, math_animator) |
+| **Co-Writer** (`/co-writer`) | AI-assisted collaborative writing with edit and narrator agents |
+| **Agents** (`/agents`) | TutorBot management β€” create, configure, and chat with custom bots |
+
+**Utility Routes (`(utility)/`):**
+
+| Page | Description |
+|:---|:---|
+| **Knowledge** (`/knowledge`) | Knowledge base management with LlamaIndex pipeline |
+| **Memory** (`/memory`) | User memory and preference management |
+| **Settings** (`/settings`) | Unified configuration for LLM, Embedding, TTS, and Search services |
+
+### 🏭 Service Infrastructure Rebuild
+
+Refactored services into clearer domains:
+
+```
+deeptutor/services/
+β”œβ”€β”€ config/ # Environment store, model catalog, provider runtime
+β”œβ”€β”€ llm/ # Multi-provider LLM: factory, registry, traffic control, telemetry
+β”œβ”€β”€ embedding/ # Adapter-based: OpenAI-compatible, Cohere, Jina, Ollama
+β”œβ”€β”€ rag/ # LlamaIndex pipeline with component-based architecture
+β”œβ”€β”€ search/ # 10 web search providers with result consolidation
+β”œβ”€β”€ session/ # SQLite store, turn runtime, context builder
+β”œβ”€β”€ memory/ # User memory persistence
+β”œβ”€β”€ notebook/ # Notebook management
+β”œβ”€β”€ prompt/ # Bilingual prompt template manager (en/zh)
+β”œβ”€β”€ settings/ # Interface settings
+β”œβ”€β”€ setup/ # Application initialization
+β”œβ”€β”€ tutorbot/ # TutorBot management
+└── path_service # Centralized data path resolution
+```
+
+### πŸ”’ Security & Stability
+
+- **Code Execution Safety:** AST-based import/call guards with configurable allowlists.
+- **LLM Traffic Control:** Provider-level circuit breaker, error rate tracking, and retry mechanisms.
+- **Startup Validation:** Capability-to-tool consistency checks at boot time.
+
+### πŸ§ͺ Test Coverage
+
+53+ new test files across all major layers: runtime (tool/capability registry, orchestrator), services (LLM provider/factory/routing/telemetry, RAG pipeline, embedding, search, session, memory, notebook, config), agents (chat, solve, question, math_animator), API (knowledge, memory, solve, WebSocket turn runtime), CLI, and tools (code executor safety).
+
+---
+
+## ⚠️ Breaking Changes
+
+- **Package layout:** `src/` β†’ `deeptutor/` + `deeptutor_cli/`. Old `src/` directory fully removed (140 files).
+- **Package renamed:** `ai-tutor` β†’ `deeptutor`, version `1.0.0`.
+- **Runtime model:** Capability-native orchestration. `chat` is the default; deep modes selected explicitly via `run` command or WebSocket.
+- **Web routes:** All pages reorganized under `(workspace)/` and `(utility)/`. Legacy pages (`/solver`, `/question`, `/research`, `/ideagen`, `/notebook`, `/history`) removed.
+- **RAG pipeline:** Only LlamaIndex available. LightRAG and RAG-Anything temporarily removed.
+- **Data layout:** Runtime data centered under `data/user/workspace/...`.
+- **Dependencies:** Split into layered requirements: `cli.txt`, `server.txt`, `dev.txt`, `math-animator.txt`, `tutorbot.txt`.
+
+---
+
+## πŸ“¦ What's Changed
+
+- Complete codebase rewrite with agent-native architecture (DeepTutor 2.0).
+- Two-layer plugin model (Tools + Capabilities) with `ChatOrchestrator` coordinator.
+- Standalone CLI package (`deeptutor_cli/`) with 11 sub-commands via Typer.
+- Unified WebSocket endpoint with turn lifecycle and session streaming.
+- 5 built-in capabilities and 7 LLM-callable tools with bilingual prompt hints.
+- TutorBot multi-channel bot agent with 12 platform integrations.
+- Rebuilt web app with workspace/utility route groups and new Playground, Co-Writer, Agents, and Guide pages.
+- Service infrastructure rebuild: LLM provider registry, embedding adapters, SQLite session store, memory, notebook, and search consolidation.
+- AST-based code execution safety, LLM traffic control, and provider telemetry.
+- 53+ test files across runtime, services, agents, API, CLI, and tools.
+- Updated Docker configuration and layered dependency management.
+
+**Full Changelog**: https://github.com/HKUDS/DeepTutor/compare/v0.6.0...v1.0.0-beta1