Repository navigation
feat: add dns agent (dsh headless) - #124
Merged
Merged
Conversation
Adds the 'dns' agent: a declarative config that runs the DeepSeek Harness headless CLI (dsh) as a one-shot benchmark target. - config/agents/dns.yaml: npm install of @deepseek-ai/dsh, requires DEEPSEEK_API_KEY, runs 'dsh --profile headless <task>'. - scripts/run-agent.sh: 'dsh | dns' branch installs the CLI on demand. - version-detector: detect dsh's version via 'dsh --version'. - Tests: registry/loader/version-detector coverage for the new agent (command shape, env forwarding, fail-fast on a missing key).
Adds the dns agent to the '[v1] Manual Benchmark Run' workflow_dispatch inputs so the new dsh headless agent can be run on GitHub Actions: - agent choice list: dns - install step: npm install -g @deepseek-ai/dsh - availability check: dsh binary
The dns agent's CLI (dsh) crashed on the runner's Node 20: it uses Promise.withResolvers (Node >= 22) and node:module.stripTypeScriptTypes (Node >= 22.18). Bump setup-node to 24 so dsh can boot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
dnsagent — a declarative config that runs the DeepSeek Harnessheadless CLI (
dsh) as a one-shot benchmark target. This is the same entrypoint used to drive the coding agent interactively:
dsh --profile headless "<task>".Changes
config/agents/dns.yaml— the agent definition:defaultProvider: deepseek@deepseek-ai/dsh(bin:dsh)require: DEEPSEEK_API_KEY(fail fast before the run)dsh --profile headless "{instructions}"scripts/run-agent.sh— newdsh | dnsbranch that installs the CLIon demand via
ensure_node_cli(same path as opencode/codex/claude) andthen
exec dsh.src/utils/version-detector.ts— detect the version viadsh --version(preserving the prerelease suffix, e.g.0.1.0-rc.6).Notes
dshself-bootstraps itsheadlessprofile on first run and resolves thedsh-base/dsh-headlessbundles from its own install, so no extra setup(pnpm/network) is required beyond
npm install -g @deepseek-ai/dsh.--model/--providerare not forwarded: the headless CLI exposes a singletask positional and selects its own default model, so
defaultProvideronly feeds ts-bench's environment resolution.
native), whichships the bash/fs/str-replace-editor tool set the benchmark needs.
Verification
bun test ./src: 200 passing (2 new tests cover the command shape, envforwarding, and fail-fast on a missing key; 1 covers version detection).
bun run typecheck: no new errors (the 9 remaining are pre-existing onmain).