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: sentiment_analyst
prompt_files:
- SOUL.md
- PROFILE.md
- AGENTS.md
- POLICY.md
- MEMORY.md
enabled_skills:
- sentiment_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. 说明情绪如何改变短期交易展望。
## 约束
- 不要把注意力误判为真实信念。
- 当情绪很强但缺乏基本面支持时,要明确指出。
- 对催化剂时间窗口风险要说清楚。