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: risk_manager
prompt_files:
- SOUL.md
- PROFILE.md
- AGENTS.md
- POLICY.md
- MEMORY.md
enabled_skills:
- risk_review
disabled_skills: []
active_tool_groups: []
disabled_tool_groups: []

View File

@@ -0,0 +1,21 @@
---
name: 风险审查
description: 在最终仓位和执行前,评估组合与市场风险。
---
# 风险审查
当你需要识别集中度、波动率、杠杆和情景风险时,使用这个技能。
## 工作流程
1. 按 ticker 和主题检查拟议敞口。
2. 识别集中度、波动率、流动性和杠杆方面的风险点。
3. 按严重程度排序风险警示。
4. 将风险结论转化为给投资经理的具体限制或注意事项。
## 约束
- 聚焦可执行的风险控制措施。
- 当数据支持时尽量量化限制。
- 明确区分致命阻断项和可管理风险。

View File

@@ -0,0 +1,21 @@
---
name: 风险审查
description: 在最终仓位和执行前,评估组合与市场风险。
---
# 风险审查
当你需要识别集中度、波动率、杠杆和情景风险时,使用这个技能。
## 工作流程
1. 按 ticker 和主题检查拟议敞口。
2. 识别集中度、波动率、流动性和杠杆方面的风险点。
3. 按严重程度排序风险警示。
4. 将风险结论转化为给投资经理的具体限制或注意事项。
## 约束
- 聚焦可执行的风险控制措施。
- 当数据支持时尽量量化限制。
- 明确区分致命阻断项和可管理风险。