A-share multi-agent analysis behind /trading-agent, ported from TradingAgents-AShare, running 14 roles (analysts, bull/bear debate, risk review, trader) through the harness LLM route.
Install
# from a prebuilt release tarball
dsh plugin --profile web add "https://github.com/megatronyy/dsh-tradingagents/releases/download/v0.3.0/dsh-tradingagents-0.3.0.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:megatronyy/dsh-tradingagents
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DeepSeek Harness (dsh) 的 A 股多智能体投研分析插件:把 TradingAgents-AShare 的 14 角色分析管线移植为 dsh 原生插件,通过 /trading-agent 命令一键运行,模型调用走 dsh 已配置的 LLM 路由(无需单独配 API Key)。
分析管线(14 个角色)
意图解析(标的/关注点/持仓上下文)
└─ 数据采集(并行、逐源降级):K线+技术指标 / 新闻 / 快讯 / 资金流 / 板块 / 龙虎榜 / 涨停池 / 财务三大报表
└─ 7 位分析师并行:市场技术 / 新闻宏观 / 社交舆情 / 基本面 / 宏观板块 / 机构资金 / 量价(VPA)
└─ 多空研究员辩论 ×2 轮(互相反驳对方最新论点)
└─ 投研经理裁决(Buy/Sell/Hold + 可执行方案)
└─ 交易员初步方案
└─ 风控三方辩论(激进/保守/中性)
└─ 风控经理审核(仓位/止损/前提条件/降风险触发)
└─ 交易员最终决策
用法
在 dsh web 的输入框:
/trading-agent 600519
/trading-agent 调研比亚迪,短线能否创新高
/trading-agent 300750 关注电池新技术和主力资金,仓位 60% 成本 180
完整分析约需数分钟,报告同时返回到会话并保存到 ~/.dsh/tradingagents/reports/(含结论速览表、交易计划速览、每角色完整输出、数据附录)。
结构化决策记录:每次分析还会落一份机读 JSON 边车 <报告id>.decision.json(与 Markdown 同目录),含冻结行情基线、全部角色结论、合并后的交易计划(动作/信心/入场/止损/目标/仓位,注明来源与是否经文本回退恢复)。供后续准确率统计、记忆系统、通知触发等直接读取,无需再解析 Markdown:
curl http://127.0.0.1:3080/tradingagents/reports/<报告id>/decision
设置 → 投研报告的详情页顶部会以标签形式展示该交易计划。
安装
pnpm install && pnpm build # 构建
dsh plugin --profile web add /path/to/dsh-tradingagents
# 重启 dsh web
技术说明
- 模型:
ctx.llm(复用 dsh 当前会话的模型路由,含推理档位),无独立 LLM 配置 - 数据:公开行情接口直连(腾讯 K 线 + 东财延迟行情/数据中心/新闻),逐源超时降级,单一数据源失败不阻塞分析
- 指标:SMA/EMA/RSI/MACD/BOLL/ATR/VWMA 与 VPA 量价形态本地计算
- 决策记录:交易员/风控经理的
VERDICT机读块扩展可选交易计划键;缺失键从其正文的「最终交易建议 / 目标价 / 止损价」回退提取,机读值优先;计划字段无值时留空不编造 - 测试:57 个 vitest 用例(指标数学、接口解析、VERDICT/JSON 提取、计划回退与合并、决策记录组装、边车读写、意图回退、全管线编排、报告组装、命令注册)
本插件生成的内容不构成投资建议。
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 32318
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
superdesigndev/treg★ 4452
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin★ 1132
Tencent CloudBase backend for DeepSeek Harness — scaffold and deploy full-stack apps from chat, render query results as table cards with paging, sorting and CSV export, preview a deployment on its domain, and call the CloudBase MCP toolset (`mcp__cloudbase__*`) with device-code login.
gitroomhq/postiz-agent#dsh-postiz★ 504
Connects DeepSeek Harness to Postiz over MCP: list connected social media channels, fetch per-platform posting rules, and schedule, draft, or publish posts to X, LinkedIn, Instagram, Facebook, Threads, TikTok, YouTube, Reddit, Bluesky, Mastodon, Discord, Slack, Telegram and more; adds a postiz workflow skill.
EthanYoQ/Invoice-Downloader#dsh-invoice-downloader★ 496
Local IMAP invoice download, OCR, archive, and Excel reimbursement summaries for DeepSeek Harness.
anysearch-team/anysearch-dsh★ 447
AnySearch-powered real-time web and vertical search provider for DeepSeek Harness.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.