agent-devkit 0.5.6 → 0.5.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-devkit",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Agent DevKit CLI and TUI runtime for specialist AI agents, capabilities and provider-aware workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -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/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 sessions under ~/.agent-devkit/data/context. Sessions record what happened; knowledge stores durable reusable project facts.",
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
- "Knowledge promotion is documented but not automated in this phase."
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 sessions as structured local context.",
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
- "templates": [
3
+ "packs": [
4
4
  {
5
5
  "id": "conversation.chat",
6
- "template": "Use the active character, session memory and optional project context to answer the user. Tool calls are disabled for this phase. User message: {{message}}",
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
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "moduleId": "memory",
3
+ "templates": [
4
+ {
5
+ "id": "memory.learn",
6
+ "template": "Store this as global memory only if it is useful beyond the current session. Use active for explicit user instructions and candidate for agent inference: {{content}}",
7
+ "variables": ["content"]
8
+ },
9
+ {
10
+ "id": "memory.search",
11
+ "template": "Search global memory for records relevant to: {{query}}",
12
+ "variables": ["query"]
13
+ },
14
+ {
15
+ "id": "memory.retrieve",
16
+ "template": "Retrieve ranked global memory for prompt context relevant to: {{query}}",
17
+ "variables": ["query"]
18
+ },
19
+ {
20
+ "id": "memory.update",
21
+ "template": "Update the selected memory record with the requested status or metadata change: {{memory}}",
22
+ "variables": ["memory"]
23
+ },
24
+ {
25
+ "id": "memory.forget",
26
+ "template": "Forget this memory record by marking it forgotten and preserving the audit trail: {{memoryId}}",
27
+ "variables": ["memoryId"]
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "moduleId": "memory",
3
+ "purpose": "Manage durable global memory that the agent can reuse independently of sessions and projects.",
4
+ "whenToUse": [
5
+ "The user explicitly asks the agent to remember something.",
6
+ "The agent has an inferred learning candidate that should be reviewed later.",
7
+ "The user wants to approve or reject a knowledge candidate extracted from context.",
8
+ "The agent needs relevant durable memory before answering or planning.",
9
+ "The user asks what the agent remembers.",
10
+ "The user asks to change, reject or forget a stored memory."
11
+ ],
12
+ "whenNotToUse": [
13
+ "The user only wants to inspect raw runtime events.",
14
+ "The information is a secret or credential.",
15
+ "The information is only relevant inside the current chat session.",
16
+ "The user asks for project-specific knowledge promotion."
17
+ ]
18
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "moduleId": "runtime",
3
+ "summary": "Runtime stores persisted agentic runs, goals, events and plans under ~/.agent-devkit/data/runtime.",
4
+ "facts": [
5
+ "Each agent chat or task run should create a run.json file.",
6
+ "Runtime events are append-only JSON Lines entries in events.jsonl.",
7
+ "Runtime runs audit what the agent did; they are separate from chat session memory.",
8
+ "Runtime goals group related runs but do not imply autonomous background execution yet."
9
+ ]
10
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "moduleId": "runtime",
3
+ "mode": "agentic-audit",
4
+ "allowedActions": [
5
+ "List and inspect persisted runtime runs.",
6
+ "List and inspect runtime events.",
7
+ "Create and update explicit runtime goals.",
8
+ "Cancel a run when explicitly requested."
9
+ ],
10
+ "forbiddenActions": [
11
+ "Treat a runtime run as durable user knowledge.",
12
+ "Resume a run by re-executing tools without explicit user command.",
13
+ "Expose redacted secrets from runtime event payloads."
14
+ ],
15
+ "approvalRequired": true
16
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "moduleId": "runtime",
3
+ "templates": [
4
+ {
5
+ "id": "runtime.runs",
6
+ "template": "Explain this Agent DevKit runtime run and highlight tool calls, observations, errors and approval requirements: {{run}}",
7
+ "variables": ["run"]
8
+ },
9
+ {
10
+ "id": "runtime.goals",
11
+ "template": "Explain this Agent DevKit runtime goal and its related runs: {{goal}}",
12
+ "variables": ["goal"]
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "moduleId": "runtime",
3
+ "purpose": "Inspect and control persisted Agent DevKit agentic executions and goals.",
4
+ "whenToUse": [
5
+ "The user wants to know what the agent did.",
6
+ "The user wants to inspect tool calls, observations or failures from a run.",
7
+ "The user wants to create, complete or cancel an explicit agentic goal."
8
+ ],
9
+ "whenNotToUse": [
10
+ "The user wants to search conversation messages.",
11
+ "The user wants durable learned memory or project knowledge.",
12
+ "The user wants to execute a capability directly."
13
+ ]
14
+ }