Skip to content

About

Cross-session task ledger for DeepSeek Harness: one item per request, step chain, injected into every step, staleness review, choices, grant ledger, scheduler.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

dsh-focus-board

A cross-session focus ledger for DeepSeek Harness (dsh).

Long conversations lose the original intent, several requests inside one conversation blur into each other, and conclusions reached halfway get quietly overtaken by later code. A memory plugin retrieves text; it does not hold an authoritative list of what is still open and what the next step is.

This plugin owns that list: a plain JSON ledger on disk, a focus tool the agent writes through, and a strip above the composer that the human reads — both of you looking at the same rows.

Since 0.178.0 this is the lean edition (f-988). Directions, the machine lane, the host scheduler, self-diagnosis and the tool registry cost more noise and load than they were worth in practice, so they are gone; the digest is no longer an exhaustive inventory but a short summary anchored on what the human said most recently. The full edition lives in git history (≤ 0.177.0).

English | 中文

Install

dsh plugin --profile web add github:YYJ-python/dsh-focus-board

Restart dsh web (or refresh the page if only the client half changed). The entry appears in the global sidebar as 焦点台 / Focus Board.

What you get

  • One item per request. focus open on every new request, focus update while working, focus close with a conclusion. Items carry a step chain (plan), notes, links, stall owner and artifacts.
  • A strip above the composer. Only the current conversation's items, one expanded at a time; "▶ send to this session" delivers the prompt without navigating away.
  • A human-anchored digest, injected every step. Recent human prompts (last 7 days, at most 4 threads) → the items those prompts produced → the whole chain (progress, next step, who is blocking, unfinished prerequisites). No exhaustive inventory.
  • Staleness review. Each item carries a review clock and artifact fingerprints: ⟳ stale Nd, ⚠ basis changed, ⚠ basis missing. Re-check, then focus review to reset.
  • Choices that learn. kind:'choice' with options renders as clickable candidates; focus auto only decides safe, repeatedly-chosen cases. Dangerous actions (push, deploy, delete, tag, spend, force) are never auto-decided.
  • A grant ledger (grant). Local capability questions (push? deploy? write to production?) are answered from a table instead of being re-asked: four modes (always / timed / ask / never), an optional scope, and a pointer to where the credential lives (never the value).
  • Blind-work backfill. When only a human can do the step and the result is invisible, the item asks for a 3–5 point self-check instead of accepting "done".
  • Lessons (lesson). One-line title + body + evidence; consulted three times it can be promoted into a real ~/.dsh/skills/<name>/SKILL.md. Only titles are injected; details on demand.
  • Project outline. Reads docs/项目大纲.md (falls back to AI_GUARD.md); "add to the outline" goes through focus action=outline sub=append (backup first, idempotent by name).

Tools

Tool Purpose
focus open / update / close / drop / list / review / decide / auto / brief / outline / super
grant list / check / upsert / remove — answers "may I do this class of action?"
lesson list / add / update / retire / promote

Data

~/.dsh/focus-board/board.json      # the ledger (compact JSON, cached in-process)
~/.dsh/focus-board/grants.json     # the authorization table
~/.dsh/focus-board/outline.md      # DSH-level project outline
~/.dsh/focus-board/config.json     # optional local config (owner / arrayRoot / giteeEngine)
~/.dsh/secrets/focus-board.env     # optional credentials (Gitee / SSH) — never committed

Panel

Focus / lessons / pending / grants / outline / habits / Gitee / deploy / credentials. The Gitee and deploy tabs talk to a specific machine layout (arrayRoot / giteeEngine in config.json); the ledger itself works without them.

Known trade-offs

  • No background auto-driving: every send is initiated by a human or by the current turn's agent.
  • Recent human prompts are scanned every 5 minutes (last 2 days, at most 12 session tails); the scan only records text — it never creates items or sends prompts.
  • Fixed per-step injection: rules (~700 chars) + focus digest + outline + grants + lesson titles; measured at ~4 ms per step.

About

Cross-session task ledger for DeepSeek Harness: one item per request, step chain, injected into every step, staleness review, choices, grant ledger, scheduler.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages