Preface¶
When creating learning or tutoring agents in DSH (DeepSeek Harness), a common practice is to drop a test paper PDF into the conversation and ask the model to explain it question by question. However, the wrong answers, corrections, and margin calculations already marked on the paper often get scattered within the dialogue. This makes it difficult to review by knowledge point or export them into a printable collection.
Below is an introduction to the community plugin AI Mistake Book (suanmingxing/dsh-ai-mistake-book). Its positioning is not “AI solves problems for you,” but rather to scan the existing content on the paper and organize it into mistake cards indexed by knowledge point. These cards are editable, can be committed to version control, and are only archived to a local directory after your confirmation.
What is this¶
- Name: AI Mistake Book (npm package name
ai-mistake-book, current version 0.2.1) - Maintainer: suanmingxing
- Category: Memory (DSH Community Directory)
- Repository: github.com/suanmingxing/dsh-ai-mistake-book
- Directory Page: skillhub.cn plugin page
The plugin connects “PDF/Image Input → Rasterized Reading → Extract by Question Number → Generate Card Draft → Manual Confirmation & Archiving” into a local pipeline. Archived results are stored under archiveRoot, and the index is automatically rebuilt without relying on third-party mistake book cloud services.
Core Features¶
From Scan to Structured Cards¶
- Direct Scan Reading: PDFs are automatically rasterized (default 400 dpi) to generate full-page overviews and high-definition horizontal strips; if visibility is poor, native resolution can be requested for reslicing.
- Extract by Question Number: You report the numbers of wrong questions, and the model extracts fields such as the question stem, answer, corrections, margin calculations, paper annotations, knowledge points, error reasons, and difficulty.
- Strictly No Fabrication: Content that cannot be read accurately is written to “Pending Manual Confirmation” for human verification, rather than guessed or filled in.
- Cards as Markdown: The archive path is
library/<subject>/<paper>/cards/*.md, featuring front-matter, making them hand-editable, diffable, and Git-friendly.
Index, Export, and Recycle¶
- Knowledge Point Index: Automatically rebuilds
index.md/index.json, categorized by Subject → Primary Knowledge Point → Secondary Knowledge Point. - Export Printable PDF: Sections (including custom sections) are checkable and sortable; formulas are typeset using native Word equations (OMML) rather than assembled with Unicode characters.
- Recycle Bin: Deletions go to
_trash/first, allowing item-by-item restoration; files are only permanently destroyed upon emptying. - Traceable Sessions: Pages pending archive can jump back to the analysis session for continued modification.
Interface and Prompts¶
The plugin provides “Archived · Browse” (left column knowledge tree + right column cards, viewable against original paper crops), “Archived · Manage” (export PDF, delete, recycle bin), “Settings” (Prompts and PDF templates), and “Pending Archive” (confirm and archive after verifying candidates).
The settings page displays content according to the actual order received by the model: analysis task brief, difficulty and grade level background, error reason classification, system auto-appended notes, and a unified list of PDF export templates (presets + custom sections, with drag-to-order, checkboxes, and editable descriptions). Changes require clicking “Save All Changes” to take effect for new paper analyses.
During analysis, the current session tools can be temporarily narrowed to reading pages, submitting candidates, submitting decisions, and asking the user for confirmation (default restrictAnalysisTools: true), automatically restoring after completion.
Environment Requirements¶
- DSH Desktop Version, Web / Desktop profiles are both acceptable; requires DSH
>= 0.2.1-rc.2. - The analysis model must support image input; the plugin validates this before startup and will error out if unsupported.
- Node.js ≥ 22 (satisfied by the DSH bundled runtime).
Installation and Activation¶
Currently distributed only via GitHub (npm package not yet released). The installation command follows the README:
dsh plugin --profile desktop add github:suanmingxing/dsh-ai-mistake-book
Replace desktop with the profile you actually use (usually desktop for the desktop version, web for dsh web). Restart DeepSeek Harness after installation to enable it.
For development and debugging, link: can be used to point to a local clone directory; in this mode, pnpm will not automatically install plugin dependencies, so the repository has placed necessary dependencies in the committed node_modules/ (see VENDOR.md).
The DSH community directory (e.g., skillhub.cn) is an independent site with no official affiliation with DeepSeek / High-Flyer; it is recommended to review the repository source code and the MIT license yourself before installing. The plugin runs with the permissions of the current DSH process and can read/write to your configured archiveRoot.
Typical Usage¶
First-time Configuration¶
- Set
archiveRootin DSH “Settings → Plugins → AI Mistake Book” (default~/.dsh/ai-mistake-book), filling in the absolute path for the mistake book; restart the plugin after modification. - Open the archive root directory as a workspace in DSH (auto-created upon first execution of
/mistake).
Feeding Papers and Archiving¶
In the session, specify the wrong question numbers and the scanned file path, for example:
/mistake Wrong questions are 3, 5, 6, 8, 9, 11 @"C:\path\to\scanned_paper.pdf"
You can also specify the file path via the model tool mistake_ingest on the plugin page. Analysis takes place in the current session; after completion, go to “Pending Archive” on the plugin page to verify candidates and confirm archiving. Formal archiving must be confirmed on the plugin page; afterwards, you can export PDFs or delete cards in “Archived → Manage”.
Optional: Adjust the analysis task brief, background, and error reason classification in “Settings → AI Mistake Book” Prompt configuration, and adjust section order, checkboxes, or add custom sections in the PDF export templates.
Archive Directory Structure¶
<archiveRoot>/
├─ inbox/<batchId>/ Ongoing batch (raw scans, raster images)
├─ library/<subject>/<paper>/cards/*.md Archived mistake cards
├─ templates/ Editable prompts
├─ exports/ Exported PDFs
├─ export-settings.json PDF export template configuration
├─ _trash/ Recycle bin
└─ index.md / index.json Automatically generated index
Main Settings (Excerpts)¶
| Setting | Default | Description |
|---|---|---|
archiveRoot |
~/.dsh/ai-mistake-book |
Location of the mistake book |
pdfDpi / overviewDpi |
400 / 200 | Resolution for strips and full-page overview |
pagesPerRequest |
2 | Number of pages fed at once |
restrictAnalysisTools |
true | Narrow down session toolset during analysis |
analysisProvider / analysisModel |
empty | Uses deployment default if empty; must support images |
deleteToTrash |
true | Move deletions to recycle bin |
See the repository README for full instructions.
Data and Privacy¶
Papers, transcriptions, cards, and exports are all saved locally under archiveRoot; the plugin does not upload content to third-party services. Model calls go through the provider configured in DSH, following the same link as daily sessions.
Use Cases and Notes¶
Suitable for: Learners or tutoring scenarios where scanned papers/PDFs are available, and the goal is to build a local mistake library indexed by knowledge points, requiring editable Markdown and printable PDF export, with willingness to manually verify fields in the “Pending Archive” step.
Notes:
- Formula typesetting covers common notations; structures like matrices and piecewise functions are currently unsupported and will degrade to readable text.
- Analysis relies on model vision capabilities; UI text has a Chinese/English dictionary, while prompt templates default to Chinese.
- See the repository CHANGELOG.md for known limitations and updates.
Conclusion¶
AI Mistake Book combines DSH’s conversational capabilities with local file archiving: Scan paper → Extract by question → Write to library/ and rebuild index after confirmation. It is suitable for scenarios requiring a “reviewable structure” rather than “automatic problem solving.”
- Community Directory: https://www.skillhub.cn/plugins/suanmingxing/dsh-ai-mistake-book
- Source Code and Documentation: https://github.com/suanmingxing/dsh-ai-mistake-book