Skip to main content

anolisa/src/agentsight/dsh-plugin

365Stars94Forks191Issues3Watchers

Integrate AgentSight observability capabilities into DSH, allowing agents to call the agentsight_status tool to query the plugin's status and version.

Evidence4/5methodologySourceInstallMaintenanceDSH versionSecurity scan
Machine-auditedInstall commandRepo verifieddsh-plugin topicLicenseREADMEAI wiki
Language
Rust
License
Apache-2.0
Branch
main
agent-infrastructureagent-memoryagent-runtimeagent-securityagentic-aiagentic-osai-agentscontext-engineering

Install

cmdweb profile
$ dsh plugin --profile web add --allow-build=@agentsight/dsh-plugin github:alibaba/anolisa#path:src/agentsight/dsh-plugin

Run the command above in your terminal to install this plugin via the dsh CLI. You can switch Profile in the top-right corner. New to dsh? Read the beginner tutorial

Install via your agent

Install the DeepSeek Harness plugin alibaba/anolisa/src/agentsight/dsh-plugin for me: review the repository at https://github.com/alibaba/anolisa first, then run the install command and verify the plugin loads successfully.

Paste this instruction to the DSH Web GUI assistant — it will install and verify for you.

One-Line Positioning

This is a bridge plugin that connects AgentSight's observability capabilities to DSH (DeepSeek Harness). It only registers a single tool called agentsight_status, allowing running Agents to query whether the plugin is activated and its current version—essentially exposing AgentSight's "self-introduction" entry point within DSH.

Core Capabilities

  • Injects a Cordis plugin named agentsight into DSH, depending on the host's tools extension
  • Registers the built-in tool agentsight_status for Agents to call during sessions
  • When called, returns the plugin name, version number (dynamically read from package.json), activation status, and current capability list
  • Outputs a startup log via ctx.logger.info when the plugin finishes loading, marking the registered version number and tool name

Technical Implementation

  • Language: TypeScript (ESM, target ES2022)
  • Key Dependencies: @deepseek-ai/cordis ^4.0.1 (plugin host framework), @deepseek-ai/dsh-tools ^0.1.0-rc.2 (DSH tool registration extension)
  • Architecture Pattern: Standard Cordis plugin pattern — declares insertion points via insert in cordis.patch.yml, executes apply(ctx) at runtime to register tools to ctx.tools
  • Entry File: src/index.ts (49 lines, all logic)

Use Cases

Install this plugin when users have already deployed the AgentSight main program on their machines (responsible for eBPF tracing, token statistics, Dashboard, etc.) and want Agents within DSH to be aware of AgentSight's presence. Typical usage is for Agents to call agentsight_status for self-check at the start of each session or when asked "what observability tools do I have installed," rather than hardcoding version numbers in conversations.

Prerequisites and Compatibility

DependencyMinimum VersionDescription
DSH Host Framework>=0.1.0-rc.2 <0.2.0Declared via peerDependencies, requires @deepseek-ai/dsh-tools within this range
Node.js>=22.0.0Declared via engines field, TS compilation target is ES2022
Operating SystemCross-platformPlugin code itself has no native module dependencies; the AgentSight main program it bridges requires Linux kernel >= 5.8

Installation

dsh plugin --profile web add github:alibaba/anolisa/src/agentsight/dsh-plugin

Configuration

No additional configuration required for this plugin.

FAQ

Q: Can this plugin collect Agent's LLM calls, token consumption, or network traffic?

A: No. This plugin only registers an agentsight_status tool, does not start any probes, does not read network data, and does not write to databases. The actual collection work is done by the AgentSight main program, which needs to be deployed separately.

Q: Do I need additional configuration after installation?

A: No. The plugin only injects and registers a built-in tool via Cordis. It has no Schema configuration items, does not read environment variables, and does not read/write external files. Install and use immediately.

Q: What is its relationship with the AgentSight main program?

A: It is a lightweight bridge layer between DSH and AgentSight, only exposing status query capabilities; the actual eBPF data collection, SQLite storage, HTTP API, and Dashboard are provided by the AgentSight main program, which needs to be deployed separately.

Q: Will uninstalling affect already collected data?

A: The plugin itself does not persist any data, so uninstalling it is safe; it does not touch the AgentSight main program's SQLite, configuration, or trace records.

Q: Can it run on macOS or Windows?

A: The plugin code itself is cross-platform TypeScript/Node.js code, but the AgentSight main program it bridges depends on Linux kernel's eBPF capabilities. If only this plugin is enabled without the main program installed, the tool will always report active=true but capabilities will only contain status.

Q: Where does the version returned by calling agentsight_status come from?

A: It is read via fs.readFileSync reading its own package.json's version field when the plugin apply() executes, so the returned value is always the version bundled into the plugin at build time.

Getting Started

Beginner — only one tool, no configuration, no side effects, install and use.

Known Issues and Limitations

  • The capabilities field of the agentsight_status tool is currently hardcoded to return ['status'] and does not dynamically change based on whether the host has the AgentSight main program installed, so the return value cannot be used to determine if the main program is running
  • The plugin does not provide interfaces for querying the AgentSight main program's version, running status, or collection channel health; callers needing more detailed information need to query the main program's own HTTP API instead
  • Since apply() depends on the host exposing the ctx.tools extension, loading will fail in host environments that do not meet inject: ['tools']

Read the usage guide →

Install steps, key points, FAQ and compatibility for this plugin — auto-derived from indexed fields.

Listing badge

Listed on deepseek-plugin.org
[![Listed on deepseek-plugin.org](https://img.shields.io/badge/listed_on-deepseek--plugin.org-007EC6)](https://deepseek-plugin.org/plugins/alibaba/anolisa/src/agentsight/dsh-plugin)

Paste this markdown into your GitHub README to link back to this listing. The badge only states the listing — not a security endorsement.

← Back to plugin directory