dsh-codeeek: Open a separate "Read Code" line in DSH

Introduction

When using a generic workspace in DSH to modify code or run conversations, systematically reading an unfamiliar repository often requires manually pasting snippets and tracking paths within the conversation. This process becomes entangled with regular development tasks, and switching workspaces can easily lead to context loss. This article introduces the community plugin cyrusgogogo/dsh-codeeek (package name dsh-code-reading): It provides a Read Code entry in the sidebar, independent of the workspace list. It consolidates multi-repository binding, read-only verification, reading archives, and an IDE-style reading interface into a fixed workflow. Business logic, call chains, and implementation details can be expanded on-demand based on specific problems or code selections, without being forced to follow rigid stages.

What is this

Maintainer: cyrusgogogo. Category: Client plugin. Current release version: 0.1.7, declaring compatibility with DSH 0.2.1-rc.2 (this is a declaration of compatibility; it does not automatically detect the DSH version you are running). License: MIT.

In one sentence: It is a code reading mode independent of standard workspace selection—starting from business problems or specific code, it explains business logic, call chains, and implementation details on demand. The sidebar entry is located above the workspace list and does not replace the original workspace or conversation entries.

Core Capabilities (Consistent with README)

Independent Entry & Multi-Repository Projects

  • A dedicated Read Code entry on the left; switching standard DSH workspaces does not alter the bound reading targets.
  • A reading project can bind 1–12 local repositories; the binding is immutable after creation (to change bindings, create a new project). The top repository selector → Manage Repositories… allows unbinding from the selector; disk source code and original reading archives are preserved.

Requirement-Driven & IDE Workbench

  • Starting from problems: Explain business logic, call chains, and key implementations on demand; Starting from code: Focus on selections, upstream/downstream dependencies within the project, and logic. Each session focuses on a single knowledge point.
  • IDE Reading Workbench: File tree on the left, code and reading document tabs in the center, reading list on the right. Upon first opening, the center displays “Select a file to start reading”; the Problem Reading mode is available when needed.
  • Project Map: Explicitly opens the “Project Map” document in the center to establish a reusable file structure index. Navigation does not request model calls; the index is written only to the project archive.

Method-Level Reading, Evidence & Record Keeping

  • The minimum unit of interpretation is a complete method, function, or constructor (callable unit). The Host verifies byte versions, UTF16 line/column positions, and continuous reading evidence; it does not claim full-language AST support.
  • Code Evidence: Repository ID, relative path, line numbers, SHA256, symbol text clues, and reading timestamp. Source code changes will invalidate old evidence.
  • Fixed Record Keeping: Reading audits, stage history, knowledge point Markdown, raw Mermaid text, final conversation text, and summary exports.
  • Cross-session association of archived code units within the same project; the line number gutter displays existing AI interpretation markers (this only indicates that an archived interpretation exists, not that you have understood it).

Selection Logic Diagrams & Mermaid

  • Manually select a method or class range (up to 8,000 UTF16 units), right-click or press Shift+F10 for AI Generate Logic Diagram; the snippet will be expanded to the full code unit it belongs to. Mermaid supports sequence diagrams, flowcharts, class diagrams, state diagrams, and ER diagrams. Malicious instructions are rejected before rendering.

Reading Agent Tool Boundaries

The Reading Agent possesses only five specialized tools: reading_catalog, reading_files, reading_search, reading_read, reading_publish. The Host rejects shell, generic write, network tools, sub-agents, etc.; this is a plugin tool boundary, not an OS-level sandbox. If other processes under the same account concurrently replace directories between path checks and operations, the plugin does not claim to defend against such race conditions.

Installation and Activation

Standard users can install the pre-built package without setting up Node, pnpm, or compiling on the spot. Model providers must be configured within DSH.

The key installation steps from the README are as follows (The installer package must be obtained from the release archive and verified via SHA256; archive links are under releases/ in the source workspace. Cloning the repository does not guarantee access to the archive):

  1. Obtain a trusted dsh-code-reading-0.1.7.tgz and the corresponding .sha256 file from the same release, and verify the hash.
  2. Install and enable the plugin using the absolute path to the archive in the current DSH application’s plugin/Bundle management interface. If prompted with restart-required, you must fully exit and reopen DSH; simply refreshing the browser will not update the old Host. Do not use the CLI to manage profiles reserved by the desktop version.
  3. Open Read Code → Installation & Usage on the left. Confirm that both Client and Host are 0.1.7 and that the project list has loaded before creating a project.

In the root directory of the source workspace, you can use PowerShell to view the path and hash:

(Resolve-Path '.\releases\dsh-code-reading-0.1.7.tgz').Path
Get-FileHash '.\releases\dsh-code-reading-0.1.7.tgz' -Algorithm SHA256

For more comprehensive restart decisions, upgrade/rollback instructions, and troubleshooting, refer to the Installation Manual in the repository.

Typical Usage

  1. Click Read Code on the left; if the installer prompts restart-required, fully exit and reopen DSH.
  2. Open Local Repositories: Add from an existing DSH workspace or select a local absolute directory (defaults to the directory name). Open Repository only saves a record and does not automatically call the model; More → Open Other Repositories allows creating another binding.
  3. Click a file in the left File Directory to view it in read-only mode in the center; files and reading content share the same row of document tabs.
  4. Box-select a method or class, right-click AI Generate Logic Diagram, or select Ask AI to Analyze Selected Code / Explain This Section. On the first call or if the provider/model/binding scope changes, confirm the Reading Model and Source Code Scope at the bottom of the center panel.
  5. Start from a problem: Use Problem Reading at the bottom or New Reading on the right, fill in the target in the center, and click Start Reading. Drafts that are not explicitly initiated are not restored after leaving the page; the session is retained only after confirmed analysis or manual annotation saving.
  6. Manage in-progress and Archived sessions in the right Reading List; clicking evidence opens the file in the center and re-verifies the SHA256. Reading Artifacts → Export Archive allows for summary export.

Default archive root directory priority: Host dataDir → Environment variable DSH_CODE_READING_HOME → DSH_HOME/code-reading → User home directory .dsh/code-reading. The Installation & Usage → Diagnostic Information page displays the actual location.

Applicable Scenarios & Notes

Suitable for: Teams or individuals who need to read multi-repository local source code within DSH over the long term with a record of operations; who want to complete problem-driven analysis, precise selection reading, logic diagrams, and evidence chains within the same interface, decoupled from standard coding workspaces.

Notes:

  • The plugin reads local files with the permissions of the current DSH process; please review the source code and MIT license before installation, and manage the archive directory according to your project’s sensitivity level (notes and messages may contain code snippets, and the directory is not encrypted).
  • The current version only supports local, non-linked, UTF-8 plain text; limits such as a maximum of 1 MiB per file and 20,000 lines per page can be found in the “Resource Limits” section of the README.
  • The community directory SkillHub is an independent site and has no official affiliation with DeepSeek or High-Flyer (幻方); the DSH ecosystem philosophy is “Everything is a plugin,” and this plugin is one such client-side reading solution.

Conclusion

dsh-codeeek extracts “code reading” from the generic workspace: multi-repository binding, read-only Agents, evidence and archives, IDE-style code reading, and logic diagrams all operate under a set of Host constraints. If you are already using DSH 0.2.1-rc.2 series, you can install the 0.1.7 pre-built package as described above and start with Read Code → Open Local Repositories.

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

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

Xiaoye