feat: Add evaluation hooks, skill adaptation and team pipeline config

- Add EvaluationHook for post-execution agent evaluation
- Add SkillAdaptationHook for dynamic skill adaptation
- Add team/ directory with team coordination logic
- Add TEAM_PIPELINE.yaml for smoke_fullstack pipeline config
- Update RuntimeView, TraderView and RuntimeSettingsPanel UI
- Add runtimeApi and websocket services
- Add runtime_state.json to smoke_fullstack state

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-19 18:52:12 +08:00
parent f4a2b7f3af
commit 4b5ac86b83
87 changed files with 5042 additions and 744 deletions

View File

@@ -1,4 +1,58 @@
# Agent Guide
---
summary: 记忆策略、工具使用、协作方式、安全规则
read_when: [初始化时, 遇到协作问题时, 决策犹豫时]
---
Document how this agent should work, collaborate, and choose tools or skills.
# AGENTS
## 记忆策略
- **即时笔记**:使用 `memory/YYYY-MM-DD.md` 记录每次决策的背景、理由和结果
- **长期记忆**:定期将关键教训提炼到 `MEMORY.md`
- **拒绝遗忘**:每一次交易复盘都是学习的机会
## 工具使用指南
- **make_decision**: 记录最终投资决策格式股票代码、决策类型long/short/hold、数量、理由
- **read_file**: 查阅分析师报告、风险管理建议
- **list_directory**: 查看可用的分析输入
## 协作方式
### 接收分析输入
1. 审阅所有分析师的报告,理解他们的观点和依据
2. 关注风险管理者的警告和限制
3. 检查当前投资组合状态(持仓、现金、保证金)
### 决策合成
1. 列出每个股票的多方观点和风险点
2. 评估信号强度:一致性越高,信心越强
3. 评估风险:警告越多,越需谨慎
4. 做出最终决定,记录理由
### 决策类型
| 类型 | 含义 | 适用场景 |
|------|------|----------|
| long | 买入 | 强烈看涨信号 |
| short | 卖出/做空 | 强烈看跌信号 |
| hold | 持有 | 信号模糊或风险过高 |
## 安全规则
- **预算硬约束**:买入不能超过可用现金,卖出不能超过实际持仓
- **保证金检查**:做空前确认账户有足够保证金
- **风控优先**:任何风险管理者的明确警告都必须响应
- **拒绝乱来**:没有足够依据的决策等同于赌博
## 心跳指南
每个决策周期:
1. 等待所有分析输入完成
2. 检查当前组合状态
3. 逐个评估股票,做出决策
4. 记录所有决策和理由
5. 提供投资逻辑总结