Introduction¶
When conducting long Q&A sessions or technical research in DeepSeek Harness (DSH), conversations often form a timeline: new questions are stacked behind old ones, and looking back to find “which branch diverged at that time” requires scrolling and searching. Note-taking tools can organize this later, but they require extra context copying and are disconnected from the session itself.
Below is an introduction to the community plugin Learn Branch Map (Repository name dsh-loomTree, NPM package name @learnmap/web-plugin): It mounts two views on the host interface—the thin strip above the input box and the node map in the right sidebar—organizing questions within the same session into parent-child relationships based on rules (and optional LLM verification). Clicking a node jumps back to the corresponding question. Data is primarily stored locally, and model keys do not enter the page.
What is This¶
- Maintainer: 8946ben
- Category: Memory (classified in the community directory SkillHub)
- License: MIT (
package.jsonversion 0.3.12) - Compatibility: DeepSeek Harness 0.2.x (bundle plugin), requires the
desktopprofile
One sentence: Automatically organizes Q&A-based learning conversations into a knowledge point tree, supports drag-and-drop to change relationships, collapsing, renaming, and canvas backgrounds, and optionally uses an LLM to name nodes and verify wrongly attached branches.
Core Features¶
Dual Views¶
- Thin Strip Above Input Box: Displays
🌳 N nodespermanently, with an expandable indented list; the icon on the right can open the sidebar map or expand/collapse all; clicking a node jumps back to the original question. - Right Sidebar “Learn Branch Map”: A zoomable, pannable, and draggable node canvas that presents the structure of the entire tree.
Node Map Operations (Summary)¶
| Operation | Effect |
|---|---|
| Left click drag empty / Middle click drag anywhere | Pan canvas |
| Scroll wheel (including Ctrl/⌘ + Scroll) | Zoom with pointer as anchor (approx 0.18×–1.8×) |
| Double click empty | Fit to width and reposition |
| Drag node | Move only that node, does not trigger full graph re-layout |
| Double click node | Rename in place (Enter to submit / Esc to cancel) |
| Drag node bottom dot → Target node | Establish parent-child relationship from current node to target |
| Click connection then Delete / Top bar “Disconnect” | Delete parent-child relationship |
| “Reorganize” | Clear manual relationships and positions (keep manual renaming), apply rule relationships + LLM verification |
| “Rules Only” | Same as above, but this session no longer asks LLM for verification |
Parent-child relationships are first calculated by rules (terms, context, etc.), and by default, non-root nodes are handed over to an LLM for verification; if the model is unavailable, it falls back to rule results without affecting tree building and jumping. After manually dragging parent-child relationships, verification gives way to manual layout until “Reorganize” is clicked.
Long Sessions and Recovery¶
When opening the map, earlier Q&A is automatically filled in (limit approx. 24 pages / 45 seconds), so there is no need to repeatedly click “Load earlier” in the chat. Each session saves a node map snapshot in ~/.dsh/storages/learnmap/sessions/; the last layout is restored when restarting or switching back to a session, and new messages only find positions for new nodes.
Canvas Backgrounds¶
Dots, solid colors, or local images (mask, opacity, blur, cover/tile); images are compressed to 1600px on the long edge before being saved locally and are not uploaded.
Local-First and Privacy¶
Editing, naming caches, backgrounds, and snapshots are all local; apiKey is placed only in the profile patch layer and cannot be accessed by the page side. The host router only accepts loopback requests.
Installation and Enablement¶
Environment Requirements: DSH 0.2.x, bundle plugin support, desktop profile.
The official README provides the way to obtain source code:
git clone https://github.com/8946ben/dsh-loomTree.git
After cloning, install this directory as a bundle in DSH: via the plugin manager, or by executing install_bundle for the plugin_manager agent, with target pointing to the cloned directory. After installation, confirm in the plugin manager that “Learn Branch Map” is enabled, then refresh the page (Ctrl+R).
Uninstall: Remove @learnmap/web-plugin in the plugin manager, or execute remove_bundle for the plugin_manager.
The plugin runs with the same permissions as the current DSH process. It is recommended to read the repository source code and the MIT license before installing to judge credibility yourself.
Optional Configuration¶
Naming and relation verification use the host ctx.llm, specifying the provider and model in the profile patch layer. Example path: ~/.dsh/profiles/desktop/cordis.patch.yml:
- id: learnmap
config:
enabled: true
provider: zai # Change to provider configured in your profile
model: glm-5.3-flash # Model under that provider
# relate: false # Disable LLM verification of parent-child relationships (default on)
When provider / model are not configured, it defaults to trying zai / glm-5.3-flash; if the profile has no such path, titles fall back to rule-based naming. To completely turn off model capabilities:
- id: learnmap
config:
enabled: false
apiKey is only configured locally; do not commit to the repository. Relation verification caches summaries and judgment results; naming for the same question has a double-layer cache of localStorage and ~/.dsh/storages/learnmap/labels-v2.json.
Typical Usage¶
- After installing and enabling, you will see the node strip above the input box in any session; observe the tree growing with new questions while chatting.
- To see the full picture, click the icon on the right side of the strip to open the right sidebar node map; use collapsing to hide mastered branches, and double-click nodes to rename them with semantic knowledge point names.
- If you find a question attached to the wrong parent node: drag the bottom dot to change the parent, or click “Reorganize” to let rules + LLM run again; if you trust rules more, click “Rules Only”.
- If the first time you open the map for a long conversation it prompts to fill history, wait for the auto load or click “Continue Loading”; filling only affects the map data, not the chat body.
- Set dots/solid/image backgrounds in the canvas gear menu for easy screenshots or demos.
The title bar displays the relationship verification status (e.g., “Verifying relationships…”, “Relationships verified”, “Rules only”), making it easy to determine if the current view is a rule-based tree or one corrected by the model.
Suitable Scenarios and Notes¶
Suitable for: Progressive learning, research branching, and developers needing a “map-style” review of question paths within the same DSH session; users who want to click nodes to return to context but do not want to move notes to external tools.
Notes:
- Depends on DSH 0.2.x and the
desktopprofile; non-bundle installation methods follow the README, do not invent commands likedsh plugin add. - LLM naming and verification are optional; you can still use the rule tree and manual editing without a model.
- After event window compression, nodes in snapshots may still exist, but clicking to jump might not find the original message (the README FAQ explains this).
- The community directory SkillHub Plugin Page and GitHub are maintained by the community and have no official affiliation with DeepSeek / Hypothesis; star metadata follows the directory site.
Conclusion¶
Learn Branch Map turns conversations from a linear timeline into an editable knowledge point tree: the strip provides lightweight follow-along, the sidebar map handles structure and relationships, and local snapshots and caches reduce duplicate requests. If you are doing long-chain Q&A in DSH, it is worth reading the operation table and data path explanations in the README before enabling.
- Community Directory: https://www.skillhub.cn/plugins/8946ben/dsh-loomTree
- Source Code and Documentation: https://github.com/8946ben/dsh-loomTree