dsh-harbor-evolution
Installable DeepSeek Harness Plugin + Skill for running stable Harbor evaluation and controlled Agent evolution loops, with a native DSH Web dashboard.
The package gives DSH twelve strict Harbor tools, dedicated Tool cards, a nine-stage Evaluation Workbench, an installation Doctor, and the model- and user-invocable evolve-agent-with-harbor Skill. The Skill clarifies and initializes the Evaluation Stack, validates Dataset identity, checks Trial Lifecycle and Score Validity, governs independent Ground Truth meta-evaluation, diagnoses evidence provenance, limits each iteration to one controlled Candidate change, and invokes the Promotion Gate only as an explicit action.
Install
Requirements: Docker, Node.js 22+, pnpm, and uv. Run this from the business Agent workspace:
npx --yes dsh-harbor-evolution@latest setup --project-root "$PWD"The setup command installs both required runtimes:
harbor-dsh-evolution==0.6.1in a managed Python environment.dsh-harbor-evolution@0.6.1in the selected DSH profile.
It then stores the absolute Harbor executable paths and projectRoot in the profile's harbor-evolution block and verifies the integration. Existing unrelated profile entries are preserved, and rerunning setup updates the same block.
The default profile is web. Use --profile headless only when that is the profile you actually run. See all options with:
npx --yes dsh-harbor-evolution@latest setup --helpStop any old DSH process and run the exact restart command printed by setup. Then invoke:
/evolve-agent-with-harbor
Inspect this workspace and help me clarify and initialize a stable Harbor self-evolution loop.The Plugin registers:
harbor_candidate_snapshotharbor_evolution_initharbor_evolution_doctorharbor_dataset_validateharbor_context_previewharbor_eval_runharbor_eval_resultharbor_candidate_compare
In the web profile, the same package also registers:
- a localized nine-stage Workbench that directly exposes fixed experiment identities, Agent-visible Dataset queries/instructions, safe business-artifact previews, Ground Truth meta-evaluation, paginated per-Trial evidence and recommendations, Population validity/coverage, controlled optimization hypotheses, and Baseline/Gate deltas; raw JSON remains in the audit drawer;
- descriptor-authorized Evaluator/Rubric source editing for
scriptandllm-as-judgeimplementations, with optimistic concurrency and mandatory new identities; - a
harbor-dsh-evaluator/v1interface shared by deterministic scripts and LLM-as-Judge implementations; - compact result cards for all Harbor Tool calls;
- a
Harbor EvolutionSettings section that checks the configured project, Evaluation Stack, Jobs directory, and CLI paths.
The Web UI is intentionally read-only. Starting an evaluation or deciding promotion remains an explicit Agent + Skill workflow, so a page refresh can never launch an expensive Job.
A direct evaluation requires candidatePath, datasetPath, stackPath, and explicit mode; promotion-eligible additionally requires policyPath. Prefer the Skill because it will not run or compare Jobs until the material identities and evaluation contract are resolved.
harbor_eval_result defaults to the stable Summary. Use view=job, view=dataset, view=progress, view=trial plus a returned trialId, or view=governance to inspect sanitized instructions, generated output, evidence, and evaluator source without coupling the Agent to artifact file paths.
What setup writes
The selected profile receives one id-targeted override:
- id: harbor-evolution
config:
projectRoot: /workspace/my-agent
jobsDir: jobs
harborBin: /managed/runtime/.venv/bin/harbor
harborDshBin: /managed/runtime/.venv/bin/harbor-dsh
pythonPath: ""Keep pythonPath empty for the published Python package. candidatePath, datasetPath, jobPath, and policyPath are constrained to projectRoot.
For source development from the repository:
./hse dsh-install-source webDo not use dsh plugin add ./packages/dsh-plugin directly from a fresh checkout. pnpm records a link: dependency, and Node resolves imports from the real checkout path. The source installer first runs the package's locked npm ci, builds the portable Web client with its embedded ocean artwork, then links it and installs the local Python Adapter. Normal users should always use the registry-backed setup command above.
See the complete DSH Web quickstart for UI verification, first evaluation, Candidate comparison, and troubleshooting.
The Plugin never deploys a Candidate or mutates the active Champion. Existing CI/CD remains responsible for building, deploying, and promoting the exact evaluated artifact.