DeepSeek Harness LeetCode: Solving Hot 100, Local Judging, and AI Tutoring in DSH

Preface

In DSH, common approaches for algorithm practice include opening a browser to work through LeetCode problems, or setting up an Online Judge (OJ) yourself and writing scripts to pull problem sets. Problem descriptions, judging, progress tracking, and review tend to be scattered across different tools. If you also want to study by topic before practicing, or automatically add problems based on descriptions, you would need to integrate additional APIs and test data. The following introduces the community plugin kapelame/deepseek-harness-leetcode (package name dsh-plugin-learn): it consolidates LeetCode Hot 100 with accompanying courses, local Docker sandbox judging, progressive hints and AI mentoring, spaced review, and an Agent that “automatically adds problems based on natural language descriptions” into the Learn workflow in the DSH sidebar.

What is this

Maintained by kapelame and categorized as a workflow in the SkillHub directory. The plugin targets users already using DeepSeek Harness: it lets you complete algorithm learning paths inside Harness without replacing LeetCode’s official problem pages (each problem still links to its official LeetCode page). Licensed under MIT; the repository ships prebuilt artifacts in lib/, so installation does not run build scripts.

Core Features

Problem set and explanations

  • Covers all 100 LeetCode Hot 100 problems plus 8 additional classic problems; each problem includes an original summary, three levels of progressive hints, and solution explanations with commentary.
  • Problem groups match LeetCode Hot 100, and progress can be viewed by group.

Local judging (Docker)

  • Code runs in a network-disabled Docker container with a read-only filesystem and limits on memory, CPU, and process count; expected answers are not loaded into the container.
  • Beyond official samples, the test set includes hidden edge cases, random cases, and large cases; special handling is provided for design problems, in-place modification problems, and linked-list/tree node problems. Passing means passed local tests and is not equivalent to “Accepted” on LeetCode’s site.
  • Optional AI judging only adds feedback and cannot override conclusions derived from test execution. In configuration, agents.judge can be set to false to enable deterministic judging only.

Learn before solving

  • 16 topics (from hash tables to dynamic programming, etc.), each lesson includes step-by-step worked examples.
  • The mentor generates comprehension-check questions based on the lesson content, grades answers, and determines whether you can proceed to the accompanying practice problems.

Practice UI and records

  • Solve: editor, Run / Submit, hidden tests.
  • Submissions: status, runtime, memory, and code for past submissions.
  • Your record: statistics by difficulty, a yearly calendar, streak counts, and recent passes.

Hints and mentoring

  • Hints unlock in stages: direction, key idea, outline, solution.
  • Supports AI mentor conversation; after configuring a default model (e.g., signing in to DeepSeek), it can be used for the mentor, in-lesson checks, submission feedback, and the problem-adding Agent. Running, judging, written hints, and in-lesson built-in check questions can be used without configuring a default model.

Spaced review and extensions

  • Spaced-repetition review, and generation of validated variant problems.
  • View progress by concept; optional daily reminder emails (you must configure SMTP, etc.).

Add problems (add by description)

In Practice → Add problems, describe what you want in natural language and choose a count (1–5). The Agent searches LeetCode according to the repository skill skills/learn-problem-author/SKILL.md, writes tests, and only writes the problem into the problem set after it passes the same validation used for existing problems in this library. Problem IDs, titles, difficulty, tags, function signatures, and samples come from LeetCode metadata and are not fabricated by the model; paid problems and problems the plugin cannot judge are skipped. Progress is streamed and can be stopped midway; problems already added are retained. The README reports that in real tests on DeepSeek, a single run takes about 70–300 seconds and can fill the requested number of problems.

Installation and enabling

Environment requirements: DSH 0.2.0-rc.2 or above, below 0.3 (the README states testing on 0.2.0-rc.2 and 0.2.1-alpha.3). Docker Desktop must be installed; Learn can guide a one-click Docker startup and pull the required images, or you can run it yourself:

docker pull python:3.13-alpine node:24-alpine

Web installation (commands from the README):

dsh plugin --profile web add github:kapelame/deepseek-harness-leetcode
dsh web

Desktop: In Plugins → install from GitHub, install github:kapelame/deepseek-harness-leetcode.

Desktop command line (completely quit Desktop first, run the bundled CLI, then reopen):

"/Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh" plugin --profile desktop add github:kapelame/deepseek-harness-leetcode

For reproducible installations, you can pin a commit: github:kapelame/deepseek-harness-leetcode#<commit>.

After installation, open Learn in the sidebar. Explanations are in Chinese by default; switch to English in Learn → Settings.

Typical usage

  1. After installing Docker and the plugin, enter Hot 100 or topic lessons from Learn.
  2. Follow the examples in the lesson, complete the mentor’s comprehension checks, then proceed to the corresponding practice problems.
  3. Write code in the editor, Run first, then Submit; view history in Submissions.
  4. Unlock hints step by step as needed, or use mentor conversation; enable spaced review as needed.
  5. To expand the problem set, enter a description in Practice → Add problems (e.g., the README example: “3 medium BFS problems I haven’t done”), choose the number of problems, and wait for the Agent to complete validation and writing.

Configuration and data (optional)

The plugin adds two lines in the profile: learn (service) and learn-ui (Remote API and UI). When overriding configuration in cordis.patch.yml, you must retain the entire config section and dataRoot. Example README fragment:

- id: learn
  config:
    dataRoot: !!js dshHomePath('learn')
    defaultLocale: en
    reviewDailyLimit: 3
    agents:
      judge: false
      variantGeneration: true
    finder:
      enabled: true
      maxProblems: 5
      maxSubmissionsPerProblem: 3
      maxLeetcodeRequests: 40
      requestIntervalMs: 1000
    email:
      transport: capture

Learning data is stored by default under learn/ in the DSH home directory (typically ~/.dsh); you can export JSON or reset it in Settings.

Use cases and notes

Suitable for: users already using DSH 0.2.x with Docker available locally, who want to practice systematically using Hot 100 and topic courses, perform local offline judging, and optionally use AI mentoring and add problems by description.

Privacy and outbound traffic (per the README): code only runs in offline Docker. After configuring a default model, submissions (unless agents.judge is disabled), hints, mentoring, reflection, and variant generation may send problem summaries and code to that model; in-lesson checks send course content and your answers; Add problems sends your description and LeetCode metadata, but does not send your code. Add problems only queries LeetCode’s public GraphQL to obtain metadata. Except for optional SMTP reminder emails, other data does not leave your machine by default.

Security: DSH plugins run with the permissions of the current dsh process. Before installing, review the repository source code and the MIT license to confirm it meets your environment and compliance requirements; the community directory SkillHub is an independent site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

kapelame/deepseek-harness-leetcode brings Hot 100 learning paths, Docker local judging, in-lesson mentoring, and an optional AI problem-adding Agent into the Learn workflow in DSH, making it suitable for developers who want to keep algorithm practice as a closed loop inside Harness.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye