DSH itself can execute terminal commands and perform local operations, but when working with large codebases, it consumes a large number of Tokens to acquire context. Web-based ChatGPT has strong model capabilities but cannot directly access the local file system. The dsh-with-chatgpt plugin bridges the two, enabling ChatGPT to directly read and write local projects and execute commands. It offloads the cost of understanding to ChatGPT, preserving DSH Tokens for actual execution tasks.

What Is This

This is a DSH plugin maintained by BeforeWave. It solves the problems that web-based ChatGPT cannot directly operate local codebases and that DSH consumes too many Tokens when reading context. With this plugin, ChatGPT can directly modify local files, run terminal commands, and seamlessly hand off complex tasks to native DSH Sessions.

Core Features

  • Direct operation by ChatGPT: ChatGPT can directly read and write local files, execute terminal commands, and inspect Diagnostics, Git status, and test results.
  • Token savings: Project understanding, small modifications, and Review can be handled by ChatGPT, reducing DSH Token consumption.
  • Task routing: Small tasks are handled directly by ChatGPT, while complex tasks (such as building and testing) are handed off directly to native DSH Sessions.
  • Visible status: You can view ChatGPT’s working status and Work History in DSH Web.
  • Security isolation: Based on local permission control and Sandbox protection.

Installation and Enablement

  1. Install the plugin
    dsh plugin --profile web add @beforewave/dsh-with-chatgpt
  1. Start DSH Web
    dsh web
  1. Complete the configuration
    On the first run, the plugin will guide you through the Setup Guide to complete environment checks, ChatGPT Tunnel setup, and permission configuration.

Typical Usage

After starting DSH, you can begin working on a local project within the ChatGPT interface. For small modifications and Bug diagnosis, ChatGPT will directly manipulate local files. For tasks that require building, testing, or continued execution, ChatGPT will convert them into native DSH Sessions. DSH will take over execution, and after it completes, ChatGPT can continue to Review the results.

Applicable Scenarios and Notes

  • Environment isolation: The project and actual execution environment remain on the local computer.
  • Permission management: This involves local permission control, Sandbox, and native DSH permission configuration, which should be set as needed.
  • Development status: This plugin is under continuous development and active iteration.
  • Runtime permissions: The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license before installation.

Summary

By combining ChatGPT’s understanding capabilities with DSH’s execution capabilities, this plugin provides a more efficient local development workflow. For more details, visit: