Files
deepseek-harness/packages/context
Huanqi Cao 5d6db0cd56 fix: stub DSH_HOME in 'labels the default DSH home' test
The test 'labels the default DSH home as ~/.dsh when HOME points at the
configured default' mocks node:os to return a temporary home directory
and expects discoverBaselineInstructionFiles to fall back to the default
~/.dsh path. However, when DSH_HOME is externally set (e.g. in the DSH
agent environment), resolveDshHome(undefined) reads that external value
instead of falling back to defaultDshHome(), causing the test to look for
AGENTS.md in the wrong directory and return an empty result.

Stub DSH_HOME to undefined so the test controls the full resolution path.
2026-07-21 13:08:34 +08:00
..
2026-07-20 20:16:41 +08:00
2026-07-19 22:52:03 +08:00

context/ — request-context extensions

Product plugins that add model-visible request context without defining a tool or service. workspace-context is included by the default dsh-agent-spine-demo bundle and can be disabled through bundle config; time-context is opt-in.

Package Role ctx key
time-context/ Durable per-step current time and elapsed-time context (none)
workspace-context/ AGENTS.md/CLAUDE.md workspace context loader (listens on agent/session-prefix + tools/post-execute)

The workspace-context decision record explains its per-agent/session isolation and lifecycle split.