Files
deepseek-harness/packages/context
Yichen Jiang 70d6e7abd6 fix(file-reference): teach the @-mention guidance directories and the workspace root
Field test: the model received a bare '@niulai/' and guessed a user
mention — the guidance section was present but said only that @-prefixed
paths are files, never covering the trailing-slash directory form, the
workspace-relative root, or the quoted spelling. Rewrite the section to
name all three; the section's presence conditions and every consumer
pin the constant, so nothing else moves.
2026-08-24 17:05:34 +08:00
..
2026-08-21 19:48:58 +08:00
2026-08-21 19:48:58 +08:00

context/ — request-context extensions

English | 中文

Product plugins that add model-visible request context without defining a tool. agent-instructions is included by the default dsh-agent-spine-demo bundle and can be disabled through bundle config; time-context, tmux-context, session-reference, file-reference, and file-reference-local are opt-in.

Package Role ctx key
session-reference/ Bounded snapshots of other sessions ctx.sessionReferenceResolver
file-reference/ File-reference discovery seam and @file grammar ctx.fileReferences
file-reference-local/ Local-filesystem file-reference provider —
time-context/ Current-time and elapsed-time context —
tmux-context/ tmux location context —
agent-instructions/ Workspace-instruction context —

Session references are documented in docs/subsystems/session-reference.md; the agent-instructions decision record owns its per-agent/session isolation and lifecycle split.