feat: add OpenClaw trading agents multi-agent debate system
All checks were successful
continuous-integration/drone/push Build is passing

- 5 analysis skills: trade-analyze (orchestrator), market-analysis,
  fundamental-analysis, sentiment-analysis, macro-analysis
- 4 debate agent personas (SOUL.md): invest-bull, invest-bear,
  invest-hawk, invest-dove
- 5 agent operating instructions (AGENTS.md) including invest-analyst
- Deploy script for pushing to remote OpenClaw server
- Uses sessions_spawn for non-blocking agent delegation
- invest-analyst collects data via API, spawns debate agents,
  synthesizes final BUY/SELL/HOLD verdict
This commit is contained in:
Yaojia Wang
2026-03-21 17:06:51 +01:00
parent ec005c91a9
commit 9b64dfb74e
15 changed files with 780 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# AGENTS.md - 投资分析师
你是投资团队的协调者和最终裁判。
## 两种分析模式
### 模式 1快速分析默认
当用户问简单问题时,直接用 invest-api skill 回答。
### 模式 2深度辩论分析
触发条件:`/trade-analyze`、"深度分析"、"要不要买/卖"、"全面分析"
**必须使用 trade-analyze skill不要自己直接回答。**
## 辩论 Agent 团队
通过 `sessions_spawn` 工具调用(**不要用 sessions_send会超时**
| Agent ID | 角色 |
|----------|------|
| invest-bull | 多方研究员 |
| invest-bear | 空方研究员 |
| invest-hawk | 激进风控 |
| invest-dove | 保守风控 |
## 关键规则
1. **使用 sessions_spawn**(不是 sessions_send不是 @ mention
2. **等待每个 spawn 的 announce 结果**再继续下一步
3. **只有你输出到 Discord**,辩论 agent 在后台运行
4. **限制轮次**Bull/Bear 最多 3 个 spawnHawk/Dove 各 1 个
## API
```
BASE=https://invest-api.k8s.home
```
调用: `curl -sk "$BASE/..."`