Skip to content
Back to Learn
13Operations12 min readBeginner

GUIDE 10 · OPERATIONS

DeepSeek Harness Best Practices

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.

Last verified
Aug 21, 2026
Runtime
0.1.0-rc.8
Verified scope
  • Official architecture and permission documentation
  • Official Skills and defensive-pattern guidance
  • Operational recommendations separated from documented facts
On this page
  1. Separate product facts from team policy
  2. Read a small scope before acting
  3. Use the smallest effective permission set
  4. Keep credentials outside prompts and repositories
  5. Design every change for rollback
  6. Verify real behavior, not a completion claim
  7. Treat Skills and plugins as supply-chain inputs
  8. Diagnose failures from the boundary inward

Separate product facts from team policy

TokenRoleCheck
Documented factDeepSeek 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 recommendationStart 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

  1. 01

    Read project instructions first

    Locate repository-level and nested instruction files, then identify which rules apply to the target path.

  2. 02

    Inspect only the relevant surface

    Read the target files, tests, configuration, and recent local changes before expanding the search.

  3. 03

    State the intended change and proof

    Name the files in scope, the expected observable result, the verification command, and the rollback point.

  4. 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

TokenRoleCheck
Read-only inspectionUse when diagnosis or planning does not require writes.Confirm that writes and destructive commands are unavailable.
Workspace writeUse for normal repository edits while keeping unrelated paths out of scope.Review allowed roots, command effects, and approval prompts.
Elevated accessReserve 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

  1. 01

    Capture the baseline

    Record the current revision, configuration, tests, and any external state that the operation may change.

  2. 02

    Prefer non-destructive operations

    Use scoped upserts, additive migrations, recoverable file moves, and exact targets instead of broad deletes or resets.

  3. 03

    Inspect the complete diff

    Separate intended edits from pre-existing user work and confirm that generated files match their source.

  4. 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

  1. Run the narrow test that proves the edited behavior.
  2. Run type, format, build, and broader regression checks appropriate to the risk.
  3. Exercise the production build and the actual browser, runtime, database, or package path involved.
  4. Inspect console, network, logs, database results, and output artifacts instead of relying only on an exit code.
  5. 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

  1. Reproduce with the smallest input and a clean or disposable workspace.
  2. Confirm the active profile, plugin versions, provider configuration, workspace root, permission preset, and reported sandbox enforcement.
  3. Separate model output problems from tool, shell, network, credential, UI, or persistence failures.
  4. Inspect structured events and logs, then compare a known-good baseline.
  5. 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.