DeepTutor
AGENTS.md41k starsChanged 4 months agoApache-2.0View on GitHub
DeepTutor is an agent-native intelligent learning companion organized around a two-layer plugin model — single-shot Tools invoked by the LLM, and multi-stage Capabilities that take over a turn — exposed through three entry points: CLI, WebSocket API, and Python SDK. All three enter the durable turn application service before the shared turn engine routes a normalized context to the selected capability. TurnApplicationService owns durable turn state and replay through the session store and runtime coordinator. Each execution uses a per-turn…
- Reads credentials
- Installs packages
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about HKUDS/DeepTutor
- @midu.dev“¡Proyectazo! Aprende cualquier cosa con DeepTutor. Un asistente de aprendizaje personalizado que usa IA. Es …”Bluesky · Jan 4, 2026 · 43 likes
- @sungkim.bsky.social“DeepTutor: Agent-Native Personalized Tutoring by HKUDS github.com/HKUDS/DeepTu...”Bluesky · Apr 7, 2026 · 11 likes
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 HKUDS / DeepTutor ⭐ 16,522 (+836) 🗒 Python "DeepTutor: Agent-Native …”Bluesky · Apr 11, 2026 · 4 likes
- @dougholton.mastodon.social.ap.brid.gy“* LearnHarness is an #OpenSource AI self-tutoring platform: https://learnharness.ai/ Source: …”Bluesky · Nov 2, 2026 · 2 likes
- A Hacker News story“DeepTutor: Agent-Native Personalized Tutoring”Hacker News · Apr 9, 2026 · 2 points
The biggest 5 of 62 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 62
Talked about on GitHub, Bluesky and Hacker News (62 times).
On GitHub · 50
- Jan 5, 2026feat(sisyphus): Add DeepTutor-inspired structural improvements — code-yeongyu/oh-my-openagent1 reaction · 7 comments
- Nov 24, 2026📚 论文日报 - 2026-11-24 — Wait021/ArxivDaily0 reactions · 1 comment
- Nov 23, 2026📚 论文日报 - 2026-11-23 — Wait021/ArxivDaily0 reactions · 2 comments
- Nov 20, 2026fix(oci/deeptutor): update 1.7.3 ➼ 1.7.4 — JJGadgets/Biohazard0 reactions · 2 comments
- Nov 20, 2026agent-skills.github.hkuds.deeptutor: 1.7.3 → 1.7.4 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Nov 16, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.7.4 — Veirt/homelab-gitops0 reactions
- Nov 15, 2026agent-skills.github.hkuds.deeptutor: 1.7.2 → 1.7.3 — sudosubin/agents.nix0 reactions
- Nov 15, 2026fix(oci/deeptutor): update 1.7.2 ➼ 1.7.3 — JJGadgets/Biohazard0 reactions · 3 comments
- Nov 6, 2026agent-skills.github.hkuds.deeptutor: 1.7.1 → 1.7.2 — sudosubin/agents.nix0 reactions
- Nov 1, 2026검증된 학습 자료 기반 AI 튜터의 타당성 검토 — yellow-pang/it-knowledge-atlas0 reactions
- Oct 31, 2026agent-skills.github.hkuds.deeptutor: 1.7.0 → 1.7.1 — sudosubin/agents.nix0 reactions
- Oct 30, 2026HKUDS 'DeepTutor' v1.7.0 — 모듈 설치·새 학습 워크스페이스·블록 노트북·내레이션 영상 강의 추가, 트렌딩 상위 진입 (10/28, GitHub) — roomedia/ax-trend0 reactions · 1 comment
- Oct 30, 2026Github trending [HKUDS/DeepTutor] 港大出品终身个性化辅导系统,用Agent记忆给学习者建模 — web1992/github-trending0 reactions
- Oct 29, 2026[edition] 2026-10-29 06:00 — leoneoo/ai-lianmeng0 reactions · 1 comment
- Oct 29, 2026Github trending [HKUDS/DeepTutor] 港大出品终身个性化 AI 辅导系统 — web1992/github-trending0 reactions
- Oct 28, 2026agent-skills.github.hkuds.deeptutor: 1.6.15 → 1.7.0 — sudosubin/agents.nix0 reactions
- Oct 28, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.7.4 — nahsi/infra0 reactions
- Oct 18, 2026agent-skills.github.hkuds.deeptutor: 1.6.14 → 1.6.15 — sudosubin/agents.nix0 reactions
- Oct 18, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.15 — nahsi/infra0 reactions
- Oct 13, 2026agent-skills.github.hkuds.deeptutor: 1.6.13 → 1.6.14 — sudosubin/agents.nix0 reactions
- Oct 10, 2026[Integration] HKUDS/DeepTutor: keyless You.com search provider (optional YDC_API_KEY) — youdotcom-oss/integration-tracking0 reactions · 2 comments
- Oct 8, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.14 — nahsi/infra0 reactions
- Oct 5, 2026agent-skills.github.hkuds.deeptutor: 1.6.12 → 1.6.13 — sudosubin/agents.nix0 reactions
- Oct 4, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.13 — nahsi/infra0 reactions
- Oct 3, 2026agent-skills.github.hkuds.deeptutor: 1.6.10 → 1.6.12 — sudosubin/agents.nix0 reactions
- Sep 28, 2026agent-skills.github.hkuds.deeptutor: init at 1.6.10 — sudosubin/agents.nix0 reactions
- Sep 27, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.12 — nahsi/infra0 reactions
- Sep 24, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.11 — nahsi/infra0 reactions
- Sep 23, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.10 — nahsi/infra0 reactions
- Sep 20, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.9 — nahsi/infra0 reactions
- Sep 18, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.8 — nahsi/infra0 reactions
- Sep 15, 2026fix(video-learning): decode caption HTML entities — evan188199-tech/DeepTutor0 reactions
- Sep 14, 2026Catalogue digest — 2026-09-14 — vatsalp2008/AI-Agent-Discovery0 reactions
- Sep 14, 2026建议增加基于知识库的 AI 主动学习模式 — siyuan-note/siyuan0 reactions · 2 comments
- Sep 11, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.7 — nahsi/infra0 reactions
- Sep 8, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.6 — nahsi/infra0 reactions
- Sep 8, 2026Suggest: HKUDS/DeepTutor — haggaishachar/awesomemap0 reactions · 1 comment
- Sep 8, 2026Suggest: HKUDS/DeepTutor — haggaishachar/awesomemap0 reactions · 1 comment
- Sep 7, 2026Catalogue digest — 2026-09-07 — vatsalp2008/AI-Agent-Discovery0 reactions
- Sep 6, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.5 — nahsi/infra0 reactions
- Sep 5, 2026feat(watching): add a session-owned watching workspace — evan188199-tech/DeepTutor0 reactions · 1 comment
- Sep 5, 2026feat(watching): add a dedicated watching workspace and validate mini deployment — evan188199-tech/DeepTutor0 reactions · 2 comments
- Sep 3, 2026feat: add aimlapi.com as an OpenAI-compatible gateway provider — aimlapi/DeepTutor-aimlapi0 reactions
- Sep 2, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.4 — nahsi/infra0 reactions
- Sep 1, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.3 — nahsi/infra0 reactions
- Sep 1, 2026chore(deps): update ghcr.io/hkuds/deeptutor docker tag to v1.6.2 — nahsi/infra0 reactions
- Aug 31, 2026Catalogue digest — 2026-08-31 — vatsalp2008/AI-Agent-Discovery0 reactions
- Aug 14, 2026[CyberStroll] DeepTutor:未认证 GET /api/v1/settings 泄露 LLM API 密钥(责任披露稿 · 待提交上游) — tajleonbennis-maker/software_chian0 reactions
- Aug 11, 2026资源 配合 https://github.com/HKUDS/DeepTutor 岂不是快哉! — TapXWorld/ChinaTextbook0 reactions · 1 comment
- Aug 6, 2026[staging] [Bug]:Frontend proxy returns 500 on Windows local deployment due to localhost IP — loonister1/DeepTutor0 reactions · 1 comment
On Bluesky · 11
- Jan 4, 2026¡Proyectazo! Aprende cualquier cosa con DeepTutor. Un asistente de aprendizaje personalizado que usa IA. Es mucho más que un chatbot.… — @midu.dev43 likes and reposts
- Apr 7, 2026DeepTutor: Agent-Native Personalized Tutoring by HKUDS github.com/HKUDS/DeepTu... — @sungkim.bsky.social11 likes and reposts
- Apr 11, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 HKUDS / DeepTutor ⭐ 16,522 (+836) 🗒 Python "DeepTutor: Agent-Native Personalized Learning Assistant" — @github-trending.bsky.social4 likes and reposts · 1 reply
- Nov 2, 2026* LearnHarness is an #OpenSource AI self-tutoring platform: https://learnharness.ai/ Source: https://github.com/amosblomqvist/learnharness… — @dougholton.mastodon.social.ap.brid.gy2 likes and reposts
- Apr 9, 2026Examples of using #AIagent systems in education: * Evolution of AI in Education: Agentic Workflows https://arxiv.org/abs/2504.20082v2 *… — @dougholton.mastodon.social.ap.brid.gy2 likes and reposts
6 more on Bluesky
- Apr 8, 2026LLMベースの対話型チューターを構築するためのフレームワークみたい 教育分野でのパーソナライズされた学習支援に期待 yug1224 starred HKUDS/DeepTutor https://github.com/HKUDS/DeepTutor — @yug1224.com2 likes and reposts
- Oct 18, 2026DeepTutor's two-layer plugin model is the part to watch. Tools plus Capabilities, then CLI and SDK entry points, means the value is a… — @iam.slys.dev1 likes and repost
- Aug 17, 2026DeepTutor An open-source system for lifelong, personalized AI tutoring. It is designed to adapt to the learner over time rather than… — @githubprojects.bsky.social1 likes and repost · 1 reply
- Oct 31, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 HKUDS / DeepTutor ⭐ 52,386 (+1,035) 🗒 Python DeepTutor: Lifelong Personalized Tutoring.… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Oct 27, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 HKUDS / DeepTutor ⭐ 44,878 (+1,587) 🗒 Python DeepTutor: Lifelong Personalized Tutoring.… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Aug 11, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 HKUDS / DeepTutor ⭐ 34,346 (+829) 🗒 Python DeepTutor: Lifelong Personalized Tutoring.… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Apr 9, 2026DeepTutor: Agent-Native Personalized Tutoring2 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- deeptutor-cliSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 83
All capabilities converge on emit_capability_result() in deeptutor/capabilities/_shared.py so every turn emits the same envelope (response …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DeepTutor — Agent-Native Architecture
Overview
DeepTutor is an agent-native intelligent learning companion organized around a two-layer plugin model — single-shot Tools invoked by the LLM, and multi-stage Capabilities that take over a turn — exposed through three entry points: CLI, WebSocket API, and Python SDK. All three enter the durable turn application service before the shared turn engine routes a normalized context to the selected capability.
Architecture
Entry Points: CLI (Typer) | WebSocket /ws | Python SDK
↓ ↓ ↓
┌─────────────────────────────────────────────────┐
│ TurnApplicationService │
│ persists, coordinates, and replays turns │
└──────────────────────┬──────────────────────────┘
↓
┌─────────────────────────────────────────────────┐
│ TurnEngine → ChatOrchestrator │
│ routes UnifiedContext → selected Capability │
│ (defaults to `chat`) │
└──────────┬──────────────┬───────────────────────┘
│ │
┌──────────▼──┐ ┌────────▼──────────┐
│ ToolRegistry │ │ CapabilityRegistry │
│ (Level 1) │ │ (Level 2) │
└──────────────┘ └────────────────────┘TurnApplicationService owns durable turn state and replay through the
session store and runtime coordinator. Each execution uses a per-turn
StreamBus; the orchestrator emits events, the turn runtime persists them,
and adapters replay them to consumers. Runtime settings live in
data/user/settings/*.json — project-root .env files are intentionally
ignored.
Level 1 — Tools
Single-function tools the LLM picks on demand. Seven user-toggleable tools
surface in /settings/tools:
| Tool | Description |
brainstorm | Breadth-first idea exploration with rationale |
web_search | Web search with citations |
paper_search | arXiv preprint search |
reason | Dedicated deep-reasoning LLM call |
geogebra_analysis | Analyze math images into GeoGebra commands |
imagegen | Generate images |
videogen | Generate videos |
USER_TOGGLEABLE_TOOL_NAMES in deeptutor/tools/builtin/__init__.py is the
authoritative toggle list. Other built-ins are context-gated or
capability-owned: CONFIGURABLE_BUILTIN_TOOL_NAMES declares the context-gated
surface, while deeptutor/agents/_shared/tool_composition.py owns the mount
rules (ToolMountFlags) and the always-available workspace tools. Examples
include rag, memory and notebook tools, read_skill, deferred MCP/CLI tools,
exec, ask_user, and mastery navigation. --tool selects from the
user-toggleable whitelist; it does not bypass context or capability gates.
Level 2 — Capabilities
Multi-stage pipelines that own the turn:
| Capability | Stages |
chat | exploring → responding (single agentic loop, default) |
ask_questions | responding (chat loop forced through ask_user) |
deep_solve | responding (chat loop + solve planning tools) |
deep_question | ideation → generation |
deep_research | rephrasing → decomposing → researching → reporting |
visualize | analyzing → generating → reviewing (SVG / Chart.js / Mermaid / HTML; or routes to Manim sub-stages via render_type) |
math_animator | concept_analysis → concept_design → code_generation → code_retry → summary → render_output |
mastery_path | responding (Guided Learning — chat loop + mastery tools, gated per topic type) |
immersive_reading | responding (document-grounded reading loop) |
course_study | responding (course-state sensing and hand-off loop) |
immersive_watching | responding (timestamp-grounded video loop) |
All capabilities converge on emit_capability_result() in
deeptutor/capabilities/_shared.py so every turn emits the same envelope
(response payload + cost_summary from UsageTracker). Status copy and
prompts are i18n'd via capabilities/prompts/{en,zh}/<name>.yaml.
CLI Usage
# Install
pip install deeptutor # Full app (CLI + Web/API + packaged Web assets)
pip install deeptutor-cli # CLI-only
# Run any capability
deeptutor run chat "Explain Fourier transform"
deeptutor run deep_solve "Solve x^2=4" -t rag --kb my-kb
deeptutor run visualize "Animate sine wave" --config render_mode=manim_video
# Interactive REPL
deeptutor chat
# (inside the REPL: /regenerate or /retry re-runs the last user message)
# Partners (IM-connected companions)
deeptutor partner list
# Knowledge bases, memory, server
deeptutor kb list
deeptutor kb create my-kb --doc textbook.pdf
deeptutor memory show
deeptutor serve --port 8001 # API server only
deeptutor start # backend + frontend togetherKey Files
| Path | Purpose |
deeptutor/runtime/orchestrator.py | ChatOrchestrator — unified entry |
deeptutor/runtime/launcher.py | Backend + frontend lifecycle / port discovery |
deeptutor/runtime/registry/ | Tool + Capability registries |
deeptutor/runtime/bootstrap/builtin_capabilities.py | Built-in capability class paths |
deeptutor/services/config/runtime_settings.py | JSON settings + process-env overrides |
deeptutor/services/subagent/ | Local/remote agent connectors; register each backend in registry.py and its model options in models.py (Grok CLI uses native streaming-json) |
deeptutor/core/stream.py, deeptutor/runtime/stream_bus.py | StreamEvent protocol + async fan-out |
deeptutor/core/tool_protocol.py | BaseTool + ToolDefinition |
deeptutor/core/capability_protocol.py | TurnCapability + CapabilityManifest |
deeptutor/core/context.py | UnifiedContext dataclass |
deeptutor/tools/builtin/__init__.py | All built-in tool wrappers |
deeptutor/capabilities/ | Built-in capability implementations |
deeptutor/app.py | DeepTutorApp — Python SDK facade |
deeptutor_cli/main.py | Typer CLI entry point |
deeptutor/api/routers/unified_ws.py | Unified WebSocket endpoint |
Dependency Layers
Public install paths and source extras are defined in pyproject.toml.
Requirements files mirror the same dependency groups for Docker/CI installs.
pip install deeptutor — Full app (CLI + Web/API + packaged Web assets)
pip install deeptutor-cli — CLI-only (LLM + RAG + providers + document parsing)
pip install -e . — Source install for development
Source extras (.[ extra ], defined in pyproject.toml):
.[cli] — CLI-only dependency set
.[server] — Web/API server dependencies
.[partners] — Partner channel SDKs (legacy alias: .[tutorbot])
.[matrix] — Matrix channel for Partners (matrix-nio; needs libolm)
.[matrix-e2e] — Matrix with end-to-end encryption (matrix-nio[e2e])
.[math-animator] — Manim addon (powers `visualize` Manim renders + `deeptutor run math_animator`)
.[dev] — Test / lint tooling
.[all] — Everything aboveDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

