Context Studio: Verifying Conversation Context with Branch Diagrams and Deriving New Drafts

Foreword

When running long sessions in DeepSeek Harness (DSH), once the answer deviates from expectations, simply seeing “N agreed items, M tool results” is often not enough. It is more important to clarify: where the deviation starts in the output, if key constraints are still in the input, what the tool actually returned, and which evidence should be kept or excluded first. Scanning the entire history manually is costly and not conducive to bringing the verified segments into new projects or sessions.

h958661134/dsh-plugin-context-studio (Directory Category: Memory) is a DSH-facing Context Studio · Context Debugging plugin: starting from session history, it uses two lines of investigation: the AI-organized Task Map and Raw Records, then selects materials by whole chain or locally, previews, and derives new session drafts. The plugin does not receive an API key; model calls go through the providers configured in DSH. The first organization requires the user to preview the scope and confirm token consumption; subsequent viewing, verification, selection, and draft preparation do not regenerate.

What is This

Maintainer h958661134. Current release version v1.8.0 (MIT License, 1 GitHub Star). One-sentence positioning: turns organized sessions into a verifiable branch console; after selecting materials, it pre-fills the new context, but does not send automatically.

Community directory page: skillhub.cn/plugins/h958661134/dsh-plugin-context-studio. Repository: github.com/h958661134/dsh-plugin-context-studio.

Core Features

Task Map and Branch Console

When there is a success report, the main interface left side shows the organization path, items to verify, and derived drafts; the central canvas displays shared start points and forks (v1.8+ supports layered connections: default shows organization path, clicking connects to verify both ends, at the fork first select direction). Cards display conclusion summary, scope, limitations, entry points for evidence, and token estimates; N01 is the report node number, #35 etc. are original event numbers.

Note: The AI organization path is not equal to the real historical branch or execution order; lack of lines also does not prove they are unrelated, historical facts need to be verified in the “Raw Records”. Old reports can be opened directly without resending model calls; only when a new report explicitly provides paths can the whole chain be selected.

Raw Records

Locate the step where deviation starts along the answer trajectory; compare new inputs, inherited content, replaced content, and the relationship between the answer and tool calls, calls and returns, reference snapshots and injection records. The investigation area lists clues with record basis (tool errors, reference truncation, etc.). You can select segments in the original text to add to the new branch draft, confirm, and use DSH’s startSession to pre-fill an empty session, which the user sends themselves.

Material Selection and Deriving New Context

  1. Whole Chain: Select the path on the left, click “Select Whole Chain”, or click the card “Select to Here”.
  2. Local: Check arbitrary cards; verify node count, original text count, and material estimate at the bottom.
  3. Click “Derive New Context”, fill in new task and select items after completing missing prompts, then “Preview New Session” and “Create Draft” — only pre-fills input boxes, the target project’s instructions are still loaded by DSH.

Derived snapshots are saved in the current browser localStorage (up to 20 items, total approx. 500,000 UTF-16 units), not automatically shared between web and desktop; clearing browser data will cause loss.

First Organization (Token Consumption)

When there is no report, after opening a session in DSH, enter “Context Debugging”, select organization purpose and model, and can set input budget 8k / 16k / 32k, output limit 2k / 4k / 8k. “Preview Organization Scope” is read-only history; only “Confirm Token Consumption and Organize” initiates generation. Opening the page, switching sessions, reading old reports, and previewing do not consume tokens automatically.

Installation and Enablement

Environment Requirements: DeepSeek Harness 0.2.x, Node.js ≥ 22 (dsh engine in package.json is >=0.2.0-rc.0 <0.3.0).

Download dsh-plugin-context-studio-1.8.0.tgz from Release v1.8.0, and execute in the download directory:

dsh plugin --profile desktop add ./dsh-plugin-context-studio-1.8.0.tgz

For the web version of DSH, change --profile desktop to --profile web. After installing or updating, fully exit DSH (including system tray) and reopen.

Independent environment trial example:

DSH_HOME=/tmp/context-studio-try dsh --profile web --no-open --port 4001

You can also install from the source code directory according to the repository README (need to get the source code first then add that directory). The plugin runs with the current DSH process permissions; it is recommended to read the repository source code and MIT license before installing.

Typical Usage

  1. Open the target session in DSH and enter “Context Debugging”.
  2. Existing report: directly hover/click connections on the map to verify “original text at both ends”, and “select into both ends” or “select from start to here” as needed.
  3. Locate suspicious cards in “Pending Verification” on the left, and if necessary, “View in Raw Records” to verify tool and input changes.
  4. After material selection is complete, “Derive New Context” → “Preview New Session” → “Create Draft”, verify the draft in the new session and then send.

Even without a configured model, you can still view raw records, existing maps, and prepare drafts; model directory queries may go online but are not part of generation requests.

Suitable Scenarios and Notes

Suitable for: DSH users who need to trace “which step went wrong” after multiple rounds of dialogue and tool calls, select materials along the AI-annotated path, or restart with a condensed context across projects/new tasks.

Notes:

  • The relationships in the briefing and map are AI-annotated; suspicious points cannot be directly taken as the root cause; absence of warnings does not mean the answer is correct.
  • Organization is a one-time assisted generation, without tool execution, does not send messages to the original session, and does not automatically modify project memory.
  • Reports and source snippets are stored in the local plugin data directory, not replacing original logs; sensitive information requires the user to verify themselves before confirming organization, copying, or bringing into a new session.
  • Derived snapshots are not native DSH forks and do not track subsequent content of the new session.

See CHANGELOG.md for changes in each version.

Conclusion

Context Studio places the “organized results after consuming tokens” on an interactive branch map and read-only raw records, making selecting the whole chain or locally, and deriving new drafts verifiable and recoverable steps. If you need installation instructions and interaction screenshots, refer to the GitHub README and Release; for community index, see SkillHub Directory Page.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye