DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

guangfengs /

guangfengs/dsh-agent-map

已验证

A live map of the DeepSeek Harness session in the right sidebar: stations, pulses, a flow graph and a feed. / 右侧边栏里的实时会话地图。

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@29a181c8

dsh-agent-map

中文 · English

DeepSeek Harness 右侧边栏的一个标签页:把当前会话画成一张实时地图——上下文核心周围九个站点,每次工具调用有光点飞出、结果回来时有光点返回,下方是刚刚发生的事件流。第二个页面把当前这一轮画成流程图,每个东西只出现一次。

A right-sidebar tab for DeepSeek Harness that draws the current session as a live map: nine stations around a context core, pulses flying out on every tool call and back on every result, and a feed of what just happened. A second page turns the current turn into a flow graph where each thing appears exactly once.

右侧边栏里的地图 / The map in the right sidebar


中文

它做什么

一眼回答一个问题:Agent 现在在干什么,刚刚干完了什么?

  • 九个站点 — 你、文件、终端、网络、子代理、技能、记忆、工具、钩子。每次工具调用都会走到对应站点,看到的是一轮工作的形状,而不是一条扁平日志。
  • 脉冲 — 调用开始时一道光沿连线飞出,运行期间连线持续流动,结果返回时一个光点飞回核心并在站点上激起一圈涟漪。并发调用会在连线旁标 ×N。
  • 站点配色 — 亮起的站点和它的连线使用自己的颜色,忙起来的会话可以只看颜色。
  • 时钟指针 — 运行中的站点外有两条细指针,内圈一分钟一圈、外圈十分钟一圈,长调用一眼看出更长的弧。
  • 失败 — 失败的调用把站点标红,标题栏保留计数,直到你下一次发消息才清零。
  • 上下文核心 — 中间数字是上一次模型回复占用的上下文;配置了窗口大小时显示进度环(70% 变琥珀、90% 变红)。
  • 流程图页 — 当前这一轮画成一张图:中间是模型,两边是它用到的站点。一条线代表一个方向的往来,重复走同一段会加粗并标 ×N,实线是调用、虚线是返回;每个框里写着站名、工具、最后的参数和耗时。站名按第一次使用的顺序排列,当前所在的那个有点和光晕。
  • 事件流 — 一行一个事件,● 运行中、· 完成、✕ 失败、◆ 模型切换,右侧是耗时和 token 增量。

流程图页长这样:

流程图 / The flow page

跟随应用主题,暗色模式:

暗色模式 / Dark mode

安装

dsh plugin --profile <profile> add github:guangfengs/dsh-agent-map

重启宿主(Host 半边要注册一个会话投影),打开右侧边栏,点 + 选择「活动地图」。DSH 桌面版的插件页面里也能看到这个 bundle,可以直接开关。

标签页按会话独立:每个会话有自己的地图,面板会记住它是否展开过。窄到 360px 的侧边栏也能用:

窄侧边栏 / Narrow sidebar

配置

Bundle 补丁接受两个选项:

- insert:
    - id: dsh-agent-map
      name: dsh-agent-map
      config:
        rows: 120          # 投影中保留的活动行数
        contextWindow: 0   # 上下文环使用的 token 窗口;0 表示显示原始数字

实现

Host 半边注册一个会话投影单元(agentMap),把持久会话日志——轮次、步骤、工具调用与结果、模型选择、上下文压缩、后台任务、钩子、命令、子代理——折叠成一个很小、有上限的纯 JSON 状态。浏览端订阅这个投影并渲染,自己从不重扫会话日志。不联网、数据不出本机、运行时零依赖。

环境要求

  • DSH 0.2.2-rc.5 或更新版本(用到右侧边栏标签 API 和投影的 wire 契约)。
  • 带右侧边栏的宿主(dsh web、DSH 桌面版)。

许可

MIT。


English

What it does

The panel answers one question at a glance: what is the agent doing right now, and what did it just finish?

  • Stations — you, files, shell, web, agents, skills, memory, tools, hooks. Every tool call is routed to the station it belongs to, so a session looks like a shape of work rather than a flat log.
  • Pulses — a comet flies down the spoke when a call starts; the spoke keeps flowing while it runs, a dot comes back when the result lands, and the station ripples on arrival. Concurrent calls fly side by side with a ×N badge.
  • Tinted stations — a lit station and its spoke take their own hue, so a busy session reads by colour as well as by shape.
  • Clock hands — around a running station, one hand sweeps a minute and one sweeps ten, so a long call reads as a longer arc.
  • Failures — a failed call marks its station red and the header keeps a count until your next message clears it.
  • Context core — the last model response's context size, with a ring when a window is configured (amber past 70%, red past 90%).
  • Flow page — the current turn as a graph: the model in the middle, every station it used beside it. A wire is one direction of travel; it thickens with reuse and carries a ×N count, solid for calls and dashed for replies. Each box says what happened in it — station, tools, last argument, time. Stations are ordered by first use and the one the turn is on has a dot and a halo.
  • Feed — one row per event with ● running, · done, ✕ failed, ◆ model change, plus duration and token growth.

Install

dsh plugin --profile <profile> add github:guangfengs/dsh-agent-map

Then restart the host — it registers a session projection — open the right sidebar, press + and pick Agent map. In DSH Desktop the package also shows up on the Plugins page as a bundle you can switch on and off.

The tab is per session: each session keeps its own map, and the pane remembers whether it was open.

Configuration

The bundle patch accepts two options:

- insert:
    - id: dsh-agent-map
      name: dsh-agent-map
      config:
        rows: 120          # activity rows kept in the projection
        contextWindow: 0   # token window for the context ring; 0 shows the raw count

How it works

The Host half registers one session projection unit (agentMap) that folds the durable session log — turns, steps, tool calls and results, model selection, compaction, background jobs, hooks, commands and subagents — into a small, bounded, plain-JSON state. The browser half subscribes to that projection and renders it; it never rescans the session log itself. No network access, no data leaves the machine, and the bundle has no runtime dependencies.

Requirements

  • DSH 0.2.2-rc.5 or newer (the sidebar tab API and the projection wire contract it uses).
  • A browser host with the right sidebar (dsh web, DSH Desktop).

License

MIT.

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于
—/ 5

暂无评分

已验证 DSH bundle

Commit 29a181c83269

社区评论

还没有评论,来写第一条。