dsh-system1-observer: Collecting System One Readings at the Agent Loop Seam

Introduction

When running agent loops in DeepSeek Harness (DSH), you usually can only retroactively infer “what the loop was doing” from session logs after the fact. If you want to ask another model (System One) for explanations or evaluations at specific nodes of the loop, and retain every call, skip, and answer as retrievable evidence, you need to hang an observe-only, non-adjudicating plugin onto the harness. Below we introduce the community plugin dsh-system1-observer (maintainer johnlam1968): it asks the System One model at the loop’s “seams”, writes results to a JSONL trace, and does not itself change the loop’s decisions.

What Is This

dsh-system1-observer is a seam observer for DSH. The README summarizes its boundaries in three sentences:

  • At your chosen loop nodes, it calls the System One model to ask what the agent loop is doing;
  • Every call, skip, and answer is written to a JSONL trace;
  • It decides nothing—each listener returns the loop’s own decision by reference; each trace line carries enforcement: "declarative", verified: false. The artifact is evidence of the decision model’s replies at each node, not a “verdict” on the observed session.

The current package version is 0.2.1, license MIT. The plugin is installed in the DSH ecosystem in an “everything is a plugin” fashion; the community directory page is the skillhub.cn entry, and the source and documentation are on GitHub.

Core Features

Runtime Trace

  • Path: ~/.dsh/logs/system1-observer.jsonl, with one line per call, skip, or startup.
  • Can be read via the system1_trace tool, the trace card on the Plugins page, or scripts/trace.mjs in the repo.

Nine DSH Tools

The README lists nine tools in total:

Tool Purpose (per the README)
system1_explain Explains what it can do, the current configuration, and what a reading covers
system1_settings Settings-related
system1_decide Decision-related interface (the plugin itself does not decide for the loop)
system1_evaluate_session Reads the session, segments it, asks questions per segment, aggregates, and writes a report package
system1_measurements Attaches measurement records such as human interpretations
system1_session_subject Session-subject related
system1_question_sets Question sets
system1_battery Battery/batch questioning related
system1_trace Reads the trace

Session lookup depends on dsh-session-index’s session_index_list / session_index_search / refresh (the README states these are millisecond-level lookups and are not among the nine tools bundled with this plugin).

Configuration and UI

  • The Plugins page has a settings card: runtime settings that can be hot-written (hot-load), plus “…” → Observe this session.
  • Configuration changes are written to the trace first; readings before and after a change should not be directly compared (see the caveats below).
  • Full settings, seams, trace format, and the “measured / unverified” declarations are documented in the repo’s manual.

Dependencies and Model Sources

After installation, the profile’s harness must already provide the peerDependencies: @deepseek-ai/cordis and @deepseek-ai/dsh-tools (the plugin does not bundle these). Model invocation can use the profile’s system1 service, or an HTTP wire; the default wireUrl is http://127.0.0.1:8766.

The compatibility test baseline recorded in package.json: Node 25.3.0, DSH 0.1.7-rc.2 (after upgrading Node or DSH, the maintainer recommends re-running npm run ci and updating this field).

Installation and Activation

Replace web with the actual profile name you use:

dsh plugin --profile web add dsh-system1-observer

The README also gives a way to run ./install.sh <profile> from the repo (requires a local clone); choose either this or the command above. Before installing, review the source code and LICENSE yourself, and remember the plugin runs with the current dsh process’s permissions.

Typical Usage

The README’s “Sixty seconds” section gives a reproducible short flow (session lookup requires dsh-session-index to be installed):

system1_explain                                    what it can do, what it is set to now, what a reading covers
session_index_search { query: 'XYZ' }                    find the session  (dsh-session-index)
system1_evaluate_session { sessionId: '…', segmentChars: 57600, package: true }   judge it, and package the run
system1_measurements { action: 'interpret', package: '…', text: '…', by: 'you' }  attach your reading

Notes:

  1. system1_evaluate_session performs the mechanical steps in a single call: read the session, segment it if too large, ask the configured questions for each segment, aggregate in code, and write the report package.
  2. system1_measurements is a separate step where you write a prose interpretation; the README states that numbers cannot automatically be derived into textual explanations.

Before starting, run system1_explain first; it prints the running configuration and the full text of the “reading prerequisites”.

Use Cases and Caveats

Who it’s for

  • Developers who need to collect System One replies at fixed seams of the agent loop, perform session-level evaluations or measurement records, and accept “leaving evidence only, not enforcing for the loop”.
  • Those willing to work with dsh-session-index to locate sessionId, and to read the manual / settings documentation to adjust seams and question sets.

Before using readings (four README caveats)

  1. Long conversations will be summarized unless segmentChars is passed; large sessions should be segmented.
  2. When no question is configured at a point, it records “not asked” rather than guessing.
  3. The built-in questions measurably perform weaker at tool-call nodes; readings of tool-heavy runs will differ.
  4. Readings before and after configuration changes cannot be directly compared; changes are written to the trace first.

The repo’s findings documents issues this instrument has exposed and the measurements that found them; architecture diagrams, measurement depth (G0–G4), question types, and evidence matching are in the links in the README documentation table.

Conclusion

dsh-system1-observer pins System One calls at the loop’s seams, outputs a JSONL trace and optional session evaluation packages, and explicitly marks the declarative, unverified boundary. If you want auditable “second opinion” collection rather than automatic control inside DSH, start with the installation, system1_explain, and the trace path.

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

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

Xiaoye