treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Makima667/dsh-smart-profile
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
Project-aware capability setup for DeepSeek Harness: detect the repository, trim to the task, discover and score plugin candidates, preview exact changes, install with explicit approval, verify, and rollback on failure.
dsh-smart-profile is designed to solve the configuration gap created by an “everything is a plugin” ecosystem. Instead of asking users to know every plugin in advance, it starts from the repository and the task.
--apply --approve.The package is publicly available on npm.
npx dsh-smart-profile --help
npx dsh-smart-profile scan .
npx dsh-smart-profile setup .
Check the current published version:
npm view dsh-smart-profile version
Install the bundle into a DeepSeek Harness profile:
npx --yes @deepseek-ai/dsh@next plugin --profile web add dsh-smart-profile@latest
Or use the helper command:
npx dsh-smart-profile install --profile web
project
↓
stack detection + evidence/confidence
↓
capability recommendations
↓
optional task-aware trimming
↓
public npm candidate discovery
↓
project-fit / maintenance / package / supply-chain scoring
↓
DSH compatibility status
↓
safe candidate selection
↓
exact install + verify + rollback preview
↓
explicit --apply --approve
↓
install one by one
↓
DSH --dump-config verification
↓
success
failure → remove the current package and roll back packages installed by this run in reverse order
The default behavior is preview-only. The CLI does not write to a DSH profile unless the user supplies both --apply and --approve.
Preview a complete setup plan:
npx dsh-smart-profile setup .
Trim the setup to a concrete task:
npx dsh-smart-profile setup . --task "fix the frontend Playwright tests"
Choose another profile or candidate score threshold:
npx dsh-smart-profile setup . --profile web --min-score 75
Actually apply the reviewed plan:
npx dsh-smart-profile setup . --profile web --apply --approve
Both write flags are intentional. --approve without --apply still does not install anything.
npx dsh-smart-profile scan .
npx dsh-smart-profile recommend .
npx dsh-smart-profile compose "debug the database migration" .
npx dsh-smart-profile discover .
npx dsh-smart-profile score .
npx dsh-smart-profile compat next
npx dsh-smart-profile web . --port 4173
Manual single-package safety flow:
npx dsh-smart-profile plan dsh-example@1.2.3 --profile web
npx dsh-smart-profile apply dsh-example@1.2.3 --profile web --approve
The bundle registers read-oriented/preview tools:
smart_profile_scan — stack detection with evidencesmart_profile_recommend — project capability recommendationssmart_profile_discover — public npm candidate discovery; no installsmart_profile_score — candidate scoring and risk flagssmart_profile_install_plan — exact single-candidate command plan; no executionsmart_profile_compose — task-aware capability trimmingsmart_profile_setup_plan — full 1.0 setup preview; no executionsmart_profile_compat — local compatibility policy/matrix reportThe Harness model is deliberately not given an auto-install tool. Profile writes remain an explicit CLI action so a model call cannot silently install host-level code.
Current detectors include:
Detection is heuristic and returns evidence plus confidence instead of pretending every signal is certain.
Scores are advisory. 1.0 combines:
Automatic setup selection refuses candidates that:
review-requireddsh.bundle.patchA high score is not a security guarantee. Review source for sensitive environments.
Before installing a selected package, 1.0 uses DSH --dump-config as an in-memory snapshot/verification signal. Raw composed configuration is not persisted by this package; only hashes are returned in operation results.
If the package is already present in the composed profile, setup leaves it untouched. For packages installed during the current setup run:
--dump-configRollback is best-effort because host/package-manager failures can still interrupt processes outside this package's control.
compatibility.json distinguishes between:
ci-target — a channel the repository workflow attempts to testverified — reserved for evidence-backed combinationsunknown — exact targets not recorded in the matrixThe repository workflow tests Node 20/22/24, npm package shape, local bundle installation, and DSH --dump-config against @deepseek-ai/dsh@next. A declared target is not automatically labeled verified.
npx dsh-smart-profile compat next
npx dsh-smart-profile web . --port 4173
The dashboard:
127.0.0.1 by defaultno-store responsesThe scanner intentionally avoids arbitrary source-code reads. It focuses on known manifests, lockfile names, selected configuration files, and directory/file signals.
It does not intentionally read:
.envGenerated/build/vendor directories are skipped and scanning is bounded by depth and manifest limits.
The repository includes .github/workflows/publish.yml for npm Trusted Publishing with GitHub Actions OIDC.
For future releases:
package.json to the next versionv1.1.0package.jsonnpm run pack:check must pass before npm publishThe workflow intentionally contains no long-lived npm publish token. npm Trusted Publishing must be configured once for this package with:
Makima667dsh-smart-profilepublish.ymlnpm publishRequires Node.js 20+.
npm test
npm run pack:check
The package has zero runtime npm dependencies.
See CHANGELOG.md for details.
The 1.x line should focus on trust and ecosystem quality rather than simply adding more detectors:
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: developer-tools、devtools、cli。