AI Agent Hub
Back to plugins
⚙️

dsh-init-command

Workflow Updated 2026.08.16

Run the following command in DeepSeek Harness:

dsh plugin install LittleFishStars/dsh-init-command

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install LittleFishStars/dsh-init-command in your terminal to install the plugin; the source code is available at https://github.com/LittleFishStars/dsh-init-command

About this plugin

Every project deserves an AGENTS.md that tells AI agents how to build, test, and follow the code style. Writing one by hand is tedious and easy to get wrong, especially when the repository is still a fresh skeleton. dsh-init-command adds an /init slash command to DeepSeek Harness that delegates the heavy lifting to an LLM.

The workflow runs in two phases. Phase one collects the first two levels of the directory tree and asks the model to classify the project type, language, framework, and build toolchain, returning structured JSON. Phase two embeds that classification together with the directory structure into the generation prompt and writes a complete AGENTS.md to disk, covering sections such as Project Overview, Build and Test Commands, Code Style Guidelines, Testing Instructions, Security Considerations, and AI Agent Guidelines. The classification phase defaults to thinking-off to save tokens, while the generation phase streams the model reasoning live into the session but writes the final text directly to the file, keeping the conversation clean. A mandatory rule inside the AI Agent Guidelines section instructs the agent to update AGENTS.md after every completed task so the document stays in sync as the project evolves.

Beyond core generation, the plugin handles common cold-start chores: git init with a main default branch, downloading a .gitignore matched to the detected project type, and creating an initial commit. An empty directory triggers a prompt for a project description instead of blind generation; an existing AGENTS.md is overwritten with the old content supplied as a rewrite reference. Zero runtime dependencies and no build step are required. It is best suited to developers who live in DSH as their coding environment and want AI agents to pick up project conventions quickly, whether bootstrapping a new repository or onboarding into a documentation-light codebase.

Use Cases

  • Bootstrap a new project by generating an AGENTS.md draft from its directory structure
  • Refresh an existing AGENTS.md by overwriting it with the old content as a rewrite reference
  • Handle cold-start chores in one pass: git init, fetch a matching .gitignore, and create the initial commit

Best For

  • Developers who live in DSH as their daily coding environment
  • Teams that want AI agents to pick up project conventions quickly
  • Engineers maintaining fresh or documentation-light repositories