dsh-vsc-integration
开发工具 活跃维护

dsh-vsc-integration

HarcoChen/dsh-vsc-integration

在 VS Code 编辑器内无缝接入大模型编程辅助能力,支持代码自动补全、智能纠错、自然语言生成代码等核心功能,安装配置轻量简单,无需跳转外部工具即可流畅完成日常编码工作。

8
Stars 标星
1
Forks 分支
8
Watchers 关注
1
Open Issues
TypeScript
主要语言
MIT
开源协议
1.8 MB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:HarcoChen/dsh-vsc-integration
git clone https://github.com/HarcoChen/dsh-vsc-integration.git
git clone git@github.com:HarcoChen/dsh-vsc-integration.git
README.md main

Deepseek-Harness VSCode Integration Community Edition

DSH

Please note that this README is maintained and translated by chatgpt models,it's better to refer to README.zh-CN.md for human-friendly descripitons.

Feel free to leave issues!

A full-featured community VS Code Extension for DeepSeek Harness, supporting four-mode switching, in-editor Trace viewing, and automatic Runtime download for npm-free environments.

English | 简体中文

[!WARNING]
This project is an independent community project. It is not an official DeepSeek project and is not maintained by DeepSeek.
For any information, help or feature suggestions, feel free to leave an issue!

[!NOTE]

  • Quickly view your API Key balance
  • Built-in Trace support
  • Automatically download Runtime (distributed via CNB) when DSH is not present
  • i18n support

More comprehensive features: session state, IDE context, Runtime activity, approvals, Trace and file changes are all integrated into the extension.
Easier to use: there is no need to understand npm at all!

Feature Architecture

The chat interface is a React Webview backed by a typed, full-state bridge. The Extension Host is responsible for VS Code APIs, Runtime RPC, credentials, secure Markdown rendering and action validation.

Installation

From the Extension Marketplace

🔗 Install from the Marketplace

From GitHub Releases

Download the .vsix package from GitHub Releases, then run Extensions: Install from VSIX....

Build from source

npm install
npm run check
npm run package

Install the generated .vsix via Extensions: Install from VSIX....

Detailed Description

If dsh reports a missing or invalid API Key, click Key in the chat header or run DSH: Configure API Key. The key is passed to dsh's credential service, and an encrypted copy is stored in VS Code SecretStorage for the balance indicator. It is never written to prompts, extension state or logs.

DSH: Manage Providers from the chat menu or Command Palette lets you inspect whether a Provider is enabled, its configuration and credential source, set or remove API Keys, and open the official Harness configuration file for advanced editing. DSH: Manage Agent Presets lists system and user Presets, reports broken compositions, opens a read-only composition snapshot, and lets you copy, edit, delete or make a Preset the default through Harness-owned operations. DSH Workspaces are discovered from their directories; DSH: Manage Workspaces can rename or remove groups and reorder Workspaces or their Sessions. Removing a group never deletes its directory or Session logs.

Multiple VS Code windows preferentially share one local Harness Runtime. A Runtime started by the extension publishes its random loopback port through a process lock; later windows validate it with host.describe before connecting, preventing competing writers from touching the same Session storage.

Development

npm install
npm run check      # TypeScript check
npm run compile    # Build to dist/
npm run package    # Compile + vsce package

VS Code is recommended.

More Information

Acknowledgments

Thanks to dsh-reasoning-effort for the chibi runner sprite reference and asset used by the reasoning-effort control. The conversation outline also takes inspiration from the dsh-milestone project; its Hub-style milestone idea led to the native VS Code TreeView implementation here.

License

MIT