Introduction

The core philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” In agent development, automated toolchains are key to improving efficiency. Writing and running load-test scripts often involves complex command-line operations and follow-up data analysis, which incurs a high manual intervention cost.

What It Is

wode25500/dsh-k6 is a community-maintained plugin that provides native Grafana k6 integration for DeepSeek Harness. Built on grafana/k6 (AGPL-3.0), it allows DSH agents to directly write, execute, and analyze load-test scripts. This is an independent project and is not officially maintained.

Core Features

The plugin includes four built-in native tools that cover the entire load-testing workflow:
* k6_version: Query k6 version information.
* k6_run: Run a load-test script.
* k6_scenarios: View or manage test scenarios.
* k6_smoke: Run a smoke test (1 VU 1 iter) to validate script usability before running large-scale load.

The plugin supports exporting a JSON test summary via --summary-export, including model-readable metrics such as p95, p99 response times, and error rate. As a lightweight CLI wrapper, it lowers the barrier to pattern reuse through a single-command-plus-script approach.

Installation and Enablement

Before installation, ensure the environment already satisfies the @deepseek-ai/cordis and @deepseek-ai/dsh-tools dependencies.

Add the following snippet to the DSH configuration file:

- insert:
    - id: k6
      name: './src/index.js'
      config:
        k6Path: k6
        timeoutMs: 300000

Use Cases and Notes

Suitable for DSH developers who need to automate load-testing workflows. The plugin runs with the permissions of the current DSH process, so please check source code and license compliance before installation (especially given its AGPL-3.0-based k6 foundation).

Short Ending

With wode25500/dsh-k6, agents can take over the writing, execution, and analysis of load tests, reducing manual intervention. For more details and source code, see its GitHub repository.