Project guides
What Should You Check Before Letting Harness Edit Your Repository?
Prepare a limited Harness workspace with a recoverable baseline, reviewed access and a clear diff-checking process before allowing repository edits.
1. Start Harness workspace preparation with the risk boundary
The official safety notice (opens in a new tab) says Harness is experimental, has not been security-audited and should not be treated as secure or production-ready. It recommends minimal access, backups and a disposable environment. Permission controls and approval prompts do not guarantee isolation.
For confidential work, follow your organization’s rules on code and provider access. If the project cannot be exposed to the configured service or runtime, a smaller prompt is not permission to proceed.
2. Make a file inventory before choosing the workspace
Write down the exact task and the smallest set of files needed. “Explain a test failure in a sample parser” is easier to scope than “improve the repository.” Keep real customer records, deployment credentials and unrelated work outside the environment.
A folder named “sandbox” is just a name. Examine what the environment can actually access. Shared folders, mounted directories and inherited credentials may make more material reachable than the visible project suggests. If you cannot explain the boundary, pause and ask whoever manages the environment.
- Choose a disposable copy containing synthetic examples where possible.
- Exclude unnecessary configuration, logs and private data before granting access.
- Confirm the selected path instead of relying on a similar folder name.
3. Keep a recoverable baseline outside the editing environment
A repository backup should cover everything you would need to recover, including important untracked files. Record the current revision or another clear baseline label, then verify that your recovery copy opens. Keep that copy somewhere the editing process cannot modify.
A branch helps organize changes, but does not isolate the computer or preserve every local file. Decide how you would recover before approving an edit. Verify that the backup includes the files you need.
For an initial trial, create a tiny example with a known expected result. It might contain a short README and one deliberately misspelled heading. You can inspect that change directly without involving build tools or production credentials.
4. Define approval boundaries in concrete terms
Write a short task boundary: which file may change, what outcome you want, and which actions need a separate decision. For the README example, permit only the heading correction and require a pause before any command, dependency change, network action or edit elsewhere.
The Web UI guide (opens in a new tab) says approvals depend on the active permission policy. Review that policy separately. A sentence in your prompt communicates intent; it is not an operating-system restriction or a promise that all consequential actions will trigger a prompt.
Read any approval request’s target and effect. A request involving a different directory, broad access or unfamiliar setup work deserves a new review.
5. Inspect the diff and the workspace after the task
Compare the result with your baseline using a diff review tool you already trust. Check the file list before reading individual lines: did the task create, delete or rename anything unexpected? Then inspect the intended edit, formatting changes and nearby content.
Use existing, understood checks appropriate to the change. A documentation correction may need only inspection; code changes may need relevant tests whose effects you understand. Do not run an unfamiliar repair command simply to make a failing check disappear.
Keep an acceptance note: “Only the expected heading changed; no other file differences observed.” That is a bounded observation, not proof of runtime security. Investigate unexpected changes before carrying work into your real project.
Conclusion: prepare a task you can inspect and recover
Harness workspace preparation is useful when you can limit exposure, explain the requested change and verify the result. The DeepSeekDSH community guide (opens in a new tab) can help locate setup references, but your access decisions need to reflect your own environment and the upstream safety notice.
Sources and scope
Public product information reviewed on 2026-10-09. Features, availability and limits can change. This guide does not claim hands-on product testing.
FAQ
Common questions
Is a separate Git branch enough isolation?
No. A branch organizes repository history; it does not define what the process can reach on the host. Review environment access and keep a separate recoverable baseline.
Can I trust approval prompts as the only safeguard?
No. Upstream explicitly warns against treating controls as a guarantee. Review access before the session as well as actions during it.
Should my first test use the real repository?
Prefer a disposable example with no valuable data. Use the trial to check the workflow, while recognizing that passing it does not prove a real project is safe.