Touchstone: DeepSeek Harness Agent-Driven Automated Testing Platform

Introduction

The core design philosophy of DeepSeek Harness (DSH) is “everything is a plugin,” which allows for defining agent behavior through extensions. In actual AI test development, there is often a need to manage long-term agent sessions, maintain test case libraries, and track bugs. DSH itself provides atomic execution capabilities, while orchestrating multi-round exploration, regression, and repair workflows remains a challenge for many developers.

Touchstone is a plugin designed specifically for DeepSeek Harness. It transforms DSH from a single-command-line tool into a long-running automated test workflow platform. This plugin aims to provide structured test case management, bug report generation, and a visual development board view, helping developers complete the full loop from code exploration to fix verification in a local environment.

Core Features

Touchstone provides a complete test lifecycle management mechanism, primarily including the following capabilities:

  • Markdown Case Library: Test cases are stored in Markdown format, supporting human reading and editing. Each case includes a case file and a status file, with a directory index (INDEX.md) facilitating navigation.
  • Bug Reports as First-Class Citizens: Test failures are structured into bug reports (containing severity, reproduction steps, log evidence, etc.) and stored directly in the bug_report/ directory, which can be linked to subsequent fix or case revision tasks.
  • Unified Project-Level Serial Queue: Under the same project, tasks, Kanban cards, and messages share a single serial slot, ensuring that only one agent session operates on the code repository at a time to avoid conflicts.
  • Development Board: Provides a Kanban view displaying task status, queue position, and session information. Cards can run in independent git worktrees, ensuring that exploratory work does not affect the main code checkout.
  • Six Task Types: Covering the complete QA loop, including Exploration, Regression, Stress, Fix, Re-test, and Case Revision.
  • Built-in Stress Testing: Supports generating load scenarios and driver scripts, allowing the platform to automatically execute multi-round stress tests and output Markdown or JSON reports.
  • Feishu/Lark Notifications: Supports receiving push notifications via Feishu cards and allows for two-way replies.
  • Semantic Search: Performs semantic retrieval on the case library based on RAG (Retrieval-Augmented Generation) technology.

Prerequisites

Before enabling Touchstone, the following environmental requirements must be met:

  • Node.js: Version 22.19.0 or 24.0.0 and above. This is the minimum requirement for the DSH host and the plugin mode backend (default).
  • Python: Version 3.12.0 and above. Used for standalone mode (./touchstone.sh start) or the Python backend in plugin mode.
  • DeepSeek Harness: Installed and running.

Installation and Activation

For the Touchstone installation process, it is recommended to refer to its official GitHub repository. As specific installation commands are not provided in the verified facts, please obtain the latest installation instructions via the following link:

https://github.com/gavinc-cn/touchstone-dsh

After installation, simply load the plugin in the DSH configuration to use it. The plugin supports two backend modes: the default Node.js backend and the Python backend (as a fallback option).

Typical Usage

The Touchstone workflow typically consists of the following steps:

  1. Register Project:
    Define a project in Touchstone by specifying the source code directory, working directory (for storing cases and reports), environment tags, and rules guiding the agent.

  2. Create Task:
    Specify the task type (e.g., “Exploration” or “Regression”) and the end phase (e.g., “Report”). The system will add the task to the serial queue of the corresponding project.

  3. Execute Rounds:
    The agent runs as a resident session. Each Round executes the task based on context until the end phase is reached or stop conditions are met. Logs are output in real-time.

  4. Manage Artifacts:
    After execution, new test cases are saved under free_style/ in the working directory, and bug reports are saved under bug_report/. These files are readable and writable Markdown files that can be used directly for code review or subsequent fixes.

  5. Subsequent Tasks:
    A bug report can trigger a “Fix” task; after the fix task completes code changes, it can trigger a “Re-test” task, or mark the failed case for “Case Revision.”

Notes

  • Local Execution: Touchstone runs locally, using a SQLite database and the file system for storage. Data does not leave the local machine unless the DSH host actively initiates a model call.
  • Not a One-Shot CLI: It is not a command-line tool for executing test suites once, but rather a persistent platform designed to manage multi-round agent interactions.
  • Permissions & Security: The plugin runs with the permissions of the current DSH process. Please ensure you check the source code and license before installation.
  • Environment Dependencies: If using the default Node.js backend, ensure that the Node.js version meets the requirement of 22.19+ or 24+.

Conclusion

Touchstone provides a complete test workflow management capability for DeepSeek Harness. Through structured case libraries, visual development boards, and unified queue mechanisms, it solves the challenges of context management, state tracking, and collaboration in AI testing. For developers looking to build an automated testing loop locally, this is a practical plugin choice.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye