Separate product facts from team policy
| Token | Role | Check |
|---|---|---|
| Documented fact | DeepSeek Harness composes plugins into profiles and can integrate approval policy, shell tooling, Skills, and process sandboxing. | Verify the behavior against the exact installed release and official documentation. |
| Operational recommendation | Start read-only, keep scope small, require review for risky effects, and record evidence for recovery. | Adopt, modify, or reject this policy according to the project risk model. |
Read a small scope before acting
- 01
Read project instructions first
Locate repository-level and nested instruction files, then identify which rules apply to the target path.
- 02
Inspect only the relevant surface
Read the target files, tests, configuration, and recent local changes before expanding the search.
- 03
State the intended change and proof
Name the files in scope, the expected observable result, the verification command, and the rollback point.
- 04
Work in reversible increments
Make one coherent change at a time and inspect the diff before moving to the next boundary.
Use the smallest effective permission set
| Token | Role | Check |
|---|---|---|
| Read-only inspection | Use when diagnosis or planning does not require writes. | Confirm that writes and destructive commands are unavailable. |
| Workspace write | Use for normal repository edits while keeping unrelated paths out of scope. | Review allowed roots, command effects, and approval prompts. |
| Elevated access | Reserve for a specific operation that cannot run inside the narrower boundary. | Approve the exact target and command, then return to the lower privilege level. |
Keep credentials outside prompts and repositories
- Pass only the minimum credential required for the current operation, preferably through a scoped provider or short-lived token.
- Do not paste secrets into chat, project instructions, logs, screenshots, fixtures, or committed environment files.
- Before sharing a diff or artifact, scan tracked and untracked changes for secrets and sensitive local paths.
- If exposure is possible, revoke or rotate first; deleting a file does not invalidate a copied credential.
Design every change for rollback
- 01
Capture the baseline
Record the current revision, configuration, tests, and any external state that the operation may change.
- 02
Prefer non-destructive operations
Use scoped upserts, additive migrations, recoverable file moves, and exact targets instead of broad deletes or resets.
- 03
Inspect the complete diff
Separate intended edits from pre-existing user work and confirm that generated files match their source.
- 04
Test recovery where failure matters
For packages, migrations, or deployments, exercise uninstall, reverse migration, version rollback, or snapshot restore before release.
Verify real behavior, not a completion claim
- Run the narrow test that proves the edited behavior.
- Run type, format, build, and broader regression checks appropriate to the risk.
- Exercise the production build and the actual browser, runtime, database, or package path involved.
- Inspect console, network, logs, database results, and output artifacts instead of relying only on an exit code.
- Record failures honestly; a retry is evidence only when the original cause is understood.
Treat Skills and plugins as supply-chain inputs
A Skill is a reusable instruction package, while a plugin can add executable capabilities. Before use, inspect the source and requested capabilities, pin an immutable version when possible, verify licenses and checksums, test in isolation, document ownership, and define an update and removal path. Re-review changes instead of granting permanent trust to a name.
Diagnose failures from the boundary inward
- Reproduce with the smallest input and a clean or disposable workspace.
- Confirm the active profile, plugin versions, provider configuration, workspace root, permission preset, and reported sandbox enforcement.
- Separate model output problems from tool, shell, network, credential, UI, or persistence failures.
- Inspect structured events and logs, then compare a known-good baseline.
- Change one variable, rerun the same proof, and preserve the failing evidence until the cause is established.
Apply the workflow
Read the primary documentation
Common questions
Before you make a change
Answers about formats, compatibility, evidence, and rollback.
What does this guide verify?
This guide covers: Official architecture and permission documentation; Official Skills and defensive-pattern guidance; Operational recommendations separated from documented facts
What should I do first?
The durable pattern is simple: inspect a small scope, plan an observable change, grant only the required capability, preserve a rollback point, and verify the result outside the agent narrative. The sections below label documented facts separately from operational recommendations.
Which boundary matters most?
Keep commands, validation expectations, generated-file rules, and safety boundaries in versioned project instructions. Treat more specific nested instructions as applying to their subtree. Do not place secrets in an instruction file.
Continue learning
Continue from the verified evidence
Compare published artifacts or return to the installation documentation.