返回目录
Agent 与会话 插件

agentdiary-dsh-plugin

vicfei/agentdiary-dsh-plugin

agentdiary for DeepSeek Harness — your agents keep a diary, in your own git repo

Stars
0
Forks
0
Issues
0
更新
5 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:vicfei/agentdiary-dsh-plugin

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

agentdiary for DeepSeek Harness

Your agents keep a diary — in your own git repo.

A DeepSeek Harness plugin that subscribes to the durable session/event stream and appends one diary entry per settled turn into a local git repository you own:

sessions/2026-11/2026-11-12-<node>.md   # append-only, one file per node per day
  • Git-native — no server, no cloud, no lock-in; the repo is yours (GitHub/Gitea/bare, anything).
  • Zero-dependency core — the diary writer is pure Node (fs + git).
  • Bilingual display metadata (en/zh).

Sibling of the agentdiary CLI (personal agent diary across machines) and dsh-super-agent (admission control & trust ladder for any CLI agent).

When a diary entry appears

One entry per settled turn — when the harness emits turn/end with reason completed, error, max-tokens, or aborted. Since 0.2.0 the entry is rich (pure extraction, no model calls): the tool mix (tools: bash×3 · edit×1), the event mix, and the agent's own closing words, tail-quoted (said: "…all 12 tests pass now."), plus the duration and how it ended.

Reasons you will not see as entries: blocked (retried as a new turn), interrupted/forked (bookkeeping closers) — their events stay on the books and surface with the next settled turn, never dropped.

Why not one entry per session? v0.1.0 keyed on session/disposed and never wrote a single entry: in the harness (packages/core/session), disposal fires only when a session is detached from the store — typically app shutdown — not when a task completes or is archived. v0.1.1 keys on turn settlement; disposal remains as a best-effort sweep ("session torn down mid-turn") so interrupted work still gets a line.

Install

From the plugin market (Settings → Plugin Market), or:

dsh plugin --profile web add dsh-agentdiary-plugin

Deployment notes (learned the hard way on live nodes):

  • The web app runs the web profile — a plain dsh plugin add installs into default and never loads. Use --profile web (or install from the market inside the web UI, which targets the right profile).
  • Port 3080 is often taken; start with dsh web --port <n> instead of hunting ghosts.
  • Node ≥ 22.22.3 / 24 (the harness's own engines floor).

Configure

Option Meaning Default
repo absolute path to your diary git repo (created if missing) — (plugin disabled when empty)
node this machine's short name in the diary dsh-host
commitEveryEntry commit+push after every entry vs on session end true

Verification checklist (maintainer)

  1. Exact session/event Cordis signature RESOLVED 2026-11-12 (verified against dsh-loopx-plugin observer + live boot): ctx.on('session/event', (session, event)) — event is the SECOND arg; inject: []; Config must be a schemastery Schema.object; profile layer requires a dsh.bundle.patch manifest. Both entries activate clean in a headless boot.
  2. Live smoke PASSED 2026-11-18 with 0.1.3 (win11, real web turn): the day file gains a turn N completed entry with the event mix, commitEveryEntry commits land on the chain, zero warnings. Three-round convergence to get here: 0.1.0 keyed on session/disposed (store-detach only — see above); 0.1.1 shipped a stale lib/ (publish now runs prepack); 0.1.2 read turn/reason flat but the harness wraps them in event.data (SessionEvent = { type, seq, time, data }); 0.1.3 unwraps with a flat fallback and warns on unknown reason.kind.
  3. dsh-plugin.org submission: this repo is public with the dsh-plugin topic; npm 0.1.3 live; 0.2.0 adds rich entries (tools + quoted closing text).

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类Agent 与会话
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: sessions。