DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

ytzhao /

ytzhao/dsh-session-cwd

Verified

An always-on sidebar card showing every running, waiting-for-answer, or finished-but-unread DSH session with its working directory, plus a full searchable directory page.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@bb152822

dsh-session-cwd

An always-on card for DeepSeek Harness (dsh) that answers "which of my sessions is running where, and which one is waiting for me?" — every running, waiting-for-answer, or finished-but-unread session with its working directory, one click away.

The Active sessions card at the sidebar foot beside the full directory page

What you get

  • A card at the sidebar foot, above Settings, titled Active sessions. It lists the sessions that need a human:

    • Running — the agent is working;
    • Waiting for you — an answer, an approval, or a plan review;
    • Unread — a turn finished while you were elsewhere.
  • Each row shows the session title, its state, and its working directory. Selecting a row opens that session.

  • Ordered by attention: waiting first, then running, then unread, newest first within each group. Four rows fit; the rest collapse into N more, which opens the full page.

  • An empty card stays put (Active sessions 0) instead of disappearing, so the entry point never moves.

  • It breathes only when needed: an amber ring while something waits for you, a blue ring while work is running, nothing when only unread items remain. prefers-reduced-motion turns the animation off.

  • A one-time first-run guide explains the row jump, the three dots, All, and the chevron. ? replays it. The chevron folds the card to a single line, and the choice survives reloads.

  • All opens a full page grouped by workspace, with each workspace's absolute path, search across workspace/session/path, Copy per row or Copy all paths, Refresh, and a Show every session toggle. A session whose directory changed shows Directory changed and the effective path. Each workspace folds after six rows. Close or Esc returns to the conversation without switching sessions (Esc clears the search first); the host draws no chrome for this panel, so the page carries its own exit.

Requirements

  • DSH 0.2.2 (rc.5 or newer) — declared as engines.dsh; the Web client, in the Desktop app or dsh web.
  • No build step, no runtime dependencies, no peer packages.

Install

dsh plugin --profile <profile> add dsh-session-cwd

Or from this repository, which needs no build:

dsh plugin --profile <profile> add github:ytzhao/dsh-session-cwd

In Desktop: Plugins → Add plugin, then paste the package name or the repository URL. After installing, the card appears at the sidebar foot; if the page was already open, reload once.

Privacy and permissions

Read-only by design:

  • Data comes from snapshots the Web client already holds — sessions (cwd, the working-directory projection), session status, and workspaces. Nothing is fetched.
  • No network requests, no filesystem access, no Host RPC, no credentials, and no other plugin's DOM or styles.
  • The only things stored are two localStorage keys: dsh-session-cwd.glance.collapsed (folded or not) and dsh-session-cwd.guide.seen (the guide was read). Blocked storage falls back to defaults and changes nothing else.
  • Removing the bundle makes the card, the page, and the entries disappear.

Limitations

  • The shown directory is the session's recorded directory: a subprocess that cds on its own does not change it.
  • The 56-pixel collapsed rail has no room, so the card steps aside; expand the sidebar to get it back.
  • Copy needs navigator.clipboard; a host that denies it leaves the button without feedback.
  • Archived sessions, subagent sessions, and blank sessions are not listed, matching the DSH sidebar.
  • Show every session is a temporary view; long histories are capped by each workspace's fold.

Development

There is no build: client.js is a lazy-CJS bundle that the host serves as-is, and index.js is an empty Host half whose only job is to carry the dsh.client declaration.

npm test        # offline harness: renders the card and the page, clicks their controls, 59 assertions

To try a local checkout, link it into a profile and reload the plugin page (the browser keeps the previous module until the row remounts):

dsh plugin --profile <profile> add /path/to/dsh-session-cwd
File Role
index.js Host half: empty apply, carries the bundle row
client.js Browser half: the sidebar card and the keyed main page
cordis.patch.yml Inserts the bundle's Loader row
locale/{en,zh}.json Plugin page title, description, and detail document
docs/DETAIL*.md + docs/preview.svg The one-image detail page
icon.svg Plugin icon

License

MIT. Chinese documentation: README.zh.md.

—/ 5

No ratings yet

Verified DSH bundle

Commit bb1528220806

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout