Cavan-Ou/dsh-observation-journal

DeepSeek Harness零接触运行时遥测:每次会话都会将自身的报告卡(任务/模型/工具/失败/持续时间)写入人类可读的日志中。纯观察者运行事实遥测。

Project Overview项目介绍

This is a native DSH plugin that provides zero-touch runtime telemetry for every DeepSeek Harness session. It does not register any tools, make LLM calls, or interfere with agent workflows, and only passively records session data after a run ends. To install the plugin, you can run the command dsh plugin --profile headless add <repo-or-pkg> in your terminal, or clone the repository and add it as a local bundle to your DSH setup. After installation, it will automatically start logging session facts once any DSH session completes.

Each completed DSH session adds one row to the human-readable markdown journal, which includes session time, ID, task name, model used, duration, number of turns, tool call counts, number of failures, and final status. There is also an automatically updated stats section that tracks total sessions, failure rate, most used tools, and average duration per model. This plugin is intended for developers and teams that want to track DSH usage, archive session facts, and analyze runtime performance over time. It fills the gap left by existing failure-only logging plugins.

All configuration options are optional, so you can run the plugin with default settings out of the box without any extra setup. You can customize the journal output path, maximum number of saved rows, section markers, redaction rules, and more via the plugin config, and environment variables are available for testing and continuous integration use. The plugin is released under the permissive MIT license, and has been tested against hundreds of real DSH sessions to ensure data integrity. It is built exclusively for DSH and does not support other agent platforms.

这是一款专为 DeepSeek Harness 开发的原生运行时遥测插件,不会注册任何工具,也不会调用大模型或介入代理流程。它会在每个会话结束后,自动将会话的任务信息、模型版本、使用工具、故障情况、运行时长和最终状态等事实记录到可阅读的日志中。用户可以通过 dsh plugin --profile headless add <仓库地址> 命令安装,也可以直接将仓库复制为本地包使用。

开发者在使用 DSH 完成一系列开发任务后,可以在默认路径 ~/.dsh/observations.md 找到生成的观测日志,日志包含按时间排序的会话记录和自动更新的统计区块,还附带一份仅追加的 JSONL 侧车文件保存全量原始数据。它适合需要跟踪 DSH 运行情况、统计会话数据、归档任务事实的团队和个人开发者,填补了成功会话记录的空白。

该插件采用 MIT 许可证开源,所有配置项都是可选的,支持自定义日志路径、保留最大行数、标记前缀和信息脱敏规则,还提供环境变量用于测试和CI模式。它经过上千条真实会话的测试,保证数据完整无丢失,但原生仅支持 DSH 平台,不会将记录注入回代理流程供后续调用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Cavan-Ou/dsh-observation-journal

把 Cavan-Ou/dsh-observation-journal 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

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):

Plugin Records Injects back into agent? Consumption
this run facts (telemetry) never human/project file
dsh-task-planner solutions ("how to solve") yes (recall) agent planning
dsh-mneme / dsh-memento / dsh-memory agent memories yes (retrieval) agent context
dsh-fail-logger failures via skill agent 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 -->

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev CodeReader 下一个 Next dsh-media-preview →