foliko 1.1.75 → 1.1.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +5 -1
- package/.dockerignore +45 -45
- package/.env.example +56 -56
- package/cli/src/ui/chat-ui.js +56 -126
- package/cli/src/ui/components/agent-mention-provider.js +175 -0
- package/cli/src/ui/components/chained-autocomplete-provider.js +64 -0
- package/cli/src/ui/{footer-bar.js → components/footer-bar.js} +2 -2
- package/docker-compose.yml +33 -33
- package/docs/features.md +120 -120
- package/docs/quick-reference.md +160 -160
- package/package.json +1 -1
- package/plugins/ai-plugin.js +3 -3
- package/plugins/ambient-agent/ExplorerLoop.js +17 -17
- package/plugins/ambient-agent/index.js +2 -2
- package/plugins/data-splitter-plugin.js +9 -9
- package/plugins/default-plugins.js +7 -8
- package/plugins/extension-executor-plugin.js +2 -2
- package/plugins/feishu-plugin.js +5 -5
- package/plugins/install-plugin.js +4 -4
- package/plugins/memory-plugin.js +1 -1
- package/plugins/plugin-manager-plugin.js +9 -8
- package/plugins/python-plugin-loader.js +2 -2
- package/plugins/qq-plugin.js +4 -4
- package/plugins/rules-plugin.js +2 -2
- package/plugins/scheduler-plugin.js +13 -13
- package/plugins/session-plugin.js +2 -2
- package/plugins/subagent-plugin.js +1 -1
- package/plugins/telegram-plugin.js +6 -6
- package/plugins/think-plugin.js +4 -4
- package/plugins/tools-plugin.js +1 -1
- package/plugins/web-plugin.js +16 -16
- package/skills/find-skills/SKILL.md +133 -133
- package/skills/foliko-dev/AGENTS.md +236 -236
- package/skills/mcp-usage/SKILL.md +200 -200
- package/skills/subagent-guide/SKILL.md +237 -237
- package/skills/workflow-guide/SKILL.md +646 -646
- package/src/capabilities/skill-manager.js +5 -5
- package/src/capabilities/workflow-engine.js +5 -5
- package/src/core/agent-chat.js +8 -8
- package/src/core/agent.js +80 -5
- package/src/core/branch-summary-auto.js +4 -4
- package/src/core/chat-session.js +1 -0
- package/src/core/session-entry.js +14 -6
- package/src/core/session-manager.js +15 -3
- package/src/executors/mcp-executor.js +21 -25
- package/src/utils/data-splitter.js +3 -3
- package/src/utils/message-validator.js +1 -1
- package/website_v2/styles/animations.css +7 -7
- /package/cli/src/ui/{message-bubble.js → components/message-bubble.js} +0 -0
- /package/cli/src/ui/{status-bar.js → components/status-bar.js} +0 -0
|
@@ -1,237 +1,237 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: subagent-guide
|
|
3
|
-
description: Guide to creating and using subagents in Foliko. Use when creating new subagents or delegating tasks to subagents.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SubAgent 子代理指南
|
|
7
|
-
|
|
8
|
-
本文档介绍如何在 Foliko 框架中创建和使用子代理(SubAgent)。
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## 什么是子代理?
|
|
13
|
-
|
|
14
|
-
子代理是具有独立工具集和系统提示词的专用 AI Agent,用于分工处理不同领域的任务。
|
|
15
|
-
|
|
16
|
-
主代理(MainAgent)负责任务分发,将专业任务委托给最匹配的子代理处理。
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## 子代理文件位置
|
|
21
|
-
|
|
22
|
-
所有子代理配置位于 `.foliko/agents/` 目录下:
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
.foliko/agents/
|
|
26
|
-
├── backend-specialist.md # 后端开发专家
|
|
27
|
-
├── frontend-specialist.md # 前端开发专家
|
|
28
|
-
├── database-architect.md # 数据库架构师
|
|
29
|
-
├── debugger.md # 调试专家
|
|
30
|
-
├── explorer-agent.md # 代码探索专家
|
|
31
|
-
├── orchestrator.md # 任务编排专家
|
|
32
|
-
└── ... # 更多子代理
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## 创建新的子代理
|
|
38
|
-
|
|
39
|
-
### 步骤 1:创建 md 文件
|
|
40
|
-
|
|
41
|
-
在 `.foliko/agents/` 目录下创建一个新的 `.md` 文件,文件名即为子代理名称。
|
|
42
|
-
|
|
43
|
-
**示例**:`my-agent.md`
|
|
44
|
-
|
|
45
|
-
### 步骤 2:编写 frontmatter
|
|
46
|
-
|
|
47
|
-
文件开头使用 YAML frontmatter 定义元数据:
|
|
48
|
-
|
|
49
|
-
```yaml
|
|
50
|
-
---
|
|
51
|
-
name: my-agent
|
|
52
|
-
description: 简短的能力描述,用于主代理智能选择。说明何时触发此代理。
|
|
53
|
-
tools: Read, Grep, Glob, Bash
|
|
54
|
-
skills: clean-code, architecture
|
|
55
|
-
model: inherit
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
# My Agent Title
|
|
59
|
-
|
|
60
|
-
你的详细系统提示词内容...
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### frontmatter 字段说明
|
|
64
|
-
|
|
65
|
-
| 字段 | 必填 | 说明 |
|
|
66
|
-
|------|------|------|
|
|
67
|
-
| `name` | 是 | 子代理名称,必须与文件名匹配 |
|
|
68
|
-
| `description` | 是 | 简短描述,用于主代理的任务匹配表 |
|
|
69
|
-
| `tools` | 否 | 子代理可使用的工具列表 |
|
|
70
|
-
| `skills` | 否 | 子代理加载的技能列表 |
|
|
71
|
-
| `model` | 否 | 模型配置,`inherit` 表示继承父代理配置 |
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## frontmatter 示例
|
|
76
|
-
|
|
77
|
-
### 后端开发专家
|
|
78
|
-
|
|
79
|
-
```yaml
|
|
80
|
-
---
|
|
81
|
-
name: backend-specialist
|
|
82
|
-
description: Expert backend architect for Node.js, Python, and modern serverless/edge systems. Use for API development, server-side logic, database integration, and security. Triggers on backend, server, api, endpoint, database, auth.
|
|
83
|
-
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
84
|
-
skills: clean-code, nodejs-best-practices, python-patterns, api-patterns, database-design
|
|
85
|
-
model: inherit
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
# Backend Development Architect
|
|
89
|
-
|
|
90
|
-
You are a Backend Development Architect who designs and builds server-side systems with security, scalability, and maintainability as top priorities.
|
|
91
|
-
...
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
### 代码调试专家
|
|
95
|
-
|
|
96
|
-
```yaml
|
|
97
|
-
---
|
|
98
|
-
name: debugger
|
|
99
|
-
description: Expert in systematic debugging, root cause analysis, and crash investigation. Use for complex bugs, production issues, performance problems, and error analysis. Triggers on bug, error, crash, not working, broken, investigate, fix.
|
|
100
|
-
tools: Read, Grep, Glob, Bash
|
|
101
|
-
skills: clean-code, systematic-debugging
|
|
102
|
-
model: inherit
|
|
103
|
-
---
|
|
104
|
-
|
|
105
|
-
# Debugging Expert
|
|
106
|
-
|
|
107
|
-
You are an expert at finding and fixing bugs through systematic investigation.
|
|
108
|
-
...
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
## 正文内容格式
|
|
114
|
-
|
|
115
|
-
正文内容会被完整读取作为子代理的系统提示词。支持 Markdown 格式:
|
|
116
|
-
|
|
117
|
-
```markdown
|
|
118
|
-
# Agent Title
|
|
119
|
-
|
|
120
|
-
## Section 1
|
|
121
|
-
|
|
122
|
-
内容...
|
|
123
|
-
|
|
124
|
-
## Section 2
|
|
125
|
-
|
|
126
|
-
内容...
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
## 使用子代理
|
|
132
|
-
|
|
133
|
-
### 自动匹配
|
|
134
|
-
|
|
135
|
-
主代理会根据任务描述自动选择最匹配的子代理处理。
|
|
136
|
-
|
|
137
|
-
### 手动调用
|
|
138
|
-
|
|
139
|
-
使用 `subagent_call` 工具手动调用子代理:
|
|
140
|
-
|
|
141
|
-
```javascript
|
|
142
|
-
{
|
|
143
|
-
"agentName": "backend-specialist",
|
|
144
|
-
"task": "帮我创建一个用户认证的 API"
|
|
145
|
-
}
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## 子代理系统提示词组合
|
|
151
|
-
|
|
152
|
-
当调用子代理时,系统提示词按以下顺序组合:
|
|
153
|
-
|
|
154
|
-
1. **frontmatter description** - 简短能力描述
|
|
155
|
-
2. **正文内容** - 完整的 markdown 内容
|
|
156
|
-
|
|
157
|
-
类似于 Skill 的工作方式,子代理的完整 md 文件内容会被读取并作为系统提示词。
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
## 重载子代理配置
|
|
162
|
-
|
|
163
|
-
修改 `.foliko/agents/` 下的文件后,使用 `subagent_reload` 工具重载:
|
|
164
|
-
|
|
165
|
-
```javascript
|
|
166
|
-
{
|
|
167
|
-
// 空参数
|
|
168
|
-
}
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
## 技能与子代理的区别
|
|
174
|
-
|
|
175
|
-
| 特性 | Skill | SubAgent |
|
|
176
|
-
|------|-------|----------|
|
|
177
|
-
| 系统提示词 | 指令和最佳实践 | 完整角色定义 |
|
|
178
|
-
| 工具 | 继承父代理工具 | 可自定义工具集 |
|
|
179
|
-
| 调用方式 | `loadSkill` 工具 | `subagent_call` 工具 |
|
|
180
|
-
| 适用场景 | 专业领域指导 | 独立处理复杂任务 |
|
|
181
|
-
| LLM | 共享父代理 | 可独立配置 |
|
|
182
|
-
|
|
183
|
-
---
|
|
184
|
-
|
|
185
|
-
## 最佳实践
|
|
186
|
-
|
|
187
|
-
1. **清晰的 description**:帮助主代理正确匹配任务
|
|
188
|
-
2. **合适的工具集**:只授予必要的工具权限
|
|
189
|
-
3. **技能组合**:通过 `skills` 字段引用已有技能
|
|
190
|
-
4. **简洁的正文**:包含核心指令和决策逻辑
|
|
191
|
-
|
|
192
|
-
---
|
|
193
|
-
|
|
194
|
-
## 示例:创建一个 API 开发专家
|
|
195
|
-
|
|
196
|
-
**文件**:`.foliko/agents/api-expert.md`
|
|
197
|
-
|
|
198
|
-
```yaml
|
|
199
|
-
---
|
|
200
|
-
name: api-expert
|
|
201
|
-
description: API design and development expert. Use for RESTful API, GraphQL, gRPC design and implementation. Triggers on api, endpoint, REST, GraphQL, webhook.
|
|
202
|
-
tools: Read, Grep, Glob, Bash, Write, Edit
|
|
203
|
-
skills: clean-code, api-patterns
|
|
204
|
-
model: inherit
|
|
205
|
-
---
|
|
206
|
-
|
|
207
|
-
# API Development Expert
|
|
208
|
-
|
|
209
|
-
You are an expert at designing and building APIs.
|
|
210
|
-
|
|
211
|
-
## Design Principles
|
|
212
|
-
|
|
213
|
-
1. **RESTful**: Follow REST conventions for resource naming
|
|
214
|
-
2. **Consistency**: Use consistent response formats
|
|
215
|
-
3. **Error Handling**: Always provide meaningful error messages
|
|
216
|
-
4. **Documentation**: Generate OpenAPI/Swagger specs
|
|
217
|
-
|
|
218
|
-
## Response Format
|
|
219
|
-
|
|
220
|
-
```json
|
|
221
|
-
{
|
|
222
|
-
"success": true,
|
|
223
|
-
"data": { ... },
|
|
224
|
-
"error": null
|
|
225
|
-
}
|
|
226
|
-
```
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
---
|
|
230
|
-
|
|
231
|
-
## 总结
|
|
232
|
-
|
|
233
|
-
- 子代理文件位于 `.foliko/agents/*.md`
|
|
234
|
-
- 使用 YAML frontmatter 定义元数据
|
|
235
|
-
- 正文内容作为完整系统提示词
|
|
236
|
-
- 通过 `subagent_call` 调用
|
|
237
|
-
- 修改后用 `subagent_reload` 重载
|
|
1
|
+
---
|
|
2
|
+
name: subagent-guide
|
|
3
|
+
description: Guide to creating and using subagents in Foliko. Use when creating new subagents or delegating tasks to subagents.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SubAgent 子代理指南
|
|
7
|
+
|
|
8
|
+
本文档介绍如何在 Foliko 框架中创建和使用子代理(SubAgent)。
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 什么是子代理?
|
|
13
|
+
|
|
14
|
+
子代理是具有独立工具集和系统提示词的专用 AI Agent,用于分工处理不同领域的任务。
|
|
15
|
+
|
|
16
|
+
主代理(MainAgent)负责任务分发,将专业任务委托给最匹配的子代理处理。
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 子代理文件位置
|
|
21
|
+
|
|
22
|
+
所有子代理配置位于 `.foliko/agents/` 目录下:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
.foliko/agents/
|
|
26
|
+
├── backend-specialist.md # 后端开发专家
|
|
27
|
+
├── frontend-specialist.md # 前端开发专家
|
|
28
|
+
├── database-architect.md # 数据库架构师
|
|
29
|
+
├── debugger.md # 调试专家
|
|
30
|
+
├── explorer-agent.md # 代码探索专家
|
|
31
|
+
├── orchestrator.md # 任务编排专家
|
|
32
|
+
└── ... # 更多子代理
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 创建新的子代理
|
|
38
|
+
|
|
39
|
+
### 步骤 1:创建 md 文件
|
|
40
|
+
|
|
41
|
+
在 `.foliko/agents/` 目录下创建一个新的 `.md` 文件,文件名即为子代理名称。
|
|
42
|
+
|
|
43
|
+
**示例**:`my-agent.md`
|
|
44
|
+
|
|
45
|
+
### 步骤 2:编写 frontmatter
|
|
46
|
+
|
|
47
|
+
文件开头使用 YAML frontmatter 定义元数据:
|
|
48
|
+
|
|
49
|
+
```yaml
|
|
50
|
+
---
|
|
51
|
+
name: my-agent
|
|
52
|
+
description: 简短的能力描述,用于主代理智能选择。说明何时触发此代理。
|
|
53
|
+
tools: Read, Grep, Glob, Bash
|
|
54
|
+
skills: clean-code, architecture
|
|
55
|
+
model: inherit
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
# My Agent Title
|
|
59
|
+
|
|
60
|
+
你的详细系统提示词内容...
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### frontmatter 字段说明
|
|
64
|
+
|
|
65
|
+
| 字段 | 必填 | 说明 |
|
|
66
|
+
|------|------|------|
|
|
67
|
+
| `name` | 是 | 子代理名称,必须与文件名匹配 |
|
|
68
|
+
| `description` | 是 | 简短描述,用于主代理的任务匹配表 |
|
|
69
|
+
| `tools` | 否 | 子代理可使用的工具列表 |
|
|
70
|
+
| `skills` | 否 | 子代理加载的技能列表 |
|
|
71
|
+
| `model` | 否 | 模型配置,`inherit` 表示继承父代理配置 |
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## frontmatter 示例
|
|
76
|
+
|
|
77
|
+
### 后端开发专家
|
|
78
|
+
|
|
79
|
+
```yaml
|
|
80
|
+
---
|
|
81
|
+
name: backend-specialist
|
|
82
|
+
description: Expert backend architect for Node.js, Python, and modern serverless/edge systems. Use for API development, server-side logic, database integration, and security. Triggers on backend, server, api, endpoint, database, auth.
|
|
83
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
84
|
+
skills: clean-code, nodejs-best-practices, python-patterns, api-patterns, database-design
|
|
85
|
+
model: inherit
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
# Backend Development Architect
|
|
89
|
+
|
|
90
|
+
You are a Backend Development Architect who designs and builds server-side systems with security, scalability, and maintainability as top priorities.
|
|
91
|
+
...
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### 代码调试专家
|
|
95
|
+
|
|
96
|
+
```yaml
|
|
97
|
+
---
|
|
98
|
+
name: debugger
|
|
99
|
+
description: Expert in systematic debugging, root cause analysis, and crash investigation. Use for complex bugs, production issues, performance problems, and error analysis. Triggers on bug, error, crash, not working, broken, investigate, fix.
|
|
100
|
+
tools: Read, Grep, Glob, Bash
|
|
101
|
+
skills: clean-code, systematic-debugging
|
|
102
|
+
model: inherit
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
# Debugging Expert
|
|
106
|
+
|
|
107
|
+
You are an expert at finding and fixing bugs through systematic investigation.
|
|
108
|
+
...
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 正文内容格式
|
|
114
|
+
|
|
115
|
+
正文内容会被完整读取作为子代理的系统提示词。支持 Markdown 格式:
|
|
116
|
+
|
|
117
|
+
```markdown
|
|
118
|
+
# Agent Title
|
|
119
|
+
|
|
120
|
+
## Section 1
|
|
121
|
+
|
|
122
|
+
内容...
|
|
123
|
+
|
|
124
|
+
## Section 2
|
|
125
|
+
|
|
126
|
+
内容...
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## 使用子代理
|
|
132
|
+
|
|
133
|
+
### 自动匹配
|
|
134
|
+
|
|
135
|
+
主代理会根据任务描述自动选择最匹配的子代理处理。
|
|
136
|
+
|
|
137
|
+
### 手动调用
|
|
138
|
+
|
|
139
|
+
使用 `subagent_call` 工具手动调用子代理:
|
|
140
|
+
|
|
141
|
+
```javascript
|
|
142
|
+
{
|
|
143
|
+
"agentName": "backend-specialist",
|
|
144
|
+
"task": "帮我创建一个用户认证的 API"
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## 子代理系统提示词组合
|
|
151
|
+
|
|
152
|
+
当调用子代理时,系统提示词按以下顺序组合:
|
|
153
|
+
|
|
154
|
+
1. **frontmatter description** - 简短能力描述
|
|
155
|
+
2. **正文内容** - 完整的 markdown 内容
|
|
156
|
+
|
|
157
|
+
类似于 Skill 的工作方式,子代理的完整 md 文件内容会被读取并作为系统提示词。
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 重载子代理配置
|
|
162
|
+
|
|
163
|
+
修改 `.foliko/agents/` 下的文件后,使用 `subagent_reload` 工具重载:
|
|
164
|
+
|
|
165
|
+
```javascript
|
|
166
|
+
{
|
|
167
|
+
// 空参数
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 技能与子代理的区别
|
|
174
|
+
|
|
175
|
+
| 特性 | Skill | SubAgent |
|
|
176
|
+
|------|-------|----------|
|
|
177
|
+
| 系统提示词 | 指令和最佳实践 | 完整角色定义 |
|
|
178
|
+
| 工具 | 继承父代理工具 | 可自定义工具集 |
|
|
179
|
+
| 调用方式 | `loadSkill` 工具 | `subagent_call` 工具 |
|
|
180
|
+
| 适用场景 | 专业领域指导 | 独立处理复杂任务 |
|
|
181
|
+
| LLM | 共享父代理 | 可独立配置 |
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## 最佳实践
|
|
186
|
+
|
|
187
|
+
1. **清晰的 description**:帮助主代理正确匹配任务
|
|
188
|
+
2. **合适的工具集**:只授予必要的工具权限
|
|
189
|
+
3. **技能组合**:通过 `skills` 字段引用已有技能
|
|
190
|
+
4. **简洁的正文**:包含核心指令和决策逻辑
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## 示例:创建一个 API 开发专家
|
|
195
|
+
|
|
196
|
+
**文件**:`.foliko/agents/api-expert.md`
|
|
197
|
+
|
|
198
|
+
```yaml
|
|
199
|
+
---
|
|
200
|
+
name: api-expert
|
|
201
|
+
description: API design and development expert. Use for RESTful API, GraphQL, gRPC design and implementation. Triggers on api, endpoint, REST, GraphQL, webhook.
|
|
202
|
+
tools: Read, Grep, Glob, Bash, Write, Edit
|
|
203
|
+
skills: clean-code, api-patterns
|
|
204
|
+
model: inherit
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
# API Development Expert
|
|
208
|
+
|
|
209
|
+
You are an expert at designing and building APIs.
|
|
210
|
+
|
|
211
|
+
## Design Principles
|
|
212
|
+
|
|
213
|
+
1. **RESTful**: Follow REST conventions for resource naming
|
|
214
|
+
2. **Consistency**: Use consistent response formats
|
|
215
|
+
3. **Error Handling**: Always provide meaningful error messages
|
|
216
|
+
4. **Documentation**: Generate OpenAPI/Swagger specs
|
|
217
|
+
|
|
218
|
+
## Response Format
|
|
219
|
+
|
|
220
|
+
```json
|
|
221
|
+
{
|
|
222
|
+
"success": true,
|
|
223
|
+
"data": { ... },
|
|
224
|
+
"error": null
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## 总结
|
|
232
|
+
|
|
233
|
+
- 子代理文件位于 `.foliko/agents/*.md`
|
|
234
|
+
- 使用 YAML frontmatter 定义元数据
|
|
235
|
+
- 正文内容作为完整系统提示词
|
|
236
|
+
- 通过 `subagent_call` 调用
|
|
237
|
+
- 修改后用 `subagent_reload` 重载
|