# hkuds/deeptutor

> DeepTutor is tutoring software for learners, offered as a browser app, a desktop app and a deeptutor command-line tool. Learners chat with a tutor, read and annotate course material, and plan their study on a calendar. The backend is written in Python and the browser app is built with TypeScript and Next.js.

Source: https://github.com/hkuds/deeptutor
Indexed: commit 4c1e000 on 2026-11-16 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Command-line tool
- Language: Python
- Stars: 60,069 at index time
- License: Apache-2.0
- Code health: 7.1/10, Good
- Last commit: 2026-11-15
- Contributors: 359

## Install

From the README: https://github.com/hkuds/deeptutor#-get-started

Clone the deeptutor repository.
    git clone https://github.com/hkuds/deeptutor.git

Move into the deeptutor folder.
    cd deeptutor

Create a project folder.
    mkdir -p my-deeptutor && cd my-deeptutor

Set up ports, the LLM provider and optional embedding and search services.
    deeptutor init

Start the backend and frontend, then open the URL printed in the terminal.
    deeptutor start

## How it works

The deeptutor directory is the Python backend, which runs chat turns, knowledge bases, model settings and learner workspace data. Its API is started from deeptutor/api/main.py, and the API routers call into the backend most often. The deeptutor/agents directory holds the LLM workers that answer chat turns, write practice questions and produce visual output. The web directory is the browser app, where Next.js routes under web/app render the screens and React components do most of the rest. The deeptutor_cli directory provides the deeptutor terminal command, which calls the same backend facade.

- apps/desktop/src/main.mjs: entry point
- deeptutor/__init__.py: entry point
- deeptutor/__main__.py: entry point
- deeptutor/api/main.py: entry point
- deeptutor/services/sandbox/runner/server.py: entry point
Modules: web, deeptutor, tests, apps, packages, deeptutor_cli, scripts, root. 4,347 files, 759,426 lines, 40,846 symbols.

## Code health

- Score: 7.1/10 (Good)
- Rank: #136 of 257 ranked repos
- Hotspots: web/contracts/generated/api.ts, web/features/chat/ChatStateAdapter.tsx, deeptutor/api/routers/knowledge.py, deeptutor/services/session/sqlite_store.py, web/components/chat/home/ChatComposer.tsx
- Lowest file: deeptutor/knowledge/manager.py
- Dead code: 56 findings

## Maintenance

- Last commit 2026-11-15, first commit 2025-12-28, 2,905 commits
- 359 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/hkuds/deeptutor/security

## More

- Page: https://repowise.dev/repo/hkuds/deeptutor
- Ask this codebase: https://repowise.dev/repo/hkuds/deeptutor/chat
- Docs: https://repowise.dev/repo/hkuds/deeptutor/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/hkuds/deeptutor
