Files
deepseek-harness/packages/util/home
Tianyi Cui 6520f71f94 Merge remote-tracking branch 'origin/codex/invariant-service-seam' into codex/invariant-package-registration-gate
# Conflicts:
#	.agents/notes/implemented/architecture/2026-07-19-package-owned-invariant-service.i18n.yaml
#	docs/core-data-structures/session.md
#	docs/module-graph.md
#	package.json
#	packages/sdk/scripts/tsconfig.json
2026-07-20 00:35:06 +08:00
..

@deepseek-ai/dsh-home

@deepseek-ai/dsh-home is the single owner of DeepSeek Harness home-directory resolution. resolveDshHome(configured?) returns an absolute path using this precedence:

  1. The explicit configured path.
  2. The DSH_HOME environment variable.
  3. The .dsh directory under the current user's home directory.

The resolver reads its inputs at call time. It does not cache a result, create the directory, or mutate process.env; consumers keep ownership of their own configuration fields and pass the configured value when resolving the shared home.

Model Experience

Indirectly, through dsh-tool-bash, which exposes the resolved path to model bash as DSH_HOME without adding a prompt section.

KV Cache effect

No direct invalidation; the named consumer owns any request-prefix changes.

Known Limitations and Deferred Work

  • Resolution only — the resolver makes a path absolute but does not create it, check access, or canonicalize symlinks; each consumer owns those filesystem decisions.