Files
deepseek-harness/docs/core-guidelines

DSH Core Guidelines

English | 中文

Summary

Rules for writing DeepSeek Harness code, in the style of the C++ Core Guidelines. Each rule has a stable ID and the parts that G.1 defines.

Sections

Status and scope

These guidelines are to DeepSeek Harness what the C++ Core Guidelines are to C++: the repository's coding standard for how to write code, independent of what the code does.

A rule belongs here when it would still apply if the code implemented a different feature. Examples are rules about interfaces, types, errors, resource ownership, concurrency, state, component structure, and data formats.

Business-domain rules do not belong here. A rule that describes what one feature, subsystem, or product decision must do lives with its owner: the package README, the subsystem page, or an Agent Note. Review checks for one artifact's known bug classes live in defensive patterns.

Introduction

Before you finish a change, review the code it adds or modifies against every rule in these guidelines. Fix each violation, or state in the change why the rule does not apply. A change does not have to migrate existing code it does not otherwise touch.

Cite a rule by its ID, for example "violates G.2". Read the defensive patterns for the artifacts you change as well.