Keep the master refresh separate from the V3-to-V4 lossless-conversion and checkpoint JSON fixes so the release baseline and each feature change remain independently reviewable. This checkpoint extends the already-published 4435f6f519 merge before the #4583 child is rebased. Integrate exactly master 5ec3ffe337062ab5bb4955933008afe8d0a0b915. Its #4156 changes add watched file/document refresh, filesystem watch readiness, directory expansion restoration, and chat bottom-follow fixes. They update shared filesystem and Client consumers without changing Session format or snapshot generation. The merge has no conflicts. Its 114-file scope and line counts match upstream; code and prose additions/removals are unchanged. Only the two translation pairing records incorporate the release branch's retained V4 documentation. Validation: 762 owner tests passed (1 platform skip), 11 focused Web tests passed, full build passed, and all 41 doc-sync checks passed. Runtime closure and Client package checks passed; fs-local publint completed with the existing source-wildcard export warning.
description, kind
| description | kind |
|---|---|
| The context group map: request-context plugins that add durable, model-visible context without defining tools, for users and maintainers navigating the group. | package-group |
context/ — Request-context plugins
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
| Package | Role | ctx 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 context | ctx.sessionReferenceResolver |
file-reference/ |
@file mention discovery and the shared mention grammar for host-backed UIs |
ctx.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 | — |
Related documentation
- Session-reference subsystem — canonical mention URIs, snapshot semantics, and the stable error taxonomy.
- Workspace-context decision record — why instruction context is per-agent/per-session and durably logged.
- Generated configuration catalog — every config field the group's packages accept.
Dev Note
Working context for maintainers — click to expand
None.