vvlife/dsh-agnes-paseo

项目介绍Project Overview

dsh-agnes-paseo 是 DeepSeek Harness 插件,接入 Agnes AI 模型网关,并将 dsh 注册为 Paseo 的 provider。通过配置声明 agnes 路由,默认模型为 agnes-2.5-flash。适用于需要 Agnes 模型或 Paseo 集成的场景。注意:Paseo 回合间不保留对话上下文。

dsh-agnes-paseo is a DeepSeek Harness plugin that connects to the Agnes AI model gateway and registers dsh as a Paseo provider. It declares an agnes route via configuration, defaulting to the agnes-2.5-flash model. Use it when integrating Agnes models or Paseo. Note: Paseo turns do not retain conversation context.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile headless add github:vvlife/dsh-agnes-paseo

vvlife/dsh-agnes-paseo 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-agnes-paseo

DeepSeek Harness(dsh)插件:接入 Agnes AI 模型网关,并一键把 dsh 注册为 Paseo 的 provider

  • dsh 侧:通过 bundle patch 在 llm-pi-ai 适配器上声明 agnes provider 路由(OpenAI 兼容,https://apihub.agnes-ai.com/v1),并把默认模型切到 agnes/agnes-2.5-flash。纯配置,无构建、无运行时依赖。
  • Paseo 侧:自带一个零依赖的 ACP 桥(dsh-acp-bridge),把 dsh --profile headless 包装成 ACP agent;setup 脚本自动写入 Paseo provider 配置。

安装

dsh plugin --profile headless add github:vvlife/dsh-agnes-paseo
# 如用 dsh web,也装一份到 web profile:
dsh plugin --profile web add github:vvlife/dsh-agnes-paseo

校验挂载成功:

dsh --profile headless --dump-config | grep -A3 agent-default-model
#   provider: agnes
#   model: agnes-2.5-flash

初始化(凭据 + Paseo 注册)

# 在 profile 目录里执行(或直接给绝对路径)
cd ~/.dsh/profiles/headless
pnpm exec dsh-agnes-paseo-setup --key sk-你的AgnesKey

也可以不设 --key,用环境变量 AGNES_API_KEY 或交互式输入。Key 在 platform.agnes-ai.com 创建。

setup 会做三件事:

  1. AGNES_API_KEY 写入 ~/.dsh/.credentials.yaml(0600)
  2. ACP 桥复制到 ~/.dsh/paseo-bridge/dsh-acp-bridge.mjs
  3. ~/.paseo/config.json 写入 provider(原文件备份为 .bak):
"deepseek": {
  "extends": "acp",
  "label": "DeepSeek Harness",
  "command": ["~/.dsh/paseo-bridge/dsh-acp-bridge.mjs"]
}

然后:

paseo daemon restart
paseo provider ls        # deepseek 应为 available

在 Paseo 里新建 agent 选择 DeepSeek Harness,模型下拉里可切 agnes-2.5-flash / agnes-2.5-pro / agnes-2.0-flash

可用模型

模型 说明
agnes-2.5-flash 默认,快
agnes-2.5-pro 更强,慢
agnes-2.0-flash 上一代

Agnes 是推理模型,默认 reasoning_effort: low(速度优先)。

注意

  • 每个 Paseo prompt 回合是一次独立的 dsh --profile headless 运行,回合间不保留对话上下文(dsh headless 无 resume)。
  • ACP 桥 spawn 的 dsh 依次探测 /opt/homebrew/bin/dsh/usr/local/bin/dsh、PATH;可用环境变量 DSH_BIN 指定。
  • 卸载插件(dsh plugin --profile headless remove dsh-agnes-paseo)后,dsh 恢复原默认模型;Paseo provider 需手动从 ~/.paseo/config.json 删除 deepseek 条目并 paseo daemon restart
  • Agnes API 文档:https://wiki.agnes-ai.com

License

MIT

上一个 Prev websearch-plugins 下一个 Next dsh-filelens