Files
deepseek-harness/packages/context
Yichen Jiang 8e9da9debf refactor(session-reference): label discovery from projections alone
A title now comes from an attached session's live projection cut or a cold
one's durable checkpoint, and from nothing else. Attachment is decided by the
session store at read time, so a session that attached after the listing is no
longer answered from a checkpoint its log has moved past — the stale-title case
`api-session.list` already handles this way.

The log fold and its per-log memo are gone. Folding one title costs a whole
log, and this call sits under every keystroke; a session no projection answers
for is labeled by its id and regains its title the first time it is opened.

`lib` leaves the default exclusions: Ruby gems and many npm packages keep
sources there, and the miss would be silent and total. A traversal whose root
is unreadable now rejects instead of publishing an empty index over entries
that are still good, which is what the stale-while-revalidate path claimed but
could not do while every readdir error was swallowed. A drill marks the menu
drilled only when its edit actually reached the draft.

Refs #3154
Refs #3180
2026-08-27 15:21:08 +08:00
..

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 ships enabled in the default dsh-agent-spine-demo bundle and can be disabled through bundle config. 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


Dev Note

Working context for maintainers — click to expand

None.