AI Agent Hub
Back to plugins
dsh-stream-rules preview

dsh-stream-rules

Workflow Updated 2026.08.21

Run the following command in DeepSeek Harness:

dsh plugin install jiesou/dsh-stream-rules

Paste the following prompt into your AI chat to install this plugin:

In DeepSeek Harness, install this plugin using the command `dsh plugin install jiesou/dsh-stream-rules`, with the source code at https://github.com/jiesou/dsh-stream-rules.

About this plugin

In AI agent workflows, frequent tool calls can consume excessive context resources, leading to inefficiency or loss of control. The dsh-stream-rules plugin addresses this by injecting rules dynamically upon pattern matches, steering agents to retry without wasting context. Its core capabilities include custom streaming rules: developers can define match conditions to inject system notices or reject initial tool calls, offering flexible control. Rules fire at most once per session to prevent redundancy. This plugin is ideal for AI engineers, plugin developers, or users seeking to fine-tune agent behavior, enabling workflow optimization through simple code extensions without core modifications.

Screenshots

Use Cases

  • Inject rules to steer behavior when the agent performs unnecessary tool calls, saving context.
  • Control execution boundaries in custom agent workflows through pattern matching, avoiding over-restriction.
  • Optimize context resource usage to prevent redundant operations from consuming extra processing power.

Best For

  • AI agent developers requiring fine-grained control over workflow behavior.
  • Plugin engineers aiming to extend agent functionality without modifying core code.
  • Efficiency optimizers focused on context resource management and workflow performance improvement.