dsh-init-command
在终端中运行以下命令:
dsh plugin install LittleFishStars/dsh-init-command
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在终端中运行 dsh plugin install LittleFishStars/dsh-init-command 即可安装该插件,插件源码地址为 https://github.com/LittleFishStars/dsh-init-command
插件介绍
Every project deserves an AGENTS.md that tells AI agents how to build, test, and follow the code style. Writing one by hand is time-consuming and easy to get wrong, especially when the project is still a fresh skeleton. dsh-init-command adds an /init slash command to DeepSeek Harness that lets an LLM do the heavy lifting for you.
The workflow is two-phase. Phase one collects the first two levels of the directory tree and asks the model to identify the project type, language, framework, and build toolchain, returning a structured classification. Phase two embeds that result plus the directory structure into the generation prompt and produces a full AGENTS.md covering sections like Project Overview, Build and Test Commands, Code Style Guidelines, Testing Instructions, Security Considerations, and AI Agent Guidelines, writing the file directly to disk. The classification phase runs with thinking off by default to save tokens; the generation phase streams the model reasoning live into the session while the final text goes straight to the file, keeping the conversation clean. A built-in rule in the AI Agent Guidelines section also reminds the agent to update AGENTS.md after every completed task, so the document stays in sync as the project evolves.
Beyond the core generation, the plugin handles common cold-start chores: git init with a main default branch, downloading a .gitignore matched to the project type, and creating an initial commit. When the directory is empty it asks the user for a project description instead of guessing; an existing AGENTS.md is overwritten with the old content fed to the model as a rewrite reference. Zero dependencies, no build step required. It fits developers who use DSH as their daily coding environment and want AI agents to understand project conventions fast, whether bootstrapping a new repo or picking up a documentation-less codebase.
使用场景
- 新项目初始化时根据目录结构自动生成 AGENTS.md 初稿
- 已有 AGENTS.md 的项目直接覆盖更新,旧内容作为改写参考
- 冷启动时一并完成 git init、下载 .gitignore 并创建初始提交
适合人员
- 以 DSH 为日常编码环境的开发者
- 希望 AI agent 快速理解项目约定的团队
- 维护无文档或刚起步仓库的工程师