agent-devkit 0.5.6 → 0.6.0
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/README.md +27 -0
- package/dist/main.js +10184 -3646
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/i18n/en-US.json +16 -0
- package/src/assets/i18n/fr-FR.json +16 -0
- package/src/assets/i18n/ja-JP.json +16 -0
- package/src/assets/i18n/pt-BR.json +16 -0
- package/src/assets/i18n/zh-CN.json +16 -0
- package/src/assets/prompts/core/chat.json +63 -0
- package/src/assets/prompts/core/domain-decision.json +33 -0
- package/src/assets/prompts/core/final-summary.json +33 -0
- package/src/assets/prompts/core/guardrails.json +27 -0
- package/src/assets/prompts/core/reflection.json +33 -0
- package/src/assets/prompts/core/task-plan.json +33 -0
- package/src/assets/prompts/core/tool-decision.json +38 -0
- package/src/assets/prompts/core/tool-input.json +33 -0
- package/src/modules/context/surface/knowledge.json +3 -2
- package/src/modules/context/surface/loop.json +3 -0
- package/src/modules/context/surface/skill.json +3 -2
- package/src/modules/conversation/surface/prompt.json +2 -3
- package/src/modules/integrations/surface/knowledge.json +9 -0
- package/src/modules/integrations/surface/loop.json +15 -0
- package/src/modules/integrations/surface/prompt.json +10 -0
- package/src/modules/integrations/surface/skill.json +13 -0
- package/src/modules/memory/surface/knowledge.json +11 -0
- package/src/modules/memory/surface/loop.json +19 -0
- package/src/modules/memory/surface/prompt.json +30 -0
- package/src/modules/memory/surface/skill.json +18 -0
- package/src/modules/runtime/surface/knowledge.json +10 -0
- package/src/modules/runtime/surface/loop.json +16 -0
- package/src/modules/runtime/surface/prompt.json +15 -0
- package/src/modules/runtime/surface/skill.json +14 -0
package/package.json
CHANGED
|
@@ -242,6 +242,20 @@
|
|
|
242
242
|
"tui.foundation": "v0.3.5 technical foundation",
|
|
243
243
|
"tui.prompt": "Prompt: {{prompt}}",
|
|
244
244
|
"tui.helpHint": "Run agent --help for CLI options.",
|
|
245
|
+
"tui.error": "Error: {{error}}",
|
|
246
|
+
"tui.newSession": "new session",
|
|
247
|
+
"tui.session": "session {{sessionId}}",
|
|
248
|
+
"tui.sessionResumed": "Session resumed: {{sessionId}}",
|
|
249
|
+
"tui.sessionsListFailed": "Could not list sessions.",
|
|
250
|
+
"tui.sessionsEmpty": "No active sessions. Send a message to create one.",
|
|
251
|
+
"tui.approvalRequired": "Tool {{tool}} requires approval. Approve? (y/n)",
|
|
252
|
+
"tui.approvalPlaceholder": "approve? (y/n)",
|
|
253
|
+
"tui.approvalAccepted": "Approved: {{tool}}. Continuing...",
|
|
254
|
+
"tui.approvalDenied": "Approval denied. Task stopped.",
|
|
255
|
+
"tui.thinking": "thinking...",
|
|
256
|
+
"tui.kbd.send": "Enter send",
|
|
257
|
+
"tui.kbd.task": "/task <task>",
|
|
258
|
+
"tui.kbd.exit": "ctrl+c exit",
|
|
245
259
|
"cli.alias.description": "manage a local command alias for the Agent DevKit CLI",
|
|
246
260
|
"cli.alias.set.description": "create or update the local CLI alias",
|
|
247
261
|
"cli.alias.remove.description": "remove the local CLI alias",
|
|
@@ -268,6 +282,8 @@
|
|
|
268
282
|
"cli.models.use.option.chat": "set the default model for the chat role",
|
|
269
283
|
"cli.models.argument.id": "catalog model id",
|
|
270
284
|
"cli.models.option.json": "print the result as JSON",
|
|
285
|
+
"cli.models.providers.description": "List brain providers and their availability.",
|
|
286
|
+
"cli.models.providers.option.json": "print providers as JSON",
|
|
271
287
|
"cli.firstRun.hint": "No local model installed. Run: agent models install {{id}}",
|
|
272
288
|
"cli.firstRun.prompt": "No local model installed. Install the recommended model {{id}} now? (y/N)",
|
|
273
289
|
"cli.firstRun.installed": "Model {{id}} installed and set as default.",
|
|
@@ -242,6 +242,20 @@
|
|
|
242
242
|
"tui.foundation": "v0.3.5 base technique",
|
|
243
243
|
"tui.prompt": "Prompt: {{prompt}}",
|
|
244
244
|
"tui.helpHint": "Executez agent --help pour les options CLI.",
|
|
245
|
+
"tui.error": "Erreur: {{error}}",
|
|
246
|
+
"tui.newSession": "nouvelle session",
|
|
247
|
+
"tui.session": "session {{sessionId}}",
|
|
248
|
+
"tui.sessionResumed": "Session reprise: {{sessionId}}",
|
|
249
|
+
"tui.sessionsListFailed": "Impossible de lister les sessions.",
|
|
250
|
+
"tui.sessionsEmpty": "Aucune session active. Envoyez un message pour en creer une.",
|
|
251
|
+
"tui.approvalRequired": "L'outil {{tool}} exige une approbation. Approuver ? (o/n)",
|
|
252
|
+
"tui.approvalPlaceholder": "approuver ? (o/n)",
|
|
253
|
+
"tui.approvalAccepted": "Approuve: {{tool}}. Suite...",
|
|
254
|
+
"tui.approvalDenied": "Approbation refusee. Tache arretee.",
|
|
255
|
+
"tui.thinking": "reflexion...",
|
|
256
|
+
"tui.kbd.send": "Entree envoyer",
|
|
257
|
+
"tui.kbd.task": "/task <tache>",
|
|
258
|
+
"tui.kbd.exit": "ctrl+c quitter",
|
|
245
259
|
"cli.alias.description": "gere un alias local pour le CLI Agent DevKit",
|
|
246
260
|
"cli.alias.set.description": "cree ou met a jour l'alias CLI local",
|
|
247
261
|
"cli.alias.remove.description": "supprime l'alias CLI local",
|
|
@@ -268,6 +282,8 @@
|
|
|
268
282
|
"cli.models.use.option.chat": "definit le modele par defaut pour le role de chat",
|
|
269
283
|
"cli.models.argument.id": "id du modele du catalogue",
|
|
270
284
|
"cli.models.option.json": "imprime le resultat en JSON",
|
|
285
|
+
"cli.models.providers.description": "Liste les providers de cerveau et leur disponibilité.",
|
|
286
|
+
"cli.models.providers.option.json": "affiche les providers en JSON",
|
|
271
287
|
"cli.firstRun.hint": "Aucun modele local installe. Executez: agent models install {{id}}",
|
|
272
288
|
"cli.firstRun.prompt": "Aucun modele local installe. Installer le modele recommande {{id}} maintenant ? (y/N)",
|
|
273
289
|
"cli.firstRun.installed": "Modele {{id}} installe et defini par defaut.",
|
|
@@ -242,6 +242,20 @@
|
|
|
242
242
|
"tui.foundation": "v0.3.5 技術基盤",
|
|
243
243
|
"tui.prompt": "プロンプト: {{prompt}}",
|
|
244
244
|
"tui.helpHint": "CLI オプションは agent --help を実行してください。",
|
|
245
|
+
"tui.error": "エラー: {{error}}",
|
|
246
|
+
"tui.newSession": "新しいセッション",
|
|
247
|
+
"tui.session": "セッション {{sessionId}}",
|
|
248
|
+
"tui.sessionResumed": "セッションを再開しました: {{sessionId}}",
|
|
249
|
+
"tui.sessionsListFailed": "セッションを一覧できませんでした。",
|
|
250
|
+
"tui.sessionsEmpty": "アクティブなセッションはありません。メッセージを送ると作成されます。",
|
|
251
|
+
"tui.approvalRequired": "ツール {{tool}} には承認が必要です。承認しますか? (y/n)",
|
|
252
|
+
"tui.approvalPlaceholder": "承認しますか? (y/n)",
|
|
253
|
+
"tui.approvalAccepted": "承認しました: {{tool}}。続行します...",
|
|
254
|
+
"tui.approvalDenied": "承認が拒否されました。タスクを停止しました。",
|
|
255
|
+
"tui.thinking": "思考中...",
|
|
256
|
+
"tui.kbd.send": "Enter 送信",
|
|
257
|
+
"tui.kbd.task": "/task <タスク>",
|
|
258
|
+
"tui.kbd.exit": "ctrl+c 終了",
|
|
245
259
|
"cli.alias.description": "Agent DevKit CLI のローカルコマンド別名を管理します",
|
|
246
260
|
"cli.alias.set.description": "ローカル CLI 別名を作成または更新します",
|
|
247
261
|
"cli.alias.remove.description": "ローカル CLI 別名を削除します",
|
|
@@ -268,6 +282,8 @@
|
|
|
268
282
|
"cli.models.use.option.chat": "チャット役割のデフォルトモデルを設定します",
|
|
269
283
|
"cli.models.argument.id": "カタログモデル id",
|
|
270
284
|
"cli.models.option.json": "結果を JSON で出力します",
|
|
285
|
+
"cli.models.providers.description": "ブレインプロバイダーと利用可否を一覧表示します。",
|
|
286
|
+
"cli.models.providers.option.json": "プロバイダーをJSONで出力",
|
|
271
287
|
"cli.firstRun.hint": "ローカルモデルが未インストールです。実行: agent models install {{id}}",
|
|
272
288
|
"cli.firstRun.prompt": "ローカルモデルが未インストールです。推奨モデル {{id}} を今インストールしますか?(y/N)",
|
|
273
289
|
"cli.firstRun.installed": "モデル {{id}} をインストールし、デフォルトに設定しました。",
|
|
@@ -242,6 +242,20 @@
|
|
|
242
242
|
"tui.foundation": "v0.3.5 base tecnica",
|
|
243
243
|
"tui.prompt": "Prompt: {{prompt}}",
|
|
244
244
|
"tui.helpHint": "Execute agent --help para opcoes de CLI.",
|
|
245
|
+
"tui.error": "Erro: {{error}}",
|
|
246
|
+
"tui.newSession": "nova sessao",
|
|
247
|
+
"tui.session": "sessao {{sessionId}}",
|
|
248
|
+
"tui.sessionResumed": "Sessao retomada: {{sessionId}}",
|
|
249
|
+
"tui.sessionsListFailed": "Nao foi possivel listar as sessoes.",
|
|
250
|
+
"tui.sessionsEmpty": "Nenhuma sessao ativa. Envie uma mensagem para criar uma.",
|
|
251
|
+
"tui.approvalRequired": "A ferramenta {{tool}} precisa de aprovacao. Aprovar? (s/n)",
|
|
252
|
+
"tui.approvalPlaceholder": "aprovar? (s/n)",
|
|
253
|
+
"tui.approvalAccepted": "Aprovado: {{tool}}. Continuando...",
|
|
254
|
+
"tui.approvalDenied": "Aprovacao negada. Tarefa interrompida.",
|
|
255
|
+
"tui.thinking": "pensando...",
|
|
256
|
+
"tui.kbd.send": "Enter enviar",
|
|
257
|
+
"tui.kbd.task": "/task <tarefa>",
|
|
258
|
+
"tui.kbd.exit": "ctrl+c sair",
|
|
245
259
|
"cli.alias.description": "gerencia um alias local para o CLI do Agent DevKit",
|
|
246
260
|
"cli.alias.set.description": "cria ou atualiza o alias local do CLI",
|
|
247
261
|
"cli.alias.remove.description": "remove o alias local do CLI",
|
|
@@ -268,6 +282,8 @@
|
|
|
268
282
|
"cli.models.use.option.chat": "define o modelo padrao do papel de chat",
|
|
269
283
|
"cli.models.argument.id": "id do modelo do catalogo",
|
|
270
284
|
"cli.models.option.json": "imprime o resultado como JSON",
|
|
285
|
+
"cli.models.providers.description": "Lista os providers de cérebro e a disponibilidade de cada um.",
|
|
286
|
+
"cli.models.providers.option.json": "imprime providers em JSON",
|
|
271
287
|
"cli.firstRun.hint": "Nenhum modelo local instalado. Rode: agent models install {{id}}",
|
|
272
288
|
"cli.firstRun.prompt": "Nenhum modelo local instalado. Deseja instalar o modelo recomendado {{id}} agora? (s/N)",
|
|
273
289
|
"cli.firstRun.installed": "Modelo {{id}} instalado e definido como padrao.",
|
|
@@ -242,6 +242,20 @@
|
|
|
242
242
|
"tui.foundation": "v0.3.5 技术基础",
|
|
243
243
|
"tui.prompt": "提示: {{prompt}}",
|
|
244
244
|
"tui.helpHint": "运行 agent --help 查看 CLI 选项。",
|
|
245
|
+
"tui.error": "错误: {{error}}",
|
|
246
|
+
"tui.newSession": "新会话",
|
|
247
|
+
"tui.session": "会话 {{sessionId}}",
|
|
248
|
+
"tui.sessionResumed": "已恢复会话: {{sessionId}}",
|
|
249
|
+
"tui.sessionsListFailed": "无法列出会话。",
|
|
250
|
+
"tui.sessionsEmpty": "没有活动会话。发送消息以创建一个。",
|
|
251
|
+
"tui.approvalRequired": "工具 {{tool}} 需要批准。批准? (y/n)",
|
|
252
|
+
"tui.approvalPlaceholder": "批准? (y/n)",
|
|
253
|
+
"tui.approvalAccepted": "已批准: {{tool}}。继续...",
|
|
254
|
+
"tui.approvalDenied": "批准被拒绝。任务已停止。",
|
|
255
|
+
"tui.thinking": "思考中...",
|
|
256
|
+
"tui.kbd.send": "Enter 发送",
|
|
257
|
+
"tui.kbd.task": "/task <任务>",
|
|
258
|
+
"tui.kbd.exit": "ctrl+c 退出",
|
|
245
259
|
"cli.alias.description": "管理 Agent DevKit CLI 的本地命令别名",
|
|
246
260
|
"cli.alias.set.description": "创建或更新本地 CLI 别名",
|
|
247
261
|
"cli.alias.remove.description": "移除本地 CLI 别名",
|
|
@@ -268,6 +282,8 @@
|
|
|
268
282
|
"cli.models.use.option.chat": "设置聊天角色的默认模型",
|
|
269
283
|
"cli.models.argument.id": "目录模型 id",
|
|
270
284
|
"cli.models.option.json": "以 JSON 输出结果",
|
|
285
|
+
"cli.models.providers.description": "列出大脑提供方及其可用状态。",
|
|
286
|
+
"cli.models.providers.option.json": "以JSON输出提供方",
|
|
271
287
|
"cli.firstRun.hint": "未安装本地模型。运行: agent models install {{id}}",
|
|
272
288
|
"cli.firstRun.prompt": "未安装本地模型。现在安装推荐模型 {{id}} 吗?(y/N)",
|
|
273
289
|
"cli.firstRun.installed": "模型 {{id}} 已安装并设为默认。",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "agent-devkit.prompt-pack/v1",
|
|
3
|
+
"id": "core/chat",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Stateful chat prompt for the configured Agent DevKit personality.",
|
|
6
|
+
"locale": "pt-BR",
|
|
7
|
+
"output": {
|
|
8
|
+
"format": "text",
|
|
9
|
+
"language": "pt-BR"
|
|
10
|
+
},
|
|
11
|
+
"policies": {
|
|
12
|
+
"allowToolCalls": false,
|
|
13
|
+
"approvalRequired": false,
|
|
14
|
+
"maxToolCalls": 0
|
|
15
|
+
},
|
|
16
|
+
"knowledge": [
|
|
17
|
+
{
|
|
18
|
+
"id": "agent-devkit.identity",
|
|
19
|
+
"source": "core/chat",
|
|
20
|
+
"content": "Agent DevKit is a local AI agent toolkit exposed through the `agent` CLI, a TUI and MCP. It helps users operate this project through capabilities, local state, sessions, projects, preferences, personalization, logs, secrets, dependencies and local models."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "agent-devkit.self-description-rule",
|
|
24
|
+
"source": "core/chat",
|
|
25
|
+
"content": "When the user asks personal questions about you, your personality or what you can do, answer as the configured character using your behavior, tone, detail level and traits. Do not answer as a generic human and do not list unrelated human activities."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "agent-devkit.project-scope-rule",
|
|
29
|
+
"source": "core/chat",
|
|
30
|
+
"content": "Only describe Agent DevKit internals, modules, tools, MCP, CLI commands or project capabilities when the user explicitly asks about Agent DevKit, the project, tools, commands, MCP or capabilities."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "agent-devkit.chat-mode-limits",
|
|
34
|
+
"source": "core/chat",
|
|
35
|
+
"content": "This conversation mode can answer, keep session memory and use project context. Direct tool execution is disabled in this chat prompt."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "agent-devkit.capability-map",
|
|
39
|
+
"source": "core/chat",
|
|
40
|
+
"content": "Current capability areas include project doctor/init/reset, package update, preferences, themes, aliases, personalization characters, logs, encrypted secrets, dependency inspection/planning, models, projects, sessions, conversation, runtime runs, goals and memory."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "agent-devkit.memory-rule",
|
|
44
|
+
"source": "core/chat",
|
|
45
|
+
"content": "Retrieved memory is context for this answer, not absolute truth. If memory conflicts with the current user request, prioritize the current request and be explicit when uncertain."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "agent-devkit.context-rule",
|
|
49
|
+
"source": "core/chat",
|
|
50
|
+
"content": "Use retrieved session, project and memory context as evidence for continuity. Do not invent memories, project facts or past actions that are not present in the prompt."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "agent-devkit.secret-rule",
|
|
54
|
+
"source": "core/chat",
|
|
55
|
+
"content": "Never ask the user to paste secrets into memory. Do not store credentials as memory or session knowledge."
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"task": {
|
|
59
|
+
"intent": "stateful-chat",
|
|
60
|
+
"userMessage": "{{userMessage}}",
|
|
61
|
+
"variables": ["userMessage"]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "agent-devkit.prompt-pack/v1",
|
|
3
|
+
"id": "core/domain-decision",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Hierarchical routing stage 1: pick the capability domains relevant to the task before choosing a concrete tool.",
|
|
6
|
+
"locale": "pt-BR",
|
|
7
|
+
"output": {
|
|
8
|
+
"format": "json",
|
|
9
|
+
"language": "pt-BR"
|
|
10
|
+
},
|
|
11
|
+
"policies": {
|
|
12
|
+
"allowToolCalls": false,
|
|
13
|
+
"approvalRequired": false,
|
|
14
|
+
"maxToolCalls": 0
|
|
15
|
+
},
|
|
16
|
+
"knowledge": [
|
|
17
|
+
{
|
|
18
|
+
"id": "agent.runtime.identity",
|
|
19
|
+
"source": "core/domain-decision",
|
|
20
|
+
"content": "You are the Agent DevKit orchestration runtime. First narrow the task to the capability domains that matter; concrete tools are chosen in the next step."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "agent.runtime.domain-rule",
|
|
24
|
+
"source": "core/domain-decision",
|
|
25
|
+
"content": "Pick at most two domains. Only pick domains whose description matches the task. If no domain helps, answer final directly."
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"task": {
|
|
29
|
+
"intent": "domain-routing",
|
|
30
|
+
"userMessage": "Tarefa do usuario: {{task}}\n\nDominios de capabilities disponiveis:\n{{domains}}\n\nEscolha ate DOIS dominios relevantes para a tarefa, ou responda ao usuario se nenhuma ferramenta for necessaria.\nResponda SOMENTE com JSON. Para escolher dominios: {\"action\":\"domains\",\"domains\":[\"<id>\"]}. Para responder direto: {\"action\":\"final\",\"reply\":\"<texto>\"}.",
|
|
31
|
+
"variables": ["task", "domains"]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "agent-devkit.prompt-pack/v1",
|
|
3
|
+
"id": "core/final-summary",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Summarize completed agent steps into a final user response.",
|
|
6
|
+
"locale": "pt-BR",
|
|
7
|
+
"output": {
|
|
8
|
+
"format": "json",
|
|
9
|
+
"language": "pt-BR"
|
|
10
|
+
},
|
|
11
|
+
"policies": {
|
|
12
|
+
"allowToolCalls": false,
|
|
13
|
+
"approvalRequired": false,
|
|
14
|
+
"maxToolCalls": 0
|
|
15
|
+
},
|
|
16
|
+
"knowledge": [
|
|
17
|
+
{
|
|
18
|
+
"id": "agent.runtime.final-summary-rule",
|
|
19
|
+
"source": "core/final-summary",
|
|
20
|
+
"content": "Summarize what was done, mention important failures or approvals, and keep the response concise."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "agent.runtime.context-rule",
|
|
24
|
+
"source": "core/final-summary",
|
|
25
|
+
"content": "When referencing memory, sessions or project knowledge, only mention facts present in retrieved context or in the executed steps."
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"task": {
|
|
29
|
+
"intent": "final-summary",
|
|
30
|
+
"userMessage": "Tarefa original: {{task}}\nPassos executados:\n{{steps}}\n\nResponda SOMENTE com JSON: {\"reply\":\"resposta final ao usuario\"}.",
|
|
31
|
+
"variables": ["task", "steps"]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "agent-devkit.guardrail-set/v1",
|
|
3
|
+
"id": "core/guardrails",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"rules": [
|
|
6
|
+
{
|
|
7
|
+
"id": "persona",
|
|
8
|
+
"severity": "guide",
|
|
9
|
+
"rule": "Answer as the configured character and keep the user's selected persona visible in behavior, tone and detail level."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "scope",
|
|
13
|
+
"severity": "guide",
|
|
14
|
+
"rule": "Describe Agent DevKit internals only when the user explicitly asks about Agent DevKit, tools, commands, MCP, modules or capabilities."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "secrets",
|
|
18
|
+
"severity": "block",
|
|
19
|
+
"rule": "Never store credentials or secret values as memory, prompt context or logs."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "memory",
|
|
23
|
+
"severity": "warn",
|
|
24
|
+
"rule": "Treat retrieved memory as contextual evidence. Do not promote inferred knowledge without explicit review or approval."
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "agent-devkit.prompt-pack/v1",
|
|
3
|
+
"id": "core/reflection",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Reflect after a tool observation and decide the next loop action.",
|
|
6
|
+
"locale": "pt-BR",
|
|
7
|
+
"output": {
|
|
8
|
+
"format": "json",
|
|
9
|
+
"language": "pt-BR"
|
|
10
|
+
},
|
|
11
|
+
"policies": {
|
|
12
|
+
"allowToolCalls": true,
|
|
13
|
+
"approvalRequired": false,
|
|
14
|
+
"maxToolCalls": 1
|
|
15
|
+
},
|
|
16
|
+
"knowledge": [
|
|
17
|
+
{
|
|
18
|
+
"id": "agent.runtime.reflection-rule",
|
|
19
|
+
"source": "core/reflection",
|
|
20
|
+
"content": "After each observation, decide whether to continue, retry, repair, final, or stop. Never retry approval_required; ask for approval instead."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "agent.runtime.context-rule",
|
|
24
|
+
"source": "core/reflection",
|
|
25
|
+
"content": "Use retrieved context to judge whether the observation satisfies the user's real goal. Do not treat old memory as more important than the current task."
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"task": {
|
|
29
|
+
"intent": "tool-reflection",
|
|
30
|
+
"userMessage": "Tarefa original: {{task}}\nPasso: {{stepObjective}}\nFerramenta executada: {{tool}}\nObservacao: {{observation}}\nRetries restantes: {{remainingRetries}}\n\nResponda SOMENTE com JSON: {\"action\":\"continue|retry|repair|final|stop\",\"reason\":\"...\",\"reply\":\"texto final opcional\",\"nextTool\":\"tool opcional\",\"revisedTask\":\"tarefa revisada opcional\"}.",
|
|
31
|
+
"variables": ["task", "stepObjective", "tool", "observation", "remainingRetries"]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "agent-devkit.prompt-pack/v1",
|
|
3
|
+
"id": "core/task-plan",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Create a compact structured execution plan for an agentic task.",
|
|
6
|
+
"locale": "pt-BR",
|
|
7
|
+
"output": {
|
|
8
|
+
"format": "json",
|
|
9
|
+
"language": "pt-BR"
|
|
10
|
+
},
|
|
11
|
+
"policies": {
|
|
12
|
+
"allowToolCalls": true,
|
|
13
|
+
"approvalRequired": false,
|
|
14
|
+
"maxToolCalls": 1
|
|
15
|
+
},
|
|
16
|
+
"knowledge": [
|
|
17
|
+
{
|
|
18
|
+
"id": "agent.runtime.plan-rule",
|
|
19
|
+
"source": "core/task-plan",
|
|
20
|
+
"content": "Create a small plan before executing tools. Prefer one to three steps. Use only available tool ids when a tool is clearly needed."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "agent.runtime.context-rule",
|
|
24
|
+
"source": "core/task-plan",
|
|
25
|
+
"content": "Use retrieved project, session and memory context to choose relevant steps. Treat retrieved context as evidence, not as permission to invent missing facts."
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"task": {
|
|
29
|
+
"intent": "task-planning",
|
|
30
|
+
"userMessage": "Tarefa do usuario: {{task}}\n\nFerramentas disponiveis: {{tools}}\nLimite de passos: {{maxSteps}}\n\nResponda SOMENTE com JSON no formato {\"summary\":\"...\",\"steps\":[{\"id\":\"step_001\",\"objective\":\"...\",\"reason\":\"...\",\"tool\":\"optional.tool.id\",\"dependsOn\":[],\"maxAttempts\":1}]}.",
|
|
31
|
+
"variables": ["task", "tools", "maxSteps"]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "agent-devkit.prompt-pack/v1",
|
|
3
|
+
"id": "core/tool-decision",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Agent loop routing prompt that chooses one tool or a final answer.",
|
|
6
|
+
"locale": "pt-BR",
|
|
7
|
+
"output": {
|
|
8
|
+
"format": "json",
|
|
9
|
+
"language": "pt-BR"
|
|
10
|
+
},
|
|
11
|
+
"policies": {
|
|
12
|
+
"allowToolCalls": true,
|
|
13
|
+
"approvalRequired": false,
|
|
14
|
+
"maxToolCalls": 1
|
|
15
|
+
},
|
|
16
|
+
"knowledge": [
|
|
17
|
+
{
|
|
18
|
+
"id": "agent.runtime.identity",
|
|
19
|
+
"source": "core/tool-decision",
|
|
20
|
+
"content": "You are the Agent DevKit orchestration runtime. Choose tools only when they directly help complete the user's task."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "agent.runtime.single-action",
|
|
24
|
+
"source": "core/tool-decision",
|
|
25
|
+
"content": "Choose exactly one next action. Do not invent tools. If no listed tool helps, answer final."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "agent.runtime.context-rule",
|
|
29
|
+
"source": "core/tool-decision",
|
|
30
|
+
"content": "Use retrieved context to decide whether a tool is necessary. If current user intent conflicts with retrieved memory, prioritize the current request."
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"task": {
|
|
34
|
+
"intent": "tool-routing",
|
|
35
|
+
"userMessage": "Tarefa do usuario: {{task}}\n\nEscolha UMA ferramenta da lista disponivel para avancar na tarefa, ou responda ao usuario se ja puder concluir.\nResponda SOMENTE com JSON. Para usar uma ferramenta: {\"action\":\"tool\",\"tool\":\"<id>\"}. Para responder: {\"action\":\"final\",\"reply\":\"<texto>\"}. Uma acao por vez. Os argumentos da ferramenta sao definidos no passo seguinte.",
|
|
36
|
+
"variables": ["task"]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "agent-devkit.prompt-pack/v1",
|
|
3
|
+
"id": "core/tool-input",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Agent loop prompt that produces structured input for a selected tool.",
|
|
6
|
+
"locale": "pt-BR",
|
|
7
|
+
"output": {
|
|
8
|
+
"format": "json",
|
|
9
|
+
"language": "pt-BR"
|
|
10
|
+
},
|
|
11
|
+
"policies": {
|
|
12
|
+
"allowToolCalls": true,
|
|
13
|
+
"approvalRequired": false,
|
|
14
|
+
"maxToolCalls": 1
|
|
15
|
+
},
|
|
16
|
+
"knowledge": [
|
|
17
|
+
{
|
|
18
|
+
"id": "agent.runtime.identity",
|
|
19
|
+
"source": "core/tool-input",
|
|
20
|
+
"content": "You are the Agent DevKit orchestration runtime. Generate only valid input for the selected capability."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "agent.runtime.context-rule",
|
|
24
|
+
"source": "core/tool-input",
|
|
25
|
+
"content": "Use retrieved context only to fill fields that are directly supported by the selected tool schema. Do not leak secrets or add unsupported fields."
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"task": {
|
|
29
|
+
"intent": "tool-input",
|
|
30
|
+
"userMessage": "Tarefa do usuario: {{task}}\n\nGere APENAS o objeto JSON de entrada para a ferramenta {{toolId}}.\nFormato esperado: {{schemaSummary}}\nResponda somente com o JSON do input, sem texto extra.",
|
|
31
|
+
"variables": ["task", "toolId", "schemaSummary"]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"moduleId": "context",
|
|
3
|
-
"summary": "Context stores projects and
|
|
3
|
+
"summary": "Context stores projects, sessions, session summaries and reviewed knowledge candidates under ~/.agent-devkit/data/context.",
|
|
4
4
|
"facts": [
|
|
5
5
|
"Projects live under data/context/projects/<project-id>.",
|
|
6
6
|
"Standalone sessions live under data/context/sessions/<session-id>.",
|
|
7
7
|
"Project sessions live under data/context/projects/<project-id>/sessions/<session-id>.",
|
|
8
8
|
"messages.jsonl is append-only.",
|
|
9
|
-
"
|
|
9
|
+
"Session summaries are deterministic extraction artifacts and do not automatically become memory.",
|
|
10
|
+
"Knowledge candidates can be manually promoted to project knowledge, global memory, or both."
|
|
10
11
|
]
|
|
11
12
|
}
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
"allowedActions": [
|
|
5
5
|
"Create and list projects.",
|
|
6
6
|
"Create, append, search and resume sessions.",
|
|
7
|
+
"Summarize sessions into reviewable knowledge candidates.",
|
|
8
|
+
"Promote reviewed candidates to project knowledge, global memory, or both.",
|
|
7
9
|
"Archive or soft delete context records when requested."
|
|
8
10
|
],
|
|
9
11
|
"forbiddenActions": [
|
|
10
12
|
"Invent durable knowledge without explicit source.",
|
|
13
|
+
"Promote candidates without user approval.",
|
|
11
14
|
"Hard delete context without approval.",
|
|
12
15
|
"Treat session search as semantic vector retrieval."
|
|
13
16
|
],
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"moduleId": "context",
|
|
3
|
-
"purpose": "Manage Agent DevKit projects and
|
|
3
|
+
"purpose": "Manage Agent DevKit projects, sessions, summaries and project knowledge promotion as structured local context.",
|
|
4
4
|
"whenToUse": [
|
|
5
5
|
"The user wants to persist or resume a conversation.",
|
|
6
6
|
"The user wants to organize sessions by project.",
|
|
7
|
-
"An external agent needs searchable context history."
|
|
7
|
+
"An external agent needs searchable context history.",
|
|
8
|
+
"The user wants to review or promote knowledge extracted from a session."
|
|
8
9
|
],
|
|
9
10
|
"whenNotToUse": [
|
|
10
11
|
"The user expects semantic vector memory.",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"moduleId": "conversation",
|
|
3
|
-
"
|
|
3
|
+
"packs": [
|
|
4
4
|
{
|
|
5
5
|
"id": "conversation.chat",
|
|
6
|
-
"
|
|
7
|
-
"variables": ["message"]
|
|
6
|
+
"packId": "core/chat"
|
|
8
7
|
}
|
|
9
8
|
]
|
|
10
9
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleId": "integrations",
|
|
3
|
+
"summary": "Integrations connect Agent DevKit to external tools and MCP servers. External tools are cached locally before the agent can use them.",
|
|
4
|
+
"facts": [
|
|
5
|
+
"External MCP tools are exposed to the agent with ids formatted as mcp.<serverId>.<toolName>.",
|
|
6
|
+
"The agent only sees external MCP tools after the server tools have been refreshed into the local cache.",
|
|
7
|
+
"External MCP write, destructive, or unknown-risk tools require explicit approval before execution."
|
|
8
|
+
]
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleId": "integrations",
|
|
3
|
+
"mode": "cache-before-use",
|
|
4
|
+
"allowedActions": [
|
|
5
|
+
"Register external MCP servers requested by the user.",
|
|
6
|
+
"Refresh and inspect external MCP tool catalogs.",
|
|
7
|
+
"Use cached external MCP tools when they match the user's task and approval policy allows execution."
|
|
8
|
+
],
|
|
9
|
+
"forbiddenActions": [
|
|
10
|
+
"Persist raw credentials in MCP server configuration.",
|
|
11
|
+
"Execute external MCP tools without applying approval policy.",
|
|
12
|
+
"Assume an external MCP tool exists before refreshing the server tool cache."
|
|
13
|
+
],
|
|
14
|
+
"approvalRequired": true
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleId": "integrations",
|
|
3
|
+
"templates": [
|
|
4
|
+
{
|
|
5
|
+
"id": "integrations.mcpServers",
|
|
6
|
+
"template": "Explain this external MCP integration result and identify whether tools were cached, disabled, or blocked by approval policy: {{result}}",
|
|
7
|
+
"variables": ["result"]
|
|
8
|
+
}
|
|
9
|
+
]
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleId": "integrations",
|
|
3
|
+
"purpose": "Manage external integrations that extend the local agent runtime, starting with MCP servers.",
|
|
4
|
+
"whenToUse": [
|
|
5
|
+
"The user wants to connect Agent DevKit to an external MCP server.",
|
|
6
|
+
"The agent needs to list or refresh external MCP tools available for orchestration.",
|
|
7
|
+
"The user asks whether a registered MCP integration is enabled or working."
|
|
8
|
+
],
|
|
9
|
+
"whenNotToUse": [
|
|
10
|
+
"The user wants to expose Agent DevKit itself as an MCP server; use the app MCP server commands instead.",
|
|
11
|
+
"The integration requires OAuth or secret environment handling that is not configured yet."
|
|
12
|
+
]
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleId": "memory",
|
|
3
|
+
"summary": "Memory stores global learned facts, preferences, patterns, decisions and episodes independently from chat sessions and projects.",
|
|
4
|
+
"facts": [
|
|
5
|
+
"Runtime runs are operational traces; memory records are consolidated knowledge for future retrieval.",
|
|
6
|
+
"Agent-inferred memory must start as a review candidate unless explicitly promoted.",
|
|
7
|
+
"Explicit user memory may be stored as active.",
|
|
8
|
+
"Knowledge candidates extracted from sessions can be listed, approved into memory, or rejected.",
|
|
9
|
+
"Forgetting memory marks the record as forgotten and preserves an audit trail."
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleId": "memory",
|
|
3
|
+
"mode": "global-memory-management",
|
|
4
|
+
"allowedActions": [
|
|
5
|
+
"Learn explicit user facts, preferences, patterns, decisions and episodes.",
|
|
6
|
+
"Store inferred learning as candidate memory.",
|
|
7
|
+
"Review extracted knowledge candidates before approval.",
|
|
8
|
+
"Search active and candidate memory records.",
|
|
9
|
+
"Update, reject or forget memory records when explicitly instructed.",
|
|
10
|
+
"Inspect memory audit events."
|
|
11
|
+
],
|
|
12
|
+
"forbiddenActions": [
|
|
13
|
+
"Treat raw runtime events as confirmed memory without review.",
|
|
14
|
+
"Store secrets or credentials as memory.",
|
|
15
|
+
"Physically delete memory records when forget is requested.",
|
|
16
|
+
"Promote inferred memory to active without explicit user confirmation."
|
|
17
|
+
],
|
|
18
|
+
"approvalRequired": true
|
|
19
|
+
}
|