rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:vamyane/dsh-brain-viewer
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
An AI brain viewer for DeepSeek Harness: a brain-shaped relationship graph that opens from the left sidebar, plus a Markdown knowledge-base pipeline that turns a folder of notes into that graph.
🧠 AI Brain button at the bottom of the sidebar opens a
full-screen relationship graph.brain/ ships the full Markdown pipeline:
scan a workspace (md / docx / xlsx) → split documents into memory units →
write Obsidian-compatible [[wiki-link]] notes → compile the graph.dsh plugin --profile desktop add dsh-brain-viewer
Then fully quit and reopen DSH. The 🧠 AI Brain button appears at the bottom of the
left sidebar.
Requirements: Node.js 20+ and Python 3.8+ (only for rebuilding; the viewer itself has no Python dependency).
# inside the installed package, or from a local checkout
node tools/rebuild.mjs --workspace "D:/my-notes" # scan your own folder
node tools/rebuild.mjs --demo # restore the demo brain
# data lands in brain/graph.json — reopen the panel, no page refresh needed
The pipeline writes memory notes to brain/vault/ and generates brain/graph.json,
which the panel reads live.
# watch a Markdown vault (e.g. the vault your DSH memory skill writes to)
node tools/watch.mjs --vault "C:/path/to/vault"
# or watch a documents folder (md / docx / xlsx)
node tools/watch.mjs --workspace "D:/my-notes"
Changes are debounced (2.5s) and the graph is rebuilt in ~1-3s. The panel re-fetches
/api/dsh-brain/graph every time it opens, so reopening it shows the latest graph —
no repack, no page refresh.
The panel no longer embeds data; it asks the host:
GET /api/dsh-brain/graph → brain/graph.json
brain/graph.json (demo data, or whatever rebuild.mjs wrote).// ~/.dsh/brain-viewer.config.json
{ "graphPath": "C:/path/to/ai-brain/graph.json" }
Restart DSH once so the host route is loaded; after that, data changes only need reopening the panel.
Every DSH session is a zstd-compressed JSONL log at
~/.dsh/sessions/<workspace>/<session-id>/session.v4.jsonl.zstd. The panel header now has a
Session ingest button plus a status line (N ingested today · latest YYYY-MM-DD · M sessions visible).
It turns today's sessions into one episode memory per session:
| Route | What it does |
|---|---|
GET /api/dsh-brain/ingest/status |
today's ingested count, latest memory date, visible sessions |
POST /api/dsh-brain/ingest/run |
scan today's sessions → write episode notes → rebuild the graph → {written, updated, skipped, nodes} |
Extraction is local, deterministic and does not call a model: the first real user message
becomes the title, user intents and the assistant's final text become the body, tool usage is
summarised, and the note is linked to 2–3 existing hub notes. Notes land in
vault/episodes/YYYY-MM/YYYY-MM-DD · 会话复盘 · <title> (<session-id>).md.
Idempotent — each generated note carries source: dsh-session-ingest and session: <id> in
its frontmatter. Clicking again rewrites the same file only when the session changed; it never
duplicates notes. Subagent (child) sessions and sessions from other workspaces are skipped by
default (includeSubagent: true to opt in).
Configure the vault — vault/ and build_graph.py are inferred from graphPath when possible:
// ~/.dsh/brain-viewer.config.json
{
"graphPath": "C:/path/to/ai-brain/graph.json",
"vaultPath": "C:/path/to/ai-brain/vault",
"sessionsPath": "C:/Users/me/.dsh/sessions",
"workspaceRoot": "C:/path/to/workspace",
"python": "python"
}
Only graphPath or vaultPath is required. Without a configured vault the plugin refuses to
write, so the bundled demo vault is never polluted. Same workflow from the CLI:
node tools/ingest.mjs --status # read-only: ingested today / latest memory / visible sessions
node tools/ingest.mjs --dry-run # preview which notes would be written, write nothing
node tools/ingest.mjs # write episode notes + rebuild the graph
node tools/ingest.mjs --date 2026-11-08
Requirements: a Node with zstd support for ingest (Node >= 22.15 or >= 23.8; DSH ships Node 24)
and Python only for the graph rebuild. If build_graph.py fails, the notes are still written and
the response reports graph.ok: false plus a warning.
gl.LINES batch; pan/zoom only updates a matrix instead of rebuilding geometry. A 6,398-node graph renders in 0.6–1.2 ms per frame (the old Canvas2D path was ~90 ms/frame).requestAnimationFrame at all while nothing is animating or interacting (0 frames at rest) — the same strategy as Obsidian's graph view. Continuous frames only while the drift / pulse toggles are on.client.js dropped from 1 MB to ~0.1 MB; data never ships in the bundle and changes need no repack.brain/seed_demo.py).tools/rebuild.mjs --workspace reads files locally only; nothing is uploaded.dsh plugin --profile desktop remove dsh-brain-viewer
Or delete dsh-brain-viewer from the profile's dsh.profile.bundles.
MIT
DSH runs pnpm install on every start. If the plugin is only in dsh.profile.bundles but not in
dependencies, pnpm treats it as "not in the dependency tree" and moves it to node_modules/.ignored/.
The correct install (what install.mjs does):
<profile>/local-plugins/dsh-brain-viewer"dsh-brain-viewer": "link:./local-plugins/dsh-brain-viewer" in dependenciespnpm install so the lockfile records the linkIf pnpm fails on minimumReleaseAge / supply-chain policy (a transitive package missing from the mirror
manifest), add it to minimumReleaseAgeExclude in the profile's pnpm-workspace.yaml.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。