dsh-matu-tutor: A Local C Workbench Built for UESTC APTAT

Introduction

The “everything is a plugin” philosophy of DeepSeek Harness (dsh) allows agent developers to focus on business logic rather than reinventing the wheel. For users with C language assignment requirements, steps like syncing problems from a web portal, compiling and running locally, submitting for grading, and receiving AI-assisted learning can all be highly integrated within dsh plugins. dsh-matu-tutor is designed precisely for this purpose — it transforms the UESTC APTAT (Matu) website into a localized C programming workbench.

What It Is

dsh-matu-tutor is a DeepSeek Harness plugin maintained by Kostyastudy, categorized under “Client.” It is purpose-built for UESTC’s APTAT platform, providing four core capabilities: assignment sync, local compilation and execution, real grading, and AI tutoring. If you have a matu.uestc.edu.cn account, this plugin consolidates what used to be scattered across a web interface into a unified local workbench.

Core Features

  • Assignment Sync: Log in once, and the assignment list, problem descriptions, submission counts, and recent scores are synced locally. You can refresh on demand afterward.
  • Per-Problem Projects: Each problem maps to its own folder, containing solution.c (the code to submit), harness.c (a local test main that is never uploaded), and input.txt.
  • Local Code Editor: Supports line numbers, C syntax highlighting, auto-indentation, bracket matching, and multi-line indentation. Common shortcuts include Ctrl+/ to toggle comments, Ctrl+S to save, and Ctrl+Enter to compile and run.
  • Local Compiler: Compiles using gcc -std=c11 -Wall -Wextra -O2, feeds stdin content as test data, and streams output results in real time.
  • Real Submission: Code is uploaded to APTAT, waits for grading, and returns deduction reasons if the score is below 100.
  • AI Tutor: Provides the current problem, current code, and conversation history as context. The tutor is instructed to first quote the problem’s output requirements, then provide a layered feature breakdown, and finally build the code block by block. The tutor generates a persistent configuration based on your teaching preferences set in the panel, maintaining consistency across problems.
  • Credential Security: APTAT login credentials are stored in the operating system’s credential store and never appear in source code, caches, or model prompts.

Installation & Setup

Requires DeepSeek Harness 0.2.x, and gcc must be available on the system PATH (on Windows, the plugin also probes common locations such as MSYS2, MinGW, Chocolatey, and Scoop).

Desktop App

Open the “Plugins” menu in the dsh desktop application, select “Add plugin,” and enter the repository URL:

https://github.com/Kostyastudy/dsh-matu-tutor

Command Line

dsh plugin --profile <your-profile> add github:Kostyastudy/dsh-matu-tutor

After installation, open the “Matu C Tutor / MATU C tutor” entry in the sidebar and log in with your APTAT account.

The plugin requires no build step and has no additional dependencies. It is delivered as an ES module plus a browser module.

Typical Usage

  1. Select “Matu C Tutor / MATU C tutor” in the sidebar and log in with your APTAT account.
  2. After syncing assignments, click a problem in the left-hand list; a corresponding folder will be created automatically.
  3. Write or modify solution.c in the editor, then save with Ctrl+S.
  4. Enter test data in the “Stdin” tab, press Ctrl+Enter to compile and run, and view the real-time output.
  5. When satisfied, click the submit button and wait for APTAT grading. The plugin will display the score and deduction reasons.
  6. If you need guidance, ask questions in the conversation panel. The tutor will provide a layered explanation and code examples based on the problem requirements, your current code, and conversation history. You can set tutor preferences in the panel; these are written to tutor-profile.json and remain consistent across subsequent problems.

Use Cases & Notes

  • Ideal for users doing C language assignment training on the UESTC APTAT platform who want to consolidate compilation, execution, grading, and AI assistance into dsh.
  • The plugin runs with the current dsh process permissions. Review the source code and license before installing.
  • Submissions consume APTAT submission quotas. It is recommended to test locally before submitting.
  • The AI tutor invokes a model, and costs are billed according to the model used. You can select different models in the panel.
  • APTAT is a campus service, and access stability may vary across different networks. If login times out, try opening http://matu.uestc.edu.cn in a browser first to confirm connectivity.
  • The plugin retrieves data by parsing the website’s HTML (not via an API). If the site structure changes, sync or submission functionality may require a plugin update.
  • One dsh profile can only store one APTAT account.

Short Conclusion

dsh-matu-tutor turns the UESTC APTAT C language assignment workflow into a local workbench, covering compilation, execution, real grading, and AI-assisted learning. If you use DeepSeek Harness and have APTAT assignment needs, you can try installing and enabling it using the methods above. For more details and source code, refer to:
- Directory page: https://www.skillhub.cn/plugins/Kostyastudy/dsh-matu-tutor
- GitHub: https://github.com/Kostyastudy/dsh-matu-tutor

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

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

Xiaoye