Preface¶
When using DeepSeek Harness (DSH) for AI-assisted development, models often modify multiple files in a single pass. While Diffs illustrate “what was changed,” they struggle to directly answer “which changes complicated the control flow” or “which functions deepened the nesting.” Manually scanning line-by-line is costly and prone to overlooking structural risks.
Noema is a DSH community plugin. At the end of every coding task round, it compares the workspace before and after the task, displaying changes in complexity metrics for files written in supported languages. This helps you focus your Review on files and functions that may require a closer look. Analysis is executed locally, and results do not enter the model context.
What is this¶
Noema (dsh-plugin-noema) is released by maintainer wjw99830 and categorized as a workflow plugin. In one sentence: upon completion of each coding task, it uses before-and-after comparisons of three metrics—Cyclomatic Complexity, Cognitive Complexity, and Maximum Nesting Depth—to direct Review attention toward changes in complexity.
Repository and directory pages:
- GitHub: https://github.com/wjw99830/dsh-plugin-noema
- Community Directory: https://www.skillhub.cn/plugins/wjw99830/dsh-plugin-noema
The current npm package version is 0.2.1-alpha.1, released under the MIT License.
Core Features¶
Three Complexity Metrics¶
Noema compares the same workspace before and after each task (including manual edits made during that round) and calculates/displays the deltas for code involved in the changes:
| Metric | Meaning |
|---|---|
| Cyclomatic complexity | The number of independent paths in the code |
| Cognitive complexity | The difficulty of following the control flow, accounting for branches, nesting, and recursion |
| Maximum nesting depth | The deepest level of nested control structures within a function |
The README emphasizes: a lower score does not automatically mean “better”; judgment should be based on the code context.
File and Function Level Display¶
The interface allows expanding files or functions to pinpoint specific changes internally. Aggregated metrics include the code beneath them; [Top Level] separates named sub-functions from the file’s own top-level code for statistics. Unchanged code is hidden by default but can be expanded to view if needed.
Languages and Change Scope¶
Currently supports TypeScript (including TSX), Python, and Go. JavaScript and TypeScript declaration files (.d.ts) are not within the analysis scope.
If there are no supported code changes (e.g., only comment or formatting changes), the Noema card will not appear; however, even if complexity scores remain unchanged, as long as there are supported code modifications, change information will still be displayed.
Execution Mode¶
Analysis is completed locally, comparing workspace snapshots taken at the start and end of each conversation round. Output remains on the plugin side and is not written into the model context.
Installation and Activation¶
Noema requires DSH version ^0.1.7-rc.2 || ^0.2.0-rc.2 || ^0.2.1-alpha.1 and Node.js ^22.19.0 || >=24.0.0.
Install the npm package in the Web Profile and start DSH:
dsh plugin --profile web add dsh-plugin-noema
dsh web
If DSH is already running, you must restart the process and refresh the browser after installation. Noema begins analysis starting from new rounds after installation; you can ask DSH to modify a supported source file to verify if the card appears.
Typical Usage¶
1. Complete a Coding Task Round¶
As usual, let the agent modify code within DSH Web. At the end of the round, Noema automatically compares the workspace from the start and end of the round to generate a complexity change view.
2. Filter Review Focus by Metrics¶
Review the increases or decreases in file-level and function-level metrics. Prioritize opening entries where complexity has risen or nesting has deepened, then make manual judgments combined with the Diff.
3. Configure Analysis File Scope¶
Open Plugins → Noema → Files to analyze in the Web sidebar. Set include/exclude rules based on workspace relative paths, e.g., src/**, **/*.test.ts, or use Add common test exclusions. Configuration applies to the current Profile; exclude rules take precedence over include rules, and changes take effect from the next round after saving.
Noema respects .gitignore by default and excludes common dependency and build directories.
Use Cases and Notes¶
Who it is for: DSH users who care about delivered code quality and want to quickly identify “structural complexity” changes after AI code modifications, rather than just looking at line-count Diffs; projects primarily using TypeScript/TSX, Python, or Go.
Permissions and Security: DSH plugins run with the permissions of the current DSH process and can access files and networks that the process can read and write. Before installation, please review the repository source code and MIT License yourself to ensure compliance with your security and compliance requirements.
Ecosystem Note: DeepSeek Harness adopts an “everything is a plugin” extension approach; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer. This article introduces the community-maintained dsh-plugin-noema, which is not a built-in capability of the official app store.
For more design details and scoring rules, see docs/design.md and docs/scoring.md in the repository.
Conclusion¶
Noema transforms “whether complexity changed due to this task round” from a subjective impression into three comparable metrics, serving as a local auxiliary view for Review within the DSH workflow. To learn more, visit the SkillHub Directory Page and GitHub Repository.