New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

dsh-agent-policy

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsh-agent-policy

全局 Agent 行为策略:向所有会话注入「纯文本模型能力边界(识图走 ocr.py,不用 read_image)」与「指令冲突时技能摘要优先」的独立 systemPrompt section,不受 preset persona 遮蔽

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

dsh-agent-policy

全局 Agent 行为策略:向所有会话注入「纯文本模型能力边界」与「指令优先级」的独立 systemPrompt section。

工作原理

在 host 平面注册独立命名的 systemPrompt section(user:agent-policy),注入两条策略:

  • 能力边界: 当前路由是纯文本模型,不能直接接收图片,识图走 ocr.py
  • 指令优先级: 技能摘要优先于通用工具指引

配置

字段默认说明
text(见源码)注入的策略文本
order2section 顺序

官方规范参考

  • 打包与安装插件 — Bundle/Profile 机制
  • 插件配置 — Config schema 定义
  • Cordis 入门 — 核心概念与事件模式

FAQs

Package last updated on 17 Aug 2026

Related posts