BLueMooneer / dsh-tracelens

已收录

DSH TraceLens 是基于 DeepSeek Harness 的可视化执行探索器。将当前已加载的 Session 转换成交互式地图,集中呈现用户输入、模型回复、工具调用、系统活动、错误以及每次模型调用的 Token 用量

main会话 查看源代码

安装

pnpm dsh web

此命令根据 GitHub 仓库地址生成。运行前请检查上游 README 与源代码;需要可复现安装时,请固定 release 或 commit。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 f85e5c8同步于 2026年8月18日

DSH TraceLens

English | 中文

See every agent step. Understand every token.

DSH TraceLens is a visual execution explorer for DeepSeek Harness. It turns the currently loaded Session into an interactive map of user input, model responses, Tool calls, system activity, failures, and per-call Token usage without adding another event store or changing the agent loop.

TraceLens is built for developers who need to understand why an agent behaved the way it did. Follow the execution path as it grows, compare Token costs across model calls, and inspect the exact context behind any node from one navigable canvas.

DSH TraceLens execution map showing model calls, context nodes, details, and Token usage

Overview

The Agent Map view sits beside the existing conversation views and updates as the Session runs. Five stable lanes separate Input, Model, Tool, System, and Error records. Select any node to inspect the data already recorded for that event, including message content, model request details, reasoning, Tool arguments and results, timing, errors, retries, and nested calls when available.

Model usage is summarized in a conversation-wide 100% stacked dashboard. Selecting a model node highlights its matching segment and opens a four-metric Token card for input, output, cache-read, and reasoning usage. Recorded callId values connect model Tool requests to their results; ordinary adjacent records remain timeline-only relationships.

Highlights

  • Live execution map — new Session records appear without replacing the current zoom, pan, or node selection.
  • Token attribution — compare every model call against the loaded conversation total and inspect exact recorded values.
  • Deep node inspection — open type-specific details directly below a selected node instead of losing canvas width to a side panel.
  • Readable large workflows — Fit mode starts at 100%, scales down to a 30% floor, and supports manual zoom plus synchronized two-axis panning.
  • Deterministic projection — the browser renders the public conversation snapshot; it does not infer dependencies from text, timing, or proximity.
  • Native DSH integration — the client plugin contributes through the official conversation.view slot and follows the host theme, locale, disposal, and reduced-motion behavior.

Quick start

Prerequisites: Node.js ^22.19 or >=24, pnpm, and a DeepSeek API key for live model execution.

git clone https://github.com/BLueMooneer/dsh-tracelens.git
cd dsh-tracelens
pnpm install
pnpm run build
pnpm dsh web

Open http://127.0.0.1:3080, create or open a Session, then select Agent Map. The map also renders keyless fixture Sessions used by the assembled Web tests.

For operation and troubleshooting, read the Agent Map user guide. For implementation details and extension rules, read the plugin README.

Architecture

DSH TraceLens remains inside DeepSeek Harness's plugin architecture:

Session projection
      ↓
pure graph projection
      ↓
Agent Map client plugin
      ↓
conversation.view slot
      ↓
DSH Web UI

The graph model and layout are pure functions. React owns only live view state such as selection, fit/manual scale, and viewport position. The plugin adds no host service, persistence format, model-visible input, or second conversation projection.

The main implementation lives in packages/client/ui-agent-map. Web-profile composition is declared by packages/bundle/web-app.

Development

Run focused Agent Map checks from the repository root:

pnpm exec tsc -p packages/client/ui-agent-map/tsconfig.json --noEmit
pnpm exec vitest run packages/client/ui-agent-map/tests
pnpm --filter @deepseek-ai/dsh-client-ui-agent-map bundle
pnpm run build:web

Repository-wide documentation and integration changes must also satisfy the applicable DeepSeek Harness checks described in AGENTS.md.

Project status

DSH TraceLens tracks the developer-preview DeepSeek Harness codebase, which can introduce compatibility-breaking changes. The current implementation is an integrated Web-profile fork rather than a separately versioned npm plugin.

Upstream and license

Built on DeepSeek Harness and Cordis. Upstream community and contribution guidance remains available in the DeepSeek Harness repository.

MIT. Third-party dependencies and their licenses are listed in THIRD_PARTY_NOTICES.md.

项目文件与信号

以下项目是目录快照中检测到的公开仓库信号。

插件清单已检测
测试已检测
贡献指南已检测
文档已检测
示例已检测

仓库信息

开发语言
TypeScript
许可证
MIT
最后更新
2026年8月15日 16:56

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。