Introduction¶
The philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” Within the plugin ecosystem, dsh-project-compass provides codebase analysis capabilities. When taking over an unfamiliar project, the greatest cost is often not reading the code itself, but rather not knowing where to start and not knowing what might break when modifying certain parts.
Plugin Overview¶
This is an AI-driven DSH plugin designed for codebase analysis, developer onboarding, and project-level Q&A. The plugin is maintained by lpeixin and is released under the MIT License.
Core Features¶
The plugin can analyze an existing codebase without requiring an internet connection or prior execution of the project.
- Codebase Analysis: Scans the project structure.
- Documentation Generation:
-ARCHITECTURE.md: Architecture documentation covering layering and dependencies.
-MODULE_MAP.md: A module map listing module responsibilities, file lists, and dependency relationships.
-KEY_FLOWS.md: Key flow extraction including flow diagrams and evidence.
-GETTING_STARTED.md: Project onboarding guide. - Project-Level AI Q&A: Provides a citation-backed Q&A interface that returns answers accompanied by evidence references.
Typical Usage¶
Run the following commands in the project root directory to perform analysis and generate reports:
node scripts/compass-cli.mjs analyze . && node scripts/compass-cli.mjs report .
The plugin outputs generated documentation to the <project>/docs/project-compass/ directory. These generated artifacts are ignored by .gitignore by default.
Use Cases and Considerations¶
- Use Cases: Onboarding new developers, taking over legacy projects, enabling technical leads to assess the scope of change impact, and supporting AI agents that require project context.
- Note: The plugin runs with the permissions of the current dsh process. Please review the source code and license before execution. Documentation is primarily written in Chinese.
Conclusion¶
dsh-project-compass addresses the unstructured problem of “understanding a project” by providing evidence-backed documentation. For more details, please refer to the project homepage.