Skip to content

feat: add dns agent (dsh headless) - #124

Merged
laiso merged 3 commits into
mainfrom
feat/dns-agent
Aug 14, 2026
Merged

laiso merged 3 commits into
mainfrom
feat/dns-agent

Conversation

@laiso

@laiso laiso commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

Adds the dns agent — a declarative config that runs the DeepSeek Harness
headless CLI (dsh) as a one-shot benchmark target. This is the same entry
point used to drive the coding agent interactively: dsh --profile headless "<task>".

Changes

  1. config/agents/dns.yaml — the agent definition:

    • defaultProvider: deepseek
    • npm install of @deepseek-ai/dsh (bin: dsh)
    • require: DEEPSEEK_API_KEY (fail fast before the run)
    • command dsh --profile headless "{instructions}"
  2. scripts/run-agent.sh — new dsh | dns branch that installs the CLI
    on demand via ensure_node_cli (same path as opencode/codex/claude) and
    then exec dsh.

  3. src/utils/version-detector.ts — detect the version via
    dsh --version (preserving the prerelease suffix, e.g. 0.1.0-rc.6).

Notes

  • dsh self-bootstraps its headless profile on first run and resolves the
    dsh-base/dsh-headless bundles from its own install, so no extra setup
    (pnpm/network) is required beyond npm install -g @deepseek-ai/dsh.
  • --model/--provider are not forwarded: the headless CLI exposes a single
    task positional and selects its own default model, so defaultProvider
    only feeds ts-bench's environment resolution.
  • Tools mode is intentionally left at the schema default (native), which
    ships the bash/fs/str-replace-editor tool set the benchmark needs.

Verification

  • bun test ./src: 200 passing (2 new tests cover the command shape, env
    forwarding, and fail-fast on a missing key; 1 covers version detection).
  • bun run typecheck: no new errors (the 9 remaining are pre-existing on
    main).

laiso added 3 commits August 14, 2026 20:10
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.
@laiso
laiso merged commit ffed490 into main Aug 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant