context/

September 4, 2026 · View on GitHub

English | 中文

Summary

The context group provides plugins that add model-visible context to each request without defining any tool: workspace instruction files become guidance, @file mentions offer path completion, other sessions can be referenced as bounded snapshots, and the model can see the current time and the agent's tmux location. All of them are opt-in except agent-instructions, which dsh-base includes by default and a profile patch can disable. Context is durable: injected instructions and references enter session history as user-role messages, so they persist, replay, and compact like other conversation content. This page maps the group; each package README owns the per-package contract.

Table of Contents


Packages

PackageRolectx key
agent-instructions/Loads AGENTS.md/CLAUDE.md workspace instructions into context and refreshes them after file edits
session-reference/References other sessions: mention one and its bounded read-only snapshot becomes contextctx.sessionReferenceResolver
file-reference/@file mention discovery and the shared mention grammar for host-backed UIsctx.fileReferences
file-reference-local/Local-workspace completion provider for @file mentions
time-context/Current time, browser zone, and elapsed time per step
tmux-context/The agent's tmux session, window, and pane location


Dev Note

Working context for maintainers — click to expand

None.