DeepSeek Harness: DSH_HOME and Profile Configuration
DSH_HOME identifies the Harness home used to locate profile directories and shared files. A profile has its own manifest and patch, while a separate home-level patch can affect multiple profiles and is applied later.
DeepSeek Harness: where do the files live?
The CLI behavior reference says dsh --profile <name> boots the named profile at $DSH_HOME/profiles/<name>. The shorthand dsh <name> works when the name immediately follows dsh. plugin is reserved for plugin management in that position, so a profile with that name is selected with dsh --profile plugin.
The CLI package guide describes a profile directory containing package.json, which holds the dsh.profile manifest and out-of-tree plugin dependencies, and cordis.patch.yml, the user's profile patch. The home-level $DSH_HOME/cordis.patch.yml is a separate shared patch. For the standard web profile, the profile patch therefore sits at $DSH_HOME/profiles/web/cordis.patch.yml; selecting another profile changes that profile path, not the location of the shared home patch.
| Location | Purpose | Scope to check |
|---|---|---|
$DSH_HOME/profiles/<name>/package.json | Profile manifest and external dependencies | One selected profile |
$DSH_HOME/profiles/<name>/cordis.patch.yml | User patch for that profile | One selected profile |
$DSH_HOME/cordis.patch.yml | Machine-local shared patch | Profiles with matching rows |
Explicit --patch <path> | Additional invocation overlay | The invocation that supplies it |
The default logs directory in the CLI reference is ~/.dsh/logs/, under the default home. The configuration catalog describes components whose home defaults to DSH_HOME or ~/.dsh; individual plugins may have their own documented path settings. Verify the effective environment and the owning component rather than assuming every possible plugin stores data at the same place.
DeepSeek Harness: how are the layers combined?
The launcher starts with an empty root and applies bundle patches in the profile manifest's dsh.profile.bundles order, then the profile patch, then the home patch, and finally explicit --patch overlays in argument order. Later layers win for the targeted row. A patch replaces that row's entire config value, rather than deep-merging object keys, and can insert new rows.
That means a home patch can override a profile-specific row even though it lives outside the profile directory. It does not mean every profile must have the same behavior: the relevant row must be present or inserted and later inputs can alter the result. Conversely, editing a profile patch does not guarantee it wins over a matching home or explicit overlay. For a fuller treatment of composition, see configuration layer precedence.
Bundle resolution and patch location also answer different questions. The CLI reference says bundle names resolve first from the DSH installation and then from the profile directory. In-box bundles therefore come from the running installation; out-of-tree bundles come from the profile's pnpm-managed dependencies. Copying a patch alone is not necessarily enough to recreate a profile that uses external packages.
DeepSeek Harness: how do I find the configuration in use?
- Identify the machine and process running DSH, its effective home and selected profile. A browser may connect to a server on another machine; inspect the server's files, not a similarly named local directory.
- Find the profile manifest and profile patch under the selected home. Inspect the shared home patch and note any explicit overlays passed by the launcher or wrapper.
- Read the manifest's bundle list and the relevant plugin's configuration documentation. Decide whether a setting belongs to one profile or is intentionally shared across profiles.
- Use
dsh --profile <name> --dump-configwhen appropriate to inspect the composed tree and source comments. The reference says the tree is unevaluated and the dump can initialize missing profile files; it does not execute app argument providers. Check warnings for unmatched targets. - Preserve a copy, make the smallest intended change while retaining the rest of the target row's configuration, and verify the affected behavior. Whether a patch reloads live depends on the final composition and HMR support; otherwise restart.
Do not include --from-default-profile when merely inspecting an existing custom profile: the CLI reference says that option replaces the target, and dump modes accept it too. A configuration dump is not a harmless substitute for knowing which flags are present.
DeepSeek Harness: what changes when the home or profile changes?
Changing the selected profile selects another directory and manifest under the same home. The home-level patch is still shared, so matching rows in the new profile can receive it. Changing the effective home selects a different profile tree and shared patch; a profile name that exists in one home may not exist in another. The shipped web, headless, sdk, sdk-minimal and acp profiles initialize from templates on first use, whereas another missing profile fails with a hint to install a package. A newly initialized directory should not be mistaken for a recovered old profile.
A different result after changing homes can reflect different manifests, external packages, patches or other home-managed data. Compare the actual inputs and versions before copying files between installations. The profile directory contains a manifest and user patch, not a portable guarantee that every dependency or external service is identical on another machine.
If the task is to recover a profile after an interrupted reset, the old directory can remain in a staging location under documented failure conditions. See interrupted profile recovery before attempting another reset. Successful replacement and later boot failure have different implications for the old directory.
DeepSeek Harness: what are the limits and safety boundaries?
Patches and diagnostics can contain credentials, private endpoints or paths. Restrict access and inspect exports before sharing them. The CLI reference also notes a home credentials document and environment layers; copying or publishing the entire home can expose more than the profile configuration. Follow the owning component's documentation before moving or editing sensitive files.
A valid configuration or successful dump does not prove that the selected plugins, settings or resulting operations are safe. The dump displays an unevaluated composition, and a plugin can fail at startup even after its configuration is structurally valid. Verify behavior in the intended environment and retain a recovery copy before changing shared settings.
DeepSeek Harness: what do the terms mean?
- Harness home: the root used for profile and shared local files.
- Profile: a named manifest, dependency set and user patch selected by the launcher.
- Bundle: a package contributing one or more configuration patches.
- Home patch: a shared later configuration layer under the Harness home.
- HMR: hot module replacement, available only when the composition enables it.
Frequently asked questions
Where is a named profile stored?
The CLI reference places it under $DSH_HOME/profiles/<name>.
Does the home patch precede the profile patch?
No. The home patch is applied after the profile patch and can replace a matching row.
Does a config dump show evaluated runtime values?
No. The documented dump shows an unevaluated tree and does not run app argument providers.
Sources
Every claim in this article was checked against the sources below. Community discussions are user reports, not official behavior.
This is an independent community article, not official DeepSeek documentation. Listing a plugin in the registry is not a security review.