Cavan-Ou / dsh-observation-journal

목록에 있음

Zero-touch runtime telemetry for DeepSeek Harness: every session writes its own report card (task/model/tools/failures/duration) into a human-readable journal. 纯观察者运行事实遥测。

main모델도구스킬세션 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:Cavan-Ou/dsh-observation-journal

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 0fbbaf0동기화 2026. 8. 18.

dsh-observation-journal

Zero-touch runtime telemetry for DeepSeek Harness: every session writes its own report card.

MIT DSH dsh-plugin

简体中文版见 README.zh.md

A pure observer plugin (zero tools registered, zero LLM calls, zero agent involvement). When a session ends, it writes the run's facts — task, model tier, tools, failures, duration, status — into a human-readable journal with an auto-updated stats section.

Why it exists

Failures have a recorder (dsh-fail-logger). Successes and run facts didn't. This is the sibling: what happened — not how to solve it, not what to remember. No tools, no injection, no retrieval. The harness writes passively; humans and projects read.

What it is not (boundaries, stated plainly):

PluginRecordsInjects back into agent?Consumption
thisrun facts (telemetry)neverhuman/project file
dsh-task-plannersolutions ("how to solve")yes (recall)agent planning
dsh-mneme / dsh-memento / dsh-memoryagent memoriesyes (retrieval)agent context
dsh-fail-loggerfailuresvia skillagent skill loading

60-second verification

dsh plugin --profile headless add <repo-or-pkg>   # or copy the repo as a local bundle
dsh --profile headless "run any small task"
cat ~/.dsh/observations.md                        # a journal row + stats section appeared

What the output looks like

The journal is the UI. A marker section that survives manual edits, plus an auto-stats block:

<!-- OBS-JOURNAL:BEGIN -->
| time | sid | task | model | dur | turns | tools | calls | fail | status |
|---|---|---|---|---|---|---|---|---|---|
| 2026-08-14T21:42 | abe96e0f | 阅读 specs/s11-1.md 任务书 | deepseek-v4-pro(max) | 1242 | 1 | read:80,bash:12,edit:9,todo_write:4 | 106 | 0 | completed |
| 2026-08-15T03:04 | 9c1f3a | run any small task | deepseek-v4-flash(max) | 25 | 1 | bash:4,grep:2,glob:1 | 7 | 0 | completed |
<!-- OBS-JOURNAL:END -->

<!-- OBS-JOURNAL:STATS -->
- sessions: 2
- failure rate: 0.0%(0/113)
- top tools: read:80,bash:12,edit:9,todo_write:4,grep:2
- avg duration (s) by model: deepseek-v4-flash(max): 25, deepseek-v4-pro(max): 1242
<!-- OBS-JOURNAL:STATS:END -->

raw sidecar (obsFile + '.jsonl', append-only): full fidelity — todo planning trace (≤5), complete tool counts, failed tools, full model id, full task description, normalized task_hash. This is the v2 material for LLM insight; it is TTL-decoupled from the card.

Config (all optional, patch config: field)

keydefaultdescription
obsFile$DSH_HOME/observations.mdjournal path (point it at a project-level file)
maxRows200card keeps last N rows (raw sidecar unaffected)
markerOBS-JOURNALsection marker id, [A-Za-z0-9-]
redact[]extra redaction regexes (stacked on the built-in secret table)
flushMs300trailing debounce after turn/end

Env: OBS_FILE overrides obsFile; OBS_REPLAY=<session.jsonl> replays real events (test/CI mode).

Reliability

  • 10-column card rows: one row per session — no lossy merging
  • Task title escapes | and newlines; secrets redacted (same table as fail-logger)
  • Cross-process write lock + stale lock reclaim; dispose fallback flushes sessions with no turn/end
  • Tested against real session logs: 14/14 replay tests on 5 real .zstd fixtures (incl. a 2000+ event Pro long-synthesis session), field-by-field cross-checked against independent recomputation; 21-session full replay verified human sections byte-identical

Development

node --check lib/index.js
node --test tests/test.mjs   # needs python3 + zstandard

License

MIT

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨

저장소 정보

언어
JavaScript
라이선스
MIT
마지막 업데이트
2026. 8. 14. 오후 7:07

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.