Workflow & Automation

dsh-photo-pick

xiaoyaoPanPan/dsh-photo-pick/dsh-photo-pick-app · ★ 0

xiaoyaoPanPan

Installable dsh profile bundle: photo-pick (ctx.photoPick) plus a shippable photo-pick agent preset

An English summary is not available; the Chinese summary is shown.

License
MIT
Added
2026-10-30
Maintenance
active
Install kind
github
Manifest status
Declared
Manifest path
package.json#dsh
Manifest checked
2026-10-30T14:25:29.020Z
Lifecycle scripts
None found

Static manifest checks report declarations only; they are not compatibility or security review.

安装

dsh plugin --profile web add 'github:xiaoyaoPanPan/dsh-photo-pick#8ffef593b3cdabd8fb6b8027344dd3559bc60dbf&path:/dsh-photo-pick-app'

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: en · Read Chinese README

Table of contents
  1. Install in 10 seconds (recommended: give an AI this prompt)
  2. Or install yourself
  3. 1) Allow git transitive deps (required on pnpm 11)
  4. 2) Add the plugin
  5. 3) Install the Agent Preset
  6. 4) Refresh
  7. Use
  8. Switch mode and pick
  9. Uninstall
  10. Author

Copy this prompt to Cursor / ChatGPT / Claude / DeepSeek Harness / your coding agent:

Follow https://github.com/xiaoyaoPanPan/dsh-photo-pick/blob/main/INSTALL.en.md
strictly to install dsh-photo-pick into my DeepSeek Harness web profile.

Hard order (skipping a step fails):
1) Identify the home the running dsh web actually uses (DSH_HOME, else ~/.dsh / %USERPROFILE%\.dsh). Edit that profiles/web/pnpm-workspace.yaml and set blockExoticSubdeps: false (do not delete existing keys).
2) Run: dsh plugin --profile web add "github:xiaoyaoPanPan/dsh-photo-pick#path:dsh-photo-pick-app"
3) If allowBuilds / ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED: paste the exact key pnpm printed into the same pnpm-workspace.yaml, then re-run the same add. Do not edit the plugin source.
4) Run: pnpm --dir "<that home>/profiles/web" exec dsh-photo-pick-setup-preset
5) Hard-refresh or restart dsh web. Report each step with success/failure and the raw error.

After install: with dsh web running, GET /api/photo-pick/settings, check for any model with supportsVision=true, and report what you found.
- If yes: ask me whether to wire it into Photo pick; only if I agree, PUT the same endpoint with visionEnabled=true and that visionLlmProvider / visionModel.
- If no: walk me through https://github.com/xiaoyaoPanPan/dsh-photo-pick/blob/main/SETUP-VISION.en.md to add a vision-capable custom model (do not push a specific vendor), then ask again whether to wire it up.

Step-by-step details: INSTALL.en.md.

Or install yourself

Needs official dsh, pnpm, and a working dsh web.

Order matters. Edit config first, then add.

1) Allow git transitive deps (required on pnpm 11)

Edit the web profile pnpm-workspace.yaml:

  • Default: ~/.dsh/profiles/web/pnpm-workspace.yaml (Windows: %USERPROFILE%\.dsh\profiles\web\pnpm-workspace.yaml)
  • If DSH_HOME is set: $DSH_HOME/profiles/web/pnpm-workspace.yaml

Merge (keep existing keys):

blockExoticSubdeps: false

Skipping this usually yields ERR_PNPM_EXOTIC_SUBDEP.

2) Add the plugin

dsh plugin --profile web add "github:xiaoyaoPanPan/dsh-photo-pick#path:dsh-photo-pick-app"

If dsh is not on PATH:

npx -y --package @deepseek-ai/dsh dsh plugin --profile web add "github:xiaoyaoPanPan/dsh-photo-pick#path:dsh-photo-pick-app"

If pnpm asks for allowBuilds, paste the exact printed key under allowBuilds: in the same file, then re-run the same add.

3) Install the Agent Preset

pnpm --dir "${DSH_HOME:-$HOME/.dsh}/profiles/web" exec dsh-photo-pick-setup-preset

Windows PowerShell (default home):

pnpm --dir "$env:USERPROFILE\.dsh\profiles\web" exec dsh-photo-pick-setup-preset

Custom DSH_HOME:

pnpm --dir "$env:DSH_HOME\profiles\web" exec dsh-photo-pick-setup-preset

4) Refresh

Hard-refresh or restart dsh web (Ctrl/Cmd+Shift+R). Scoring models: Settings → Photo pick; see SETUP-VISION.en.md.

Use

Switch mode and pick

  1. Mount a workspace with photos (top-left folder) and start a new chat.

  2. Open the mode dropdown above the composer (default 标准模式) and switch to 照片择优.

    Switch to Photo pick mode

  3. In the composer toolbar, click 照片择优 → the photo picker opens.

    Photo pick button under the composer

  4. Select photos → Next (optional this-batch criteria) → Confirm to chat → Send.

  5. When the agent finishes, click Compare on the tool card.

Notes: the composer 照片择优 button appears only in 照片择优 mode. This-batch criteria apply once; long-term taste lives under Scoring standard in Settings.

Uninstall

dsh plugin --profile web remove dsh-photo-pick-app
rm -rf "${DSH_HOME:-$HOME/.dsh}/.agent-presets/photo-pick"

Author

xiaoyaoPanPan · Issues · MIT

  • Packages: dsh-photo-pick / -local / -ui / dsh-tool-photo-pick / dsh-photo-pick-app (consumers install app only).
  • git / prebuilt lib/: OPENSOURCE.en.md · AI install: INSTALL.en.md · AI vision: SETUP-VISION.en.md.
  • Local: dsh plugin --profile web add "file:./dsh-photo-pick-app", then dsh-photo-pick-setup-preset.