DeepSeek Harness SearchOps Plugin: Agent-Native Search and Log Investigation

Introduction

Directly querying raw OpenSearch endpoints can easily overwhelm agents with data overload. Billions of documents, GB-sized responses, or repetitive error logs consume massive amounts of tokens and make extracting effective information difficult. dsh-searchops is designed for this scenario; it is an Agent-native evidence acquisition layer, not a simple API wrapper. The plugin handles deterministic, high-cost analytical work (such as boundary limiting, grouping, and fingerprinting) and delivers structured evidence packets to the agent, allowing the agent to focus on reasoning.

Plugin Positioning

This is an Agent-native search, log investigation, and cluster operation plugin designed specifically for DeepSeek Harness. It is built on OpenSearch but remains provider-neutral and strictly read-only.

Core Capabilities

  • Agent-Native Toolkit: Provides 9 read-only tools under the searchops_* namespace, specifically designed for agent interaction.
  • Deterministic Fingerprinting: Deduplicates and patterns logs, such as merging multiple Connection refused errors into a single pattern with a count, extracting key information without machine learning.
  • Flexible Sources & Configuration: Supports configuring multiple named sources, where each source can bind independent field configurations (e.g., timestamp, message, TraceID). The plugin automatically detects mappings or follows conventions.
  • Provider Abstraction & Extensibility: Core logic is based on SearchSource / SearchQuery / SearchResult / SearchProvider interfaces. OpenSearch is the default adapter, and Elasticsearch is an extension point.
  • Strict Security Boundaries: Credentials never enter model context; redirects are disabled to prevent cross-domain credential leakage; responses are limited by size and time; all returned content is treated as untrusted data.
  • Constructive Boundaries: All list and query operations explicitly disclose truncation information rather than silently dropping data.

Installation & Activation

Environment Requirements
* Node.js >= 20.11
* DeepSeek Harness version 0.1.0-rc.6 to 0.1.5 (pre-release versions)

Installation
The plugin is pure ESM JavaScript with no build step required.

dsh plugin --profile <profile> add github:guhanfei-ai/dsh-searchops#v0.1.0

Please restart the selected DSH Profile after installation.

Typical Usage

Configuring Sources
Add sources in Settings → Plugins → SearchOps. Passwords must be stored in the DSH credential store and accessed via references derived from the source ID (e.g., SEARCHOPS_PASSWORD_prod).

Agent Interaction Example
Once configured, the Agent can perform the following operations:

Is the prod search cluster healthy?
Show me the last hour of payment-api errors.
Investigate why payment-api is returning 500s.

Notes & Ecosystem

Project Status
The current version is v0.1.0, in a pre-1.0 state. It has not yet been certified against all OpenSearch distributions and versions.

Security & Limitations
* All tools are strictly read-only; they will not write, delete, or alter cluster state.
* OpenSearch-first, provider-neutral by design.
* Recommended for use in OpenSearch-based environments.

Ecosystem Context
DeepSeek Harness adopts an “everything is a plugin” philosophy. This plugin is hosted in an independent community directory and has no official affiliation with DeepSeek or High-Flyer.

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

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

Xiaoye