Generate llms.txt for dsh plugin repositories from package.json + README — AI-readable discovery files, zero runtime deps, read-only by default. CLI plus an agent-callable llms_forge tool.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:zoahdev/dsh-llms-forge
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
Generate llms.txt for DeepSeek Harness (dsh) plugin repositories from package.json + README.md.
AI agents look for llms.txt first when they land in a repository. Most dsh plugins don't have one — this plugin creates it deterministically and keeps it honest: title from the package name, summary from the description (or the README's first paragraph), and key facts (install command, license, homepage, keywords, entry, CLI). Read-only by default; writing is explicit.
Install
dsh plugin add dsh-llms-forge
Or run standalone:
npx dsh-llms-forge .
CLI
dsh-llms-forge [dir] [--write] [--overwrite] [--json]
- Prints the proposed
llms.txtto stdout (no writes by default). --writewrites the file;--overwritereplaces an existing one.- Exit codes:
0clean,1warnings,2usage/IO error.
npx dsh-llms-forge . --write --overwrite
npx dsh-llms-forge ./my-plugin --json
In-harness usage (agent-callable)
Ask your dsh agent:
给这个插件仓库生成一份 llms.txt:
llms_forge,目录指向仓库根目录,写入并覆盖。 Generate an llms.txt for this plugin repo:llms_forgewithdirset, thenwrite: true, overwrite: true.
The tool returns a dsh-llms-forge/v1 result with the proposed content and warnings, and writes the file only when options.write is true.
What the generated file looks like
# dsh-dep-audit
Dependency supply-chain hygiene audit for DeepSeek Harness ...
## Key facts
- Install: dsh plugin add dsh-dep-audit
- License: MIT
- Homepage: https://github.com/zoahdev/dsh-dep-audit
- Keywords: deepseek-harness, dsh, ...
- Entry: lib/index.js
- CLI: dsh-dep-audit
- Version: 0.1.0
> Generated by dsh-llms-forge. Keep this file in sync with README.md and package.json.
Why it exists
- The
llms.txtconvention is the fastest way for AI agents to understand a repository, yet most dsh plugins ship without one. - Hand-written llms.txt files drift out of date; generated ones are reproducible and CI-checkable (
--json, exit code). - Zero runtime dependencies, read-only by default — safe to run anywhere.
Development
pnpm install
pnpm typecheck
pnpm build
pnpm test
pnpm test:integration
CI runs the dsh-plugin-doctor preflight, unit tests, packed-artifact integration (real llms_forge invocation), and a fresh-profile dsh web boot smoke on Windows.
License
MIT © 2026 zoahdev
dsh-llms-forge(中文)
为 DeepSeek Harness(dsh)插件仓库自动生成 llms.txt(AI 可读发现文件),数据源是 package.json + README.md。
AI agent 进入仓库时最先找的就是 llms.txt,但绝大多数 dsh 插件没有。本插件把它确定性生成并保持诚实:标题取包名,摘要取 description(或 README 第一段),关键事实(安装命令、许可证、主页、关键词、入口、CLI)自动收集。默认只读,写盘需显式开启。
安装
dsh plugin add dsh-llms-forge
独立使用:
npx dsh-llms-forge .
CLI
dsh-llms-forge [dir] [--write] [--overwrite] [--json]
- 默认只把生成的
llms.txt打印到 stdout,不写盘。 --write写盘;--overwrite覆盖已有文件。- 退出码:
0干净,1有警告,2用法/IO 错误。
npx dsh-llms-forge . --write --overwrite
npx dsh-llms-forge ./my-plugin --json
在 harness 内使用(agent 可调用)
对 agent 说:
给这个插件仓库生成一份 llms.txt:
llms_forge,目录指向仓库根目录,写入并覆盖。
工具返回 dsh-llms-forge/v1 结果(含生成内容与警告),仅在 options.write 为 true 时写盘。
为什么需要它
- llms.txt 是 AI agent 理解仓库最快的方式,但大多数 dsh 插件没有。
- 手写 llms.txt 会漂移过期;生成式可复现、可进 CI(
--json+ 退出码)。 - 零运行时依赖、默认只读,任何环境都能安全跑。
开发
pnpm install
pnpm typecheck
pnpm build
pnpm test
pnpm test:integration
CI 跑 dsh-plugin-doctor 预检、单元测试、打包集成(真实 llms_forge 调用)、Windows 全新 profile 的 dsh web 启动冒烟。
许可证
MIT © 2026 zoahdev
Related ecosystem tools
- dsh-dep-audit - dependency supply-chain hygiene
- dsh-quality-score - plugin quality scorecard + full-registry leaderboard
- dsh-ecosystem - health scan, impact, trend, live dashboard
- dsh-tutorials - bilingual plugin pipeline tutorials
FAQ
- How do I install? dsh plugin add dsh-llms-forge or run the CLI directly (see README).
- Does it need an API key? No.
- Is it read-only? Yes by default; any write/apply is an explicit flag.
Examples
See the README for full CLI usage. Quick start:
npx dsh-llms-forge --help
Links
More in this category
yjh051108/dsh-routing-suite★ 7000
One repository, three parts: a runtime injector for DSH plugin packages (inject, hot-reload, unload, promote a dev staging tool to the front, route self-heal, plus a settings-page plugin manager that lists, unloads and drags folders in to internalize), a task-aware reasoning-mode router agent preset (router-standard / router-spec / router-react), and a graded two-level task protocol whose six tools (commit_star, lock_stage, revise_do, edit_plan, mark_task, redteam_verdict) pin task state to disk. The injector implementation ships in-tree, so the install carries its own behaviour rather than a dependency list.
strukto-ai/mirage#dsh★ 3678
Swaps the filesystem and bash providers for a mirage virtual workspace: file tools and shell commands run over mounted resources (RAM, S3, Redis, Slack, Gmail, Notion, Postgres) instead of the host disk, with per-mount read/write/exec modes, per-command sandbox routing (monty, pyodide, quickjs in process; docker, e2b, daytona remote), and installed CLIs (git, gh, slack, linear, ntn, gws, or one you register) as head words in the virtual terminal.
hust-open-atom-club/oh-dsh★ 324
Community distribution: TUI, desktop, and Web UI as one bundle with layered installation.
weijiafu14/pi2dsh★ 212
Pi Host ABI compatibility engine: after one install, unmodified Pi extensions from npm mount as native DSH plugins with `dsh plugin add <pi-package>`. Verified end to end on stock DSH with pi-mcp-adapter (full MCP manager: OAuth, resources, prompts, MCP Apps, elicitation, sampling), @tintinweb/pi-subagents, pi-code, pi-hermes-memory and pi-background-tasks; `pi2dsh inspect` reports a package's compatibility before installing.
Fishquito7/dsh-skill-mcp-panel★ 175
Manages DSH skills and MCP servers from the web settings: skill cards with hot enable/disable, workspace scopes, groups, batch migration and drag-and-drop import, plus stdio/HTTP MCP CRUD with connection tests, secret redaction and the unified dsh-panel CLI.
lire1131/dsh-undo-savepoint★ 172
Undo/redo & rollback system for DSH: every config change is auto-snapshotted; undo/redo/restore to any version from the WebUI or the offline CLI/GUI tools (works even when DSH fails to boot).
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.