Introduction¶
DeepSeek Harness (DSH) adopts a plugin-based architecture, designed to solve code engineering problems through tool combination. Facing large codebases, traditional global search or file reading is often inefficient or causes context overflow. The dsh-fovea plugin provides a “fovea-focused” repository intelligence solution: compile the codebase into a weighted typed graph, deliver high-precision information in regions the model is attending to, and keep costs low in regions it is not.
Core Capabilities¶
The plugin provides the following core features:
- Repository Overview and Localization:
fovea_sketchis for initial work in an unfamiliar repository, emphasizing production anchors and structural hubs while compressing test and remote areas;fovea_focusplaces the focus on symbols, routes, concepts, or files and reveals their semantic neighborhood;fovea_dwellexpands the current focus scope without repeating already disclosed neighborhoods (default diffusion factor is 2);fovea_impactranks files by “impact radius” and review order before cross-file changes, based on causal paths. - Interaction and Sync: When
ctx.commandsexists, register the/foveacommand, providing commands such as status, reset, sketch, focus, dwell, impact; Whenctx.skillsexists, register thefoveaskill; provide silent baseline calibration, and log guidance messages when the repository structure drifts significantly.
Installation and Prerequisites¶
Before installing, ensure your environment meets the following dependency requirements:
- Node.js
^22.19.0 || >=24.0.0 - pnpm
11.20.0 - DeepSeek Harness service version
0.1.0-rc.6 - Cordis
^4.0.1 - Git (for tracking file discovery, baseline impact, and co-change history)
The installation command is:
pnpm dlx @monotykamary/dsh@0.1.0-rc.7 plugin --profile web add dsh-fovea
Typical Workflow¶
The recommended invocation order is:
- When starting work in an unfamiliar repository, use
fovea_sketchto emphasize production anchors and structural hubs. - Use
fovea_focuson the most concrete task terms (can be combined with path, language, and kind filters). - Use native grep or file-reading tools to precisely inspect the suggested windows.
- If the initial neighborhood is too narrow, use
fovea_dwellto expand the focus. - Before finalizing cross-file changes, use
fovea_impactto assess the consequences.
Command-line interaction examples:
/fovea status
/fovea focus <query>
/fovea dwell [factor]
/fovea impact [files...]
Notes¶
- Not a replacement for native tools: Fovea is intended to decide “where” and “why”; native grep or precise file reading should still be used to inspect the selected source code.
- Configuration fault tolerance: Unknown configuration keys cause the plugin to fail to load.
- Subprocess environment: The remote subprocess provider cannot execute host package binaries. In that execution environment, install ast-grep or set
FOVEA_AST_GREPto a path visible to that provider.
Ecosystem and Links¶
dsh-fovea is part of the DeepSeek Harness ecosystem, maintained by monotykamary under the MIT license.
- Plugin directory: https://www.skillhub.cn/plugins/monotykamary/dsh-fovea
- Source code: https://github.com/monotykamary/dsh-fovea