Vai al contenuto principale
H

dsh-health-management

hebin-cl/dsh-health-management

Family health workspace for DeepSeek Harness: record vitals, labs and body composition for up to 8 family members, track metabolic goals against reference ranges and target gaps plus a 12-week lean-muscle season with a weekly ledger, keep a health archive of trends, photos, condition tags and medical documents, and browse a Hangzhou Yuhang venue pilot. Records only; no diagnosis, treatment or medication advice. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Installazione

dsh plugin --profile web add github:hebin-cl/dsh-health-management

README

Health Management for DeepSeek Harness

DSH plugin license dsh

A family health workspace for DeepSeek Harness: record measurements, manage goals, and see the gap between what you want to manage and what the data says — without turning the panel into a medical chart.

The flagship view is Lean Account / 薄肌账户: four behaviour accounts (training, protein, sleep, water), a 12-week season, a weekly ledger, and a body-composition statement that is observation-only. The plugin also ships a metabolic monitoring view, progress photos, a health archive, and agent tools for the same data.

What's new in 1.3.0

  • Four focused tabs: 概览 / 赛季 / 档案 / 发现.
  • Season is now its own section: hero, W4/W8/W12 checkpoints, weekly ledger, share card and squad entry.
  • Archive is the single home for trends, photos and medical documents, with counts and quick actions.
  • Discover ships a Hangzhou Yuhang district pilot with 10 public venues, search, filters, source links and local favourites — with open hours/fees marked "check on site".
  • Local squad MVP: invite-only behaviour leaderboard, opt-in, local-only; no remote service yet.
  • Clear unit: deposits are measured in 笔 (one account's one daily deposit); season time is 周.

The squad and venue data are MVP/pilot features and are labelled as such in the UI. The squad store is local (community.json); venue data is curated from public sources and may change.

Records and descriptive statistics only. Not a medical device. No diagnosis, treatment, medication, training-plan, recipe, or supplement advice. Reference ranges are population references, not personal targets. Always follow a clinician's advice.

Overview

The screenshot shows the visual system from the 1.2 baseline; 1.3 adds the season, archive and discover tabs. Updated captures will follow.

Features

  • Family members — up to 8 profiles, sex-aware reference ranges, optional risk level for LDL-C targets.
  • Me first — opens on 我 (self); other members appear only after the user adds them.
  • Metrics — blood pressure, heart rate, fasting/postprandial glucose, HbA1c, lipids, uric acid, weight, BMI, waist, body fat, skeletal muscle, protein, water, sleep, strength-training minutes.
  • Management goals — metabolic (core metabolic monitoring) and lean_muscle (12-week lean account).
  • Lean Account — 大练 / 蛋白 / 大睡 / 大水 accounts; daily deposits; 7×4 weekly ledger; season checkpoints; season review; new season without deleting history.
  • Body-composition statement — body fat, weight, muscle and waist are shown with reference bands and a season baseline delta; never scored as pass/fail.
  • Progress photos — daily shot, photo wall, two-photo compare, season compare; files stay on this machine.
  • Health archive — medical records, prescriptions, lab reports, imaging and other documents; condition tags are separate from management goals.
  • Agent tools — the model can read/write the same data: health_record, health_query, health_stats, health_goal_*, health_goal_review, health_goal_start_season, health_condition_*, health_document_*, health_member_*, health_metrics, health_diagnose.
  • Dark, focused UI — the hero and the content below share one graphite/neon design; the metabolic view remains deliberately restrained.

Install

Requires DeepSeek Harness >=0.2.2-rc.1 <0.3.0 and Node.js 22+.

dsh plugin --profile <your-profile> add github:hebin-cl/dsh-health-management

From a release tarball

Download dsh-health-management.tgz from Releases and install the local file:

dsh plugin --profile <your-profile> add ./dsh-health-management.tgz

The npm package is not published in this release; GitHub or the release tarball are the supported sources. The package name stays dsh-health-management for a future npm release.

After install, refresh the Web UI (or restart the host if the profile asks for it).

Discover it in the DSH plugin market

  • A submission PR is open against the curated awesome-dsh-plugin registry (#15394); the entry is market/hebin-cl__dsh-health-management.yml. Once merged, it becomes searchable in the dshmarket Discover tab and installable with one click.

  • Until then, add the included native format-1 index from Plugins → Discover → Index sources:

    https://raw.githubusercontent.com/hebin-cl/dsh-health-management/main/index.json
    

    index.json is pinned to the initial release commit. If you rewrite history or publish a new tag, regenerate it with node scripts/build-market-index.mjs --owner hebin-cl --source git.

Quick start

  1. Open Health Management in the sidebar.
  2. Add a member (or use the seeded “我”).
  3. Set a goal: 代谢综合征管理 or 薄肌管理.
  4. For 薄肌: use 今日存入 for training/protein/sleep/water, 每日一拍 for a photo, and 本周对账单 to see the 7×4 grid. Open 赛季 for checkpoints W4/W8/W12, share card and squad.
  5. Use 档案 for trends, photos and medical documents; 发现 for the Yuhang venue pilot and future services.
  6. Use the top-bar 目标 to activate/pause a goal or set personal target values. Goal settings are intentionally not repeated as a card on the lean dashboard.

Data and privacy

  • Data is stored locally in .dsh-health/ under the Harness working directory (or the configured dataDir): members.json, records.json, conditions.json, documents.json, goals.json, photos.json, and photos/<memberId>/.
  • Photos are served by a same-origin route, validated as JPEG/PNG/WebP, and never uploaded to a cloud service. Deleting a photo deletes its file and metadata.
  • No analytics, no telemetry, and no external network calls. The panel only talks to same-origin Host routes on this machine.
  • The local squad MVP stores community.json next to the health data; it never leaves the machine. The invite-code copy uses a local Windows clipboard bridge.
  • Venue data is a curated Yuhang pilot from public sources, served by the local Host; it is not a live booking API.
  • Back up .dsh-health/ to keep your data; deleting a member cascades their records, goals, photos and archive.

Safety boundaries

The plugin and its agent prompt enforce the following:

  • No diagnosis, disease inference, medication/stop-medication/dose advice, or treatment plans.
  • Lean-muscle goals only record and display behaviour, reference ranges and trends. No personalised training plan, exercise prescription, recipe, supplement advice, or effect promise.
  • Body composition is observation-only: no pass/fail score, no ranking, no body shaming, no comparison with other people.
  • Management goals are intentions, not diagnoses. Condition tags are separate facts and are never inferred from values.
  • Special populations (pregnancy, eating disorders, comorbid disease) should consult a clinician or registered dietitian.

Development

No build step. The host half is ESM under lib/ + index.js; the Web half is a browser module in client.js loaded through the DSH module loader.

npm test                 # node test/smoke.mjs
npm run check            # node --check for every source file + smoke

The smoke test uses a temporary directory; it never touches your real .dsh-health/ data.

Project layout

index.js              Host entry: tools, HTTP routes, system-prompt safety section
client.js             Web panel (dark dashboard, Lean Account, photos, archive)
lib/metrics.js        Metric registry and reference bands
lib/goals.js          Goal catalog + engine (accounts, season, ledger, statement)
lib/service.js        Storage and domain operations
lib/community.js      Local squad MVP store (invite-only, local-only)
lib/venues.js         Curated Hangzhou Yuhang venue pilot
lib/conditions.js     Condition tags and clinical target gaps
lib/store.js          Atomic JSON store
test/smoke.mjs        End-to-end service tests
assets/               Icon + hero art + screenshots
market/               Curated-registry submission template
scripts/              Checks and market-index generator

Market listing

The submission PR is #15394; it adds the single entry file kept here as market/hebin-cl__dsh-health-management.yml as data/plugins/hebin-cl__dsh-health-management.yml (PR body: market/PR-BODY.md).

  1. The repository declares dsh.bundle, has the dsh-plugin topic, and is at least 1 day old.
  2. The install sources are the GitHub source and the prebuilt dsh-health-management.tgz attached to a GitHub Release (the included workflow does this on a tag). npm is optional and not required for listing.
  3. The icon: is a GitHub-hosted 180×180 PNG and the tarball: URL uses a version-free asset name on latest/download/, so it does not rot on the next release.
  4. Screenshots are declared in this repository via screenshots.json (four relative paths).
  5. The repository already includes index.json for the host's native Discover → Index sources.

License

MIT for the source code. The hero image and screenshots may include third-party or user-provided material; see THIRD_PARTY_NOTICES.md before redistributing or using them commercially.

Plugin correlati