feat: Add agent workspace system and runtime management

- Add agent core modules (agent_core, factory, registry, skill_loader)
- Add runtime system for agent execution management
- Add REST API for agents, workspaces, and runtime control
- Add process supervisor for agent lifecycle management
- Add workspace template system with agent profiles
- Add frontend RuntimeView and runtime API integration
- Add per-agent skill workspaces for smoke_fullstack run
- Refactor skill system with active/installed separation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-17 16:43:29 +08:00
parent 2daf5717ba
commit 59b44545d0
121 changed files with 8384 additions and 358 deletions

View File

@@ -0,0 +1,4 @@
# Agent Guide
Document how this agent should work, collaborate, and choose tools or skills.

View File

@@ -0,0 +1,4 @@
# Heartbeat
Optional checklist for periodic review or self-reflection.

View File

@@ -0,0 +1,4 @@
# Memory
Store durable lessons, heuristics, and reminders for this agent.

View File

@@ -0,0 +1,4 @@
# Profile
Track this agent's long-lived investment style, preferences, and strengths.

View File

@@ -0,0 +1,4 @@
# Soul
Describe the agent's temperament, reasoning posture, and voice.

View File

@@ -0,0 +1,12 @@
agent_id: technical_analyst
prompt_files:
- SOUL.md
- PROFILE.md
- AGENTS.md
- POLICY.md
- MEMORY.md
enabled_skills:
- technical_review
disabled_skills: []
active_tool_groups: []
disabled_tool_groups: []

View File

@@ -0,0 +1,21 @@
---
name: 技术分析
description: 评估价格行为、动量和波动率,用于判断时机和市场状态。
---
# 技术分析
当任务对入场时机、趋势质量或短期市场结构敏感时,使用这个技能。
## 工作流程
1. 评估趋势方向和强度。
2. 检查动量与均值回归条件。
3. 在给出激进建议前先审视波动率。
4. 将当前形态转化为带有明确风险意识的交易观点。
## 约束
- 区分趋势延续和过度透支。
- 当信号冲突时避免给出高确定性判断。
- 将波动率视为仓位输入,而不仅仅是方向输入。

View File

@@ -0,0 +1,21 @@
---
name: 技术分析
description: 评估价格行为、动量和波动率,用于判断时机和市场状态。
---
# 技术分析
当任务对入场时机、趋势质量或短期市场结构敏感时,使用这个技能。
## 工作流程
1. 评估趋势方向和强度。
2. 检查动量与均值回归条件。
3. 在给出激进建议前先审视波动率。
4. 将当前形态转化为带有明确风险意识的交易观点。
## 约束
- 区分趋势延续和过度透支。
- 当信号冲突时避免给出高确定性判断。
- 将波动率视为仓位输入,而不仅仅是方向输入。