rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:elalamiimed/dsh-connectome
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A living map of your workspace for the DeepSeek Harness Web UI — every file is a
neuron, every reference is a synapse, every folder is a region. Connectome scans the
current workspace — code, documents, PDFs, images, data, media, fonts and unclassified
binaries alike — draws the file/folder graph on a single <canvas> with d3-force
physics, lets you trace any relationship, and turns a click on a neuron into that file
in the harness' own right-sidebar preview.
The banner is an illustration of the canvas graph, not a screenshot.
<canvas>; there is no DOM node per file. d3-force runs the layout, the plugin's
own requestAnimationFrame loop ticks it, and the simulation stops when idle.import / export … from / dynamic import() / require / CSS
@import, dashed for HTML attributes, Markdown links/images and CSS url(...)
assets. Hover a link to see both endpoints and the relation kind.→ imports, ← imported by), each clickable, with a +N summary
for the rest. Great for seeing how two modules — or two "engine" files — meet.ctx.sidebarRight.openResource with a
dsh-resource://file/session/… address): code with line numbers, Markdown, PDFs,
images and Office documents, all inside DSH. A missing preview or selected session is
explained in the footer.--dsw-alias-* theme
tokens at runtime, so light/dark switches recolor the graph.Esc to close.Connectome is a DSH bundle plugin: installing it adds a Host row (workspace scanner
dsh web deployment with the
standard Web bundle).client.js prebuilt.Open the sidebar's Plugins page, choose Install, and enter one of:
dsh-connectome # npm (recommended)
github:elalamiimed/dsh-connectome # straight from GitHub
The npm package is live at npmjs.com/package/dsh-connectome; the plugin manager enables the bundle after a successful install. Open the sidebar panel list's More menu and pick 🧠 Connectome.
The DSH CLI forwards package operations to the profile; then enable the bundle in Plugins (or keep using the Web UI above, which does both steps):
dsh plugin --profile desktop add dsh-connectome
# or straight from GitHub:
dsh plugin --profile desktop add github:elalamiimed/dsh-connectome
Troubleshooting —
dsh-connectome declares no dsh.bundle. While a brand-new npm package is being reviewed, npm can hold it at a0.0.0-stageplaceholder that declares no bundle. A mirror (for exampleregistry.npmmirror.com) may keep serving that placeholder for a while after the real release lands, and the plugin manager's pre-install check then refuses the package with this message. Choose Official npm registry in the install dialog's registry selector, retry after the mirror syncs, or install thegithub:spec instead. To see what a registry currently has:npm view dsh-connectome dist-tags --registry https://registry.npmmirror.com
git clone https://github.com/elalamiimed/dsh-connectome.git
cd dsh-connectome
# then install the folder as a bundle in the running profile, e.g. with
# plugin_manager install_bundle <absolute-path>, or `dsh plugin add link:<absolute-path>`
Note: the npm name
dsh-project-brainbelongs to an unrelated DSH plugin. This project is published asdsh-connectome; the GitHub repository still uses the "project brain" working title in its history only.
Esc / the ✕
button closes the dialog.The Host extracts links with small, dependency-free regexes (bare package names are
deliberately not expanded into node_modules):
| Files | Relationships |
|---|---|
| JS / TS / JSX / TSX / Vue / Svelte | import … from, export … from, dynamic import(), require() (any target, including assets) |
| CSS / SCSS / Sass / Less / Stylus | @import, @use, @forward, url(...) assets (images, fonts) |
| HTML | <script src>, <link href>, <img>/<source>/<iframe>/<video>/<audio>/<track> src, <a href>, <object data>, <video poster> |
| Markdown | relative links and images — code, PDFs, images, any file |
| Python | import x, from . import y |
Every non-ignored regular file becomes a node, so a referenced PDF, image, font or data
file appears on the graph even though only text formats are parsed for further links.
Only relative, root-relative and @/ / ~/ specifiers resolve to workspace files.
node_modules, .git, build outputs, caches and dot-directories are skipped;
lockfiles, source maps, minified bundles and OS junk (.DS_Store, Thumbs.db, editor
swaps) are excluded as well.
index.js)POST /connectome/api/graph — same-origin route fenced through
ctx.connection.requestRejection(req); optional JSON body { "root": "<workspace>" }.kind; text formats are
parsed for references and a reference links any scanned file it resolves to. The
folder index is returned alongside the nodes so the Client can draw directory regions.{
"ok": true,
"root": "C:\\path\\workspace",
"roots": [{ "path": "C:\\path\\workspace", "title": "my-project" }],
"nodes": [
{ "id": "src/index.js", "label": "index.js", "ext": ".js", "size": 1234, "dir": "src", "kind": "code" },
{ "id": "src/util.js", "label": "util.js", "ext": ".js", "size": 456, "dir": "src", "kind": "code" },
{ "id": "docs/readme.md", "label": "readme.md", "ext": ".md", "size": 789, "dir": "docs", "kind": "doc" },
{ "id": "docs/spec.pdf", "label": "spec.pdf", "ext": ".pdf", "size": 48213, "dir": "docs", "kind": "doc" }
],
"links": [
{ "source": "docs/readme.md", "target": "docs/spec.pdf", "kind": "markdown-link" },
{ "source": "src/index.js", "target": "src/util.js", "kind": "import" }
],
"folders": [
{ "id": "docs", "parent": null, "depth": 1, "files": 2, "total": 2 },
{ "id": "src", "parent": null, "depth": 1, "files": 2, "total": 2 }
],
"stats": {
"files": 4,
"folders": 2,
"scanned": 3,
"links": 2,
"truncated": false,
"durationMs": 4,
"kinds": { "code": 2, "doc": 2, "data": 0, "image": 0, "media": 0, "archive": 0, "font": 0, "other": 0 }
}
}
client.source.js → client.js)sidebar.panellist.actions (the menu row) and shell.overlay (the dialog),
both through ctx.slots.inject / ctx.slots.register.simulation.stop(), then ticks it
from the plugin's requestAnimationFrame loop; hover changes update React state, but
pointer moves only mutate transforms, and frames are requested only while needed.forceX/forceY centering, so
disconnected files stay in one cloud and fit-to-view never zooms to sub-pixel dots.ResizeObserver keeps the backing store matched to CSS size (DPR clamped to 2);
MutationObserver re-reads theme tokens when the app theme changes.d3-force (plus its UMD dependencies) is inlined into client.js by build.mjs:
the browser module table has no runtime npm resolution, so the bundle is
self-contained. vendor/ pins the exact ISC-licensed distributions.dsh-resource://file/session/<session>/<path>) and calls
ctx.get('sidebarRight').openResource(...); the on-screen session comes from
sidebarRight.mounted, with the UI Session adapter as fallback.Connectome reads the workspace through the Host process, exactly like the rest of DSH. It sends nothing to the network: no analytics, no remote API calls, no file contents uploaded. The graph response stays between the Host and your local page; open files are displayed by DSH's built-in preview, and Connectome itself never keeps or transmits file contents.
alphaMin; an interaction kicks it again.stats.truncated; the dialog shows a
"partial scan" marker.No dev dependencies are needed — vendor/ is committed and the tests use Node builtins.
node build.mjs # regenerate client.js from client.source.js + vendor/
npm test # scanner + artifact + package/release contract tests
npm run check # node --check on index.js and the generated client
npm pack --dry-run # inspect exactly what npm would publish
npm install is only needed to rebuild client.js from a different d3-force copy:
node build.mjs --modules <node_modules dir> looks there after vendor/.
See CONTRIBUTING.md for the project layout and review rules, and
PUBLISHING.md for the maintainer release flow.
The project-wide design-token rule asks frontend artifacts to use the --ds-* scale.
This plugin is a Harness UI surface, so it deliberately splits the two systems:
--dsw-alias-* theme tokens (this is what
keeps the graph legible in both light and dark mode).--ds-* token
layer (4px rhythm, 4/8/12/16/20/24 px spacing, 4/8/12/16 px radii, the shadow scale
and the caption/body-sm/body/h3 type scale) — no off-scale numeric styling.@//~/, tsconfig path maps and bundler
resolution rules are not modeled; bare package names do not become nodes.MIT © 2026 elalamiimed.
Bundled d3 distributions (vendor/) are ISC licensed, Copyright 2010–2021 Mike
Bostock; see vendor/LICENSE-d3.txt. DeepSeek Harness and its
packages are separate projects with their own licenses.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。