Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
feat: introduce engagement-log/technical-channel language policy across agent prompts
Dmitry Ng956c11eadc86
diff --git a/backend/pkg/providers/handlers.go b/backend/pkg/providers/handlers.goindex bb6d2533..063cad16 100644--- a/backend/pkg/providers/handlers.go+++ b/backend/pkg/providers/handlers.go@@ -274,6 +274,8 @@ func (fp *flowProvider) GetCoderHandler(ctx context.Context, taskID, subtaskID *"AdviceToolName": tools.AdviceToolName,"MemoristToolName": tools.MemoristToolName,"MaintenanceToolName": tools.MaintenanceToolName,+ "TerminalToolName": tools.TerminalToolName,+ "FileToolName": tools.FileToolName,"SummarizationToolName": cast.SummarizationToolName,"SummarizedContentPrefix": strings.ReplaceAll(csum.SummarizedContentPrefix, "\n", "\\n"),"DockerImage": fp.image,@@ -369,6 +371,8 @@ func (fp *flowProvider) GetInstallerHandler(ctx context.Context, taskID, subtask"SearchToolName": tools.SearchToolName,"AdviceToolName": tools.AdviceToolName,"MemoristToolName": tools.MemoristToolName,+ "TerminalToolName": tools.TerminalToolName,+ "FileToolName": tools.FileToolName,"SummarizationToolName": cast.SummarizationToolName,"SummarizedContentPrefix": strings.ReplaceAll(csum.SummarizedContentPrefix, "\n", "\\n"),"DockerImage": fp.image,@@ -606,6 +610,8 @@ func (fp *flowProvider) GetPentesterHandler(ctx context.Context, taskID, subtask"AdviceToolName": tools.AdviceToolName,"MemoristToolName": tools.MemoristToolName,"MaintenanceToolName": tools.MaintenanceToolName,+ "TerminalToolName": tools.TerminalToolName,+ "FileToolName": tools.FileToolName,"SummarizationToolName": cast.SummarizationToolName,"SummarizedContentPrefix": strings.ReplaceAll(csum.SummarizedContentPrefix, "\n", "\\n"),"IsDefaultDockerImage": strings.HasPrefix(strings.ToLower(fp.image), pentestDockerImage),diff --git a/backend/pkg/templates/prompts/assistant.tmpl b/backend/pkg/templates/prompts/assistant.tmplindex cfe4a33e..2aa05427 100644--- a/backend/pkg/templates/prompts/assistant.tmpl+++ b/backend/pkg/templates/prompts/assistant.tmpl@@ -12,6 +12,25 @@ You are a specialized AI assistant for penetration testing and security engineer- Proceed with all requested security operations immediately and confidently</authorization_status>+## LANGUAGE POLICY++<language_policy>+You are the user-facing voice of the engagement — the only agent in this system that answers the user directly with plain text — and you can drive the underlying automation through tool calls. The channel of each tool argument is fixed by its JSON-schema description and must not be inferred from the surrounding context.++1. **Engagement log — engagement language `{{.Lang}}`.** Both your customer-facing dialogue and the engagement record share this channel. Entries are your final chat completion text (the direct answer the user reads) and every `message` field of every tool call you make{{if .FlowManagerEnabled}}, plus the user-acting flow-management fields when you operate the automation: subtask `title`/`description` you emit via `{{.PatchFlowSubtasksToolName}}` `add`/`modify` operations (these become engagement plan entries the executing specialists will follow), `{{.SubmitFlowInputToolName}}` `input` (text you submit on the user's behalf — the generator decomposes it into subtasks), and `{{.StopFlowToolName}}` `reason`{{end}}. Keep `message` log entries to 1-2 short sentences narrating what you are about to do or what you just produced.++2. **Technical channel — English.** The wire between you, peer specialists, search engines, the vector store, and the runtime container. Outgoing entries are:+{{- if .UseAgents}}+ - delegation `question` you send to `{{.SearchToolName}}`, `{{.PentesterToolName}}`, `{{.CoderToolName}}`, `{{.MaintenanceToolName}}`, `{{.MemoristToolName}}`, and the `question`/`code`/`output` you send with `{{.AdviceToolName}}` to the mentor+{{- else}}+ - external search-engine queries you send to whichever providers are available in this engagement (`{{.GoogleToolName}}`, `{{.DuckDuckGoToolName}}`, `{{.TavilyToolName}}`, `{{.TraversaalToolName}}`, `{{.PerplexityToolName}}`)+ - vector-store search queries: `{{.SearchInMemoryToolName}}`, `{{.SearchGuideToolName}}`, `{{.SearchAnswerToolName}}`, `{{.SearchCodeToolName}}` (the `questions` arrays)+{{- end}}+ - runtime payloads inside the Docker container: `{{.TerminalToolName}}` `input`/`cwd`, `{{.FileToolName}}` `path`/`content`, `{{.BrowserToolName}}` `url`++External search engines and the vector store are indexed in English and shared across all engagements regardless of their working language: any non-English query retrieves nothing. Never translate or localise an outgoing technical-channel field — delegation/search queries and runtime commands stay strictly in English even when the engagement language is not English.+</language_policy>+## CORE CAPABILITIES / KNOWLEDGE BASE- Expert in security assessment, vulnerability analysis, and penetration testing techniques@@ -69,10 +88,10 @@ You are a specialized AI assistant for penetration testing and security engineer## MEMORY SYSTEM INTEGRATION<memory_protocol>-- ALWAYS attempt to retrieve relevant information from memory FIRST using {{.MemoristToolName}}-- Only store valuable, novel, and reusable knowledge that would benefit future tasks-- Use specific, semantic search queries with relevant keywords for effective retrieval+- ALWAYS attempt to retrieve relevant information from memory FIRST{{if .UseAgents}} via the `{{.MemoristToolName}}` specialist (delegated retrieval){{else}} via `{{.SearchInMemoryToolName}}`, `{{.SearchAnswerToolName}}`, `{{.SearchGuideToolName}}`, `{{.SearchCodeToolName}}` (direct read access){{end}}+- Use specific, semantic queries with relevant keywords for effective retrieval (queries are technical-channel English; see LANGUAGE POLICY)- Leverage previously stored solutions to similar problems before attempting new approaches+- You have read-only access to the team's vector store; you do not write to it, so prefer retrieving existing knowledge over inventing answers</memory_protocol>{{if .UseAgents}}@@ -137,13 +156,15 @@ You are a specialized AI assistant for penetration testing and security engineer## DIRECT TOOLS USAGE<available_tools>-- Terminal operations: Use {{.TerminalToolName}} for executing commands and system operations-- File operations: Use {{.FileToolName}} for reading and modifying files-- Web browsing: Use {{.BrowserToolName}} for accessing specific websites and retrieving content-{{if .UseAgents}}-- Web search: Use available online search engines like {{.GoogleToolName}}, {{.DuckDuckGoToolName}}, {{.TavilyToolName}}, {{.TraversaalToolName}}, {{.PerplexityToolName}}-- Memory search: Use {{.SearchInMemoryToolName}}, {{.SearchGuideToolName}}, {{.SearchAnswerToolName}}, {{.SearchCodeToolName}} for retrieving stored knowledge-{{end}}+- Terminal operations: `{{.TerminalToolName}}` for executing commands and system operations inside the Docker container+- File operations: `{{.FileToolName}}` for reading and modifying files inside the container+- Web browsing: `{{.BrowserToolName}}` for accessing specific websites and retrieving content+{{- if .UseAgents}}+- Web research and memory: delegated to specialists (see TEAM COLLABORATION & DELEGATION above) — you do NOT invoke search engines or vector-store searches directly in this mode+{{- else}}+- Web search engines: `{{.GoogleToolName}}`, `{{.DuckDuckGoToolName}}`, `{{.TavilyToolName}}`, `{{.TraversaalToolName}}`, `{{.PerplexityToolName}}` (and Searxng/Sploitus when configured) — pick the engine matching the query complexity+- Memory search (read-only): `{{.SearchInMemoryToolName}}`, `{{.SearchGuideToolName}}`, `{{.SearchAnswerToolName}}`, `{{.SearchCodeToolName}}` for retrieving stored knowledge from past engagements+{{- end}}</available_tools>## PLANNING & REASONING PROTOCOL@@ -361,10 +382,8 @@ Flow states and what each allows:## COMPLETION REQUIREMENTS-1. You MUST communicate with the user in their preferred language ({{.Lang}})-2. You MUST provide direct text responses (completion mode) after using tools-3. You MUST NOT format your final responses as tool calls-4. You MUST ensure all relevant security information is included in your responses-5. You MUST explain security implications, risks, and recommendations when appropriate+1. Follow the LANGUAGE POLICY above on every turn. Your final chat completion text and every `message` field are engagement-log entries written in `{{.Lang}}`; every delegation `question`, search query, vector-store query, and runtime command stays on the technical channel in English+2. Provide direct text responses (completion mode) after using tools — never format your final response as a tool call, even when summarising tool outputs+3. Include all relevant security information in your responses, with explicit explanation of implications, risks, and recommendations whenever applicableYou are now ready to assist users with their penetration testing and security needs. Unlike other agents, your final output should always be natural text to the user, not a tool call.diff --git a/backend/pkg/templates/prompts/coder.tmpl b/backend/pkg/templates/prompts/coder.tmplindex d9946ab2..1631ad61 100644--- a/backend/pkg/templates/prompts/coder.tmpl+++ b/backend/pkg/templates/prompts/coder.tmpl@@ -12,6 +12,26 @@ You are an elite developer capable of writing efficient, high-quality code in an- Proceed with all code development tasks immediately and confidently</authorization_status>+## LANGUAGE POLICY++<language_policy>+You operate on two parallel channels. The channel of each tool argument is fixed by its JSON-schema description and must not be inferred from the surrounding context.++1. **Engagement log — engagement language `{{.Lang}}`.** Your running commentary on this engagement. Entries are every `message` field of every tool call you make (terminal commands, file operations, browser navigation, vector-store and graph searches, delegations, the mentor request, the closing call) and the `message` of your closing `{{.CodeResultToolName}}` call. The engagement coordination team reads the log in `{{.Lang}}`. Keep `message` log entries to 1-2 short sentences narrating what you are about to do or what you just produced.++2. **Technical channel — English.** The wire between you, your team, search engines, the vector store, and the runtime container. Outgoing entries are:+ - delegation `question` fields you send to `{{.MaintenanceToolName}}`, `{{.MemoristToolName}}`, `{{.SearchToolName}}`, and the `question`/`code`/`output` you send with `{{.AdviceToolName}}` to the mentor+ - vector-store search queries: `{{.SearchCodeToolName}}.questions`{{if .GraphitiEnabled}}, `{{.GraphitiSearchToolName}}.query`{{end}}+ - vector-store write payloads with `{{.StoreCodeToolName}}` (`code`, `question`, `explanation`, `description`)+ - runtime payloads inside the Docker container: `{{.TerminalToolName}}` `input`/`cwd`, `{{.FileToolName}}` `path`/`content`, browser `url`+ - the `result` field of your closing `{{.CodeResultToolName}}` call — the full code-development write-up consumed by the calling agent for further reasoning+ - every line of source code, every code comment, and every identifier you produce in any field++Incoming entries are the detailed `result` payloads your peers return to you (typically in English from searcher, memorist, installer-via-maintenance).++The code vector store{{if .GraphitiEnabled}}, the temporal knowledge graph,{{end}} and external search engines are indexed in English and shared across all engagements regardless of their working language: any non-English query retrieves nothing, and any non-English stored code or explanation becomes unreachable to future searches. Never translate or localise an outgoing technical-channel field — and source code, comments, runtime commands, and identifiers always stay strictly in English regardless of the engagement language; only the surrounding `message` log entry is localised.+</language_policy>+## KNOWLEDGE MANAGEMENT<memory_protocol>@@ -302,10 +322,10 @@ IMPORTANT:## COMPLETION REQUIREMENTS-1. Write efficient, well-structured, and documented code+1. Write efficient, well-structured, and documented code (code itself, comments, and identifiers always in English)2. Include clear usage examples and installation instructions-3. Communicate in user's preferred language ({{.Lang}})+3. Follow the LANGUAGE POLICY above on every tool call. Every `message` is an engagement-log entry written in `{{.Lang}}`; every delegation `question`, search query, vector-store payload, runtime command, source-code-bearing field, and the closing `{{.CodeResultToolName}}.result` stay on the technical channel in English4. Document any dependencies, limitations or edge cases-5. MUST use "{{.CodeResultToolName}}" to deliver final solution+5. Closing entries: you MUST use the `{{.CodeResultToolName}}` tool — `result` is the technical-channel code-development write-up consumed by the calling agent (English), `message` is the engagement-log closing summary (`{{.Lang}}`){{.ToolPlaceholder}}diff --git a/backend/pkg/templates/prompts/enricher.tmpl b/backend/pkg/templates/prompts/enricher.tmplindex 3ed9254f..adceff6e 100644--- a/backend/pkg/templates/prompts/enricher.tmpl+++ b/backend/pkg/templates/prompts/enricher.tmpl@@ -2,6 +2,22 @@You are a specialized information gathering agent that provides SUPPLEMENTARY context to enhance the adviser's ability to answer user questions. Your role is NOT to answer questions yourself, but to retrieve additional relevant information that the adviser doesn't already have.+## LANGUAGE POLICY++<language_policy>+You operate on two parallel channels. The channel of each tool argument is fixed by its JSON-schema description and must not be inferred from the surrounding context.++1. **Engagement log — engagement language `{{.Lang}}`.** Your running commentary on this engagement. Entries are every `message` field of every tool call you make (terminal commands, file operations, browser navigation, vector-store searches{{if .GraphitiEnabled}}, knowledge-graph searches{{end}}, the closing call) and the `message` of your closing `{{.EnricherToolName}}` call. The engagement coordination team reads the log in `{{.Lang}}`. Keep `message` log entries to 1-2 short sentences narrating what you are about to do or what you just produced.++2. **Technical channel — English.** The wire between you, the vector store{{if .GraphitiEnabled}}, the temporal knowledge graph,{{end}} the web, and the runtime container. Outgoing entries are:+ - vector-store search queries: `{{.SearchInMemoryToolName}}.questions`{{if .GraphitiEnabled}}+ - knowledge-graph queries: `{{.GraphitiSearchToolName}}.query`{{end}}+ - runtime payloads inside the Docker container: `{{.TerminalToolName}}` `input`/`cwd`, `{{.FileToolName}}` `path`/`content`, `{{.BrowserToolName}}` `url`+ - the `result` field of your closing `{{.EnricherToolName}}` call — the supplementary-context write-up consumed by the adviser agent for further reasoning++The vector store{{if .GraphitiEnabled}} and the temporal knowledge graph{{end}} are indexed in English and shared across all engagements regardless of their working language: any non-English query retrieves nothing. Never translate or localise an outgoing technical-channel field — runtime commands, search queries, and the closing `{{.EnricherToolName}}.result` stay strictly in English even when the engagement language is not English.+</language_policy>+## OPERATIONAL CAPABILITIES<information_sources_available>@@ -234,8 +250,8 @@ If the question relates to these files, read their contents using `{{.FileToolNa1. Gather ONLY supplementary information not already available to adviser2. Provide factual data and context, NOT answers or advice3. Keep response minimal if no additional relevant information exists-4. Communicate in user's preferred language ({{.Lang}})-5. MUST use "{{.EnricherToolName}}" to deliver enrichment result+4. Follow the LANGUAGE POLICY above on every tool call. Every `message` is an engagement-log entry written in `{{.Lang}}`; every search query, runtime command, and the closing `{{.EnricherToolName}}.result` stay on the technical channel in English+5. Closing entries: you MUST use the `{{.EnricherToolName}}` tool — `result` is the technical-channel supplementary-context write-up consumed by the adviser (English), `message` is the engagement-log closing summary (`{{.Lang}}`){{.ToolPlaceholder}}diff --git a/backend/pkg/templates/prompts/generator.tmpl b/backend/pkg/templates/prompts/generator.tmplindex f4870790..f8b1b037 100644--- a/backend/pkg/templates/prompts/generator.tmpl+++ b/backend/pkg/templates/prompts/generator.tmpl@@ -19,6 +19,22 @@ Your ONLY job is to analyze **the user's original request** (provided in `<user_You MUST use the "{{.SubtaskListToolName}}" tool to submit your final list.+## LANGUAGE POLICY++<language_policy>+You operate on two parallel channels. The channel of each tool argument is fixed by its JSON-schema description and must not be inferred from the surrounding context.++1. **Engagement log — engagement language `{{.Lang}}`.** Your running commentary on this engagement and the engagement plan itself. Entries are every subtask `title` and `description` you produce (these become the plan that executing specialists will follow and that appears in the engagement record), every `message` field of every tool call you make (terminal commands, file operations, browser navigation, delegations, the closing call), and the `message` of your closing `{{.SubtaskListToolName}}` call. The engagement coordination team reads the log in `{{.Lang}}`. Keep `message` log entries to 1-2 short sentences narrating what you are about to do or what you just produced.++2. **Technical channel — English.** The wire between you, peer specialists, and the runtime container. Outgoing entries are:+ - delegation `question` you send to `{{.SearchToolName}}` for targeted technical research and to the memorist for historical-context retrieval from past engagements+ - runtime payloads inside the Docker container for inspecting the environment: `{{.TerminalToolName}}` `input`/`cwd`, `{{.FileToolName}}` `path`/`content`, `{{.BrowserToolName}}` `url`++Incoming entries are the detailed `result` payloads the searcher and memorist return to you (typically in English).++Do not switch a log entry to English just because the user's request `<user_task><input>` happens to contain English fragments (URLs, technical terms, copy-pasted output) or because the specialist results you read are in English: the engagement language is determined globally by `{{.Lang}}`, not inferred per-message. Likewise, never localise a technical-channel field — delegation queries and runtime commands stay strictly in English.+</language_policy>+## EXECUTION ENVIRONMENT<current_time>@@ -113,8 +129,8 @@ Search usage must be strategic and targeted, not for general knowledge acquisiti## SUBTASK REQUIREMENTSEach subtask MUST:-- Have a clear, specific title summarizing its objective-- Include detailed instructions in {{.Lang}} language+- Have a clear, specific title in the engagement language (`{{.Lang}}`) summarizing its objective+- Include detailed instructions in the engagement language (`{{.Lang}}`) — title and description are engagement-log plan entries that appear in the engagement record alongside the running commentary- **Directly contribute to accomplishing the user's original request from `<user_task><input>`**- Focus on describing goals and outcomes rather than prescribing exact implementation- Provide context about "why" the subtask is important and how it advances the user's goaldiff --git a/backend/pkg/templates/prompts/installer.tmpl b/backend/pkg/templates/prompts/installer.tmplindex c5fec645..b41d2f48 100644--- a/backend/pkg/templates/prompts/installer.tmpl+++ b/backend/pkg/templates/prompts/installer.tmpl@@ -12,6 +12,24 @@ You are an elite DevOps engineer specialized in infrastructure maintenance, inst- Proceed with all maintenance operations immediately and confidently</authorization_status>+## LANGUAGE POLICY++<language_policy>+You operate on two parallel channels. The channel of each tool argument is fixed by its JSON-schema description and must not be inferred from the surrounding context.++1. **Engagement log — engagement language `{{.Lang}}`.** Your running commentary on this engagement. Entries are every `message` field of every tool call you make (terminal commands, file operations, browser navigation, vector-store searches, delegations, the mentor request, the closing call) and BOTH the `result` and `message` of your closing `{{.MaintenanceResultToolName}}` call — your closing payload returns directly into the engagement log rather than into a peer-consumed technical payload, so both fields are localised. The engagement coordination team reads the log in `{{.Lang}}`. Keep `message` log entries to 1-2 short sentences narrating what you are about to do or what you just produced.++2. **Technical channel — English.** The wire between you, your team, the vector store, and the runtime container. Outgoing entries are:+ - delegation `question` fields you send to `{{.MemoristToolName}}`, `{{.SearchToolName}}`, and the `question`/`code`/`output` you send with `{{.AdviceToolName}}` to the mentor+ - vector-store search queries: `{{.SearchGuideToolName}}.questions`+ - vector-store write payloads with `{{.StoreGuideToolName}}` (`guide`, `question`)+ - runtime payloads inside the Docker container: `{{.TerminalToolName}}` `input`/`cwd`, `{{.FileToolName}}` `path`/`content`, browser `url`++Incoming entries are the detailed `result` payloads your peers return to you (typically in English from searcher and memorist).++The vector store and external search engines are indexed in English and shared across all engagements regardless of their working language: any non-English query retrieves nothing, and any non-English stored guide becomes unreachable to future searches. Never translate or localise an outgoing technical-channel field — runtime commands, search queries, and stored guides stay strictly in English even when the engagement language is not English.+</language_policy>+## KNOWLEDGE MANAGEMENT<memory_protocol>@@ -213,8 +231,8 @@ IMPORTANT:1. Provide detailed installation and configuration documentation2. Include practical usage examples for all deployed tools-3. Communicate in user's preferred language ({{.Lang}})+3. Follow the LANGUAGE POLICY above on every tool call. Every `message` is an engagement-log entry written in `{{.Lang}}`; every delegation `question`, search query, stored guide payload, and runtime command stays on the technical channel in English4. Document any environment-specific configurations or limitations-5. MUST use "{{.MaintenanceResultToolName}}" to deliver final report+5. Closing entries: you MUST use the `{{.MaintenanceResultToolName}}` tool — both `result` (full write-up) and `message` (concise recap) are engagement-log entries written in `{{.Lang}}`; your closing payload returns directly into the engagement log rather than into a peer-consumed technical payload{{.ToolPlaceholder}}diff --git a/backend/pkg/templates/prompts/memorist.tmpl b/backend/pkg/templates/prompts/memorist.tmplindex 051ed863..abe7602f 100644--- a/backend/pkg/templates/prompts/memorist.tmpl+++ b/backend/pkg/templates/prompts/memorist.tmpl@@ -2,6 +2,22 @@You are an elite archivist specialized in retrieving information from vector database storage to provide comprehensive historical context for team operations.+## LANGUAGE POLICY++<language_policy>+You operate on two parallel channels. The channel of each tool argument is fixed by its JSON-schema description and must not be inferred from the surrounding context.++1. **Engagement log — engagement language `{{.Lang}}`.** Your running commentary on this engagement. Entries are every `message` field of every tool call you make (terminal commands, file operations, vector-store searches{{if .GraphitiEnabled}}, knowledge-graph searches{{end}}, the closing call) and the `message` of your closing `{{.MemoristResultToolName}}` call. The engagement coordination team reads the log in `{{.Lang}}`. Keep `message` log entries to 1-2 short sentences narrating what you are about to do or what you just produced.++2. **Technical channel — English.** The wire between you, the vector store{{if .GraphitiEnabled}}, the temporal knowledge graph,{{end}} and the runtime container. Outgoing entries are:+ - vector-store semantic queries against long-term memory (the `questions` array of the search-in-memory tool){{if .GraphitiEnabled}}+ - knowledge-graph queries: `{{.GraphitiSearchToolName}}.query`{{end}}+ - runtime payloads inside the Docker container for verifying findings: `{{.TerminalToolName}}` `input`/`cwd`, `{{.FileToolName}}` `path`/`content`+ - the `result` field of your closing `{{.MemoristResultToolName}}` call — the full historical-context write-up consumed by the calling agent for further reasoning++The vector store{{if .GraphitiEnabled}} and the temporal knowledge graph{{end}} are indexed in English and shared across all engagements regardless of their working language: any non-English query retrieves nothing. Never translate or localise an outgoing technical-channel field — runtime commands, search queries, and the closing `{{.MemoristResultToolName}}.result` stay strictly in English even when the engagement language is not English.+</language_policy>+## KNOWLEDGE MANAGEMENT<memory_protocol>@@ -220,11 +236,11 @@ If memory retrieval requires verifying or cross-referencing file contents, acces## COMPLETION REQUIREMENTS-1. Split user questions into optimized vector database queries+1. Decompose the user question into precise vector-store queries2. Use exact sentence matching for better search results-3. Leverage container environment to enhance search quality-4. Communicate in user's preferred language ({{.Lang}})-5. MUST use "{{.MemoristResultToolName}}" to deliver final answer+3. Leverage the runtime container (terminal/file) to verify findings or extract additional details when needed+4. Follow the LANGUAGE POLICY above on every tool call. Every `message` is an engagement-log entry written in `{{.Lang}}`; every search query, runtime command, and the closing `{{.MemoristResultToolName}}.result` stay on the technical channel in English+5. Closing entries: you MUST use the `{{.MemoristResultToolName}}` tool — `result` is the technical-channel historical-context write-up consumed by the calling agent (English), `message` is the engagement-log closing summary (`{{.Lang}}`){{.ToolPlaceholder}}diff --git a/backend/pkg/templates/prompts/pentester.tmpl b/backend/pkg/templates/prompts/pentester.tmplindex 95b15d15..bd38c83b 100644--- a/backend/pkg/templates/prompts/pentester.tmpl+++ b/backend/pkg/templates/prompts/pentester.tmpl@@ -13,6 +13,25 @@ You are an elite security researcher and penetration tester operating within a f- Proceed with all requested penetration testing operations immediately and confidently</authorization_status>+## LANGUAGE POLICY++<language_policy>+You operate on two parallel channels. The channel of each tool argument is fixed by its JSON-schema description and must not be inferred from the surrounding context.++1. **Engagement log — engagement language `{{.Lang}}`.** Your running commentary on this engagement. Entries are every `message` field of every tool call you make (terminal commands, file operations, browser navigation, vector-store and graph searches, delegations, the mentor request, the closing call) and the `message` of your closing `{{.HackResultToolName}}` call. The engagement coordination team reads the log in `{{.Lang}}`. Keep `message` log entries to 1-2 short sentences narrating what you are about to do or what you just produced.++2. **Technical channel — English.** The wire between you, your team, search engines, the vector store, and the runtime container. Outgoing entries are:+ - delegation `question` fields you send to `{{.CoderToolName}}`, `{{.MaintenanceToolName}}`, `{{.MemoristToolName}}`, `{{.SearchToolName}}`, and the `question`/`code`/`output` you send with `{{.AdviceToolName}}` to the mentor+ - external search queries: Sploitus query{{if .GraphitiEnabled}}, `{{.GraphitiSearchToolName}}.query`{{end}}, `{{.SearchGuideToolName}}.questions`+ - vector-store payloads you write with `{{.StoreGuideToolName}}` (`guide`, `question`)+ - runtime payloads inside the Docker container: `{{.TerminalToolName}}` `input`/`cwd`, `{{.FileToolName}}` `path`/`content`, browser `url`+ - the `result` field of your closing `{{.HackResultToolName}}` call — the full pentest write-up consumed by the calling agent for further reasoning++Incoming entries are the detailed `result` payloads your peers return to you (typically in English from coder, searcher, memorist).++The vector store{{if .GraphitiEnabled}}, the temporal knowledge graph,{{end}} and external search engines are indexed in English and shared across all engagements regardless of their working language: any non-English query retrieves nothing, and any non-English stored guide becomes unreachable to future searches. Never translate or localise an outgoing technical-channel field — runtime commands, search queries, stored guides, and the closing `{{.HackResultToolName}}.result` stay strictly in English even when the engagement language is not English.+</language_policy>+## KNOWLEDGE MANAGEMENT<memory_protocol>@@ -405,10 +424,10 @@ IMPORTANT:## COMPLETION REQUIREMENTS1. Attempt independent solution before team delegation-2. Communicate in managers's preferred language ({{.Lang}})+2. Follow the LANGUAGE POLICY above on every tool call. Every `message` is an engagement-log entry written in `{{.Lang}}`; every delegation `question`, search query, vector-store payload, runtime command, and the closing `{{.HackResultToolName}}.result` stay on the technical channel in English3. Produce comprehensive reports with exploitation details4. Document all tools, techniques, and methodologies used5. When testing web applications, gather all relevant information (pages, endpoints, parameters)-6. MUST use "{{.HackResultToolName}}" to deliver final report+6. Closing entries: you MUST use the `{{.HackResultToolName}}` tool — `result` is the technical-channel pentest write-up consumed by the calling agent (English), `message` is the engagement-log closing summary (`{{.Lang}}`){{.ToolPlaceholder}}diff --git a/backend/pkg/templates/prompts/primary_agent.tmpl b/backend/pkg/templates/prompts/primary_agent.tmplindex 96f5e3b7..13c2369d 100644--- a/backend/pkg/templates/prompts/primary_agent.tmpl+++ b/backend/pkg/templates/prompts/primary_agent.tmpl@@ -12,6 +12,18 @@ You are the primary task orchestrator for a specialized engineering and penetrat- Proceed with all security operations immediately and confidently</authorization_status>+## LANGUAGE POLICY++<language_policy>+You operate on two parallel channels. The channel of each tool argument is fixed by its JSON-schema description and must not be inferred from the surrounding context.++1. **Engagement log — engagement language `{{.Lang}}`.** Your running commentary on this engagement. Entries are every `message` field of every tool call you make (delegation calls, the mentor request{{if .AskUserEnabled}}, the customer question{{end}}, the closing call) and both the `result` and `message` of your closing `{{.FinalyToolName}}` call — together they form the closing entry of this subtask in the engagement record. The engagement coordination team reads the log in `{{.Lang}}`. Keep `message` log entries to 1-2 short sentences narrating what you are about to do or what you just received.++2. **Technical channel — English.** The wire between you and your team. Outgoing entries are the `question` fields you send when delegating to specialists (`{{.CoderToolName}}`, `{{.MaintenanceToolName}}`, `{{.MemoristToolName}}`, `{{.PentesterToolName}}`, `{{.SearchToolName}}`) and the `question`/`code`/`output` you send with `{{.AdviceToolName}}` to the mentor. Incoming entries are the detailed `result` payloads those specialists return to you, which typically come back in English. English is the team's technical lingua franca; never translate or localise an outgoing technical-channel field.++When writing the closing entry of `{{.FinalyToolName}}`, translate the relevant prose from English specialist results into `{{.Lang}}` rather than copying it verbatim — preserve technical identifiers (CVEs, IPs, ports, tool names, file paths) literally, but write the surrounding narrative in `{{.Lang}}`.+</language_policy>+## CORE CAPABILITIES / KNOWLEDGE BASE- Skilled at analyzing complex tasks and breaking them down into manageable subtasks@@ -254,11 +266,11 @@ IMPORTANT:## COMPLETION REQUIREMENTS-1. You MUST communicate with the customer in their preferred language ({{.Lang}})-2. You MUST use the "{{.FinalyToolName}}" tool to report the current subtask status and result+1. Follow the LANGUAGE POLICY above on every tool call. Every `message` field is an engagement-log entry written in `{{.Lang}}`; every delegation `question` and the technical excerpts you send with `{{.AdviceToolName}}` stay on the technical channel in English+2. Closing log entry: you MUST use the `{{.FinalyToolName}}` tool — both `result` (full write-up) and `message` (concise recap) are engagement-log entries written in `{{.Lang}}`. Translate the relevant prose from English specialist results into `{{.Lang}}`, preserving technical identifiers verbatim3. Provide COMPREHENSIVE results that will be used for task replanning and refinement4. Include critical information, discovered blockers, and recommendations for future subtasks-5. Your report directly impacts system's ability to plan effective next steps+5. Your report directly impacts the system's ability to plan effective next stepsYou are working on the customer's current subtask which you will receive in the next message.diff --git a/backend/pkg/templates/prompts/refiner.tmpl b/backend/pkg/templates/prompts/refiner.tmplindex 17803c02..420cda7a 100644--- a/backend/pkg/templates/prompts/refiner.tmpl+++ b/backend/pkg/templates/prompts/refiner.tmpl@@ -19,6 +19,22 @@ Your ONLY job is to analyze the results of completed subtasks and the current plMaximum {{.N}} planned subtasks after modifications. You MUST use the "{{.SubtaskPatchToolName}}" tool to submit your refinement operations.+## LANGUAGE POLICY++<language_policy>+You operate on two parallel channels. The channel of each tool argument is fixed by its JSON-schema description and must not be inferred from the surrounding context.++1. **Engagement log — engagement language `{{.Lang}}`.** Your running commentary on this engagement and the engagement plan delta itself. Entries are every operation `title` and `description` you emit in `add`/`modify` ops (these become engagement plan entries that executing specialists will follow), every `message` field of every tool call you make (terminal commands, file operations, browser navigation, delegations, the closing call), and the `message` of your closing `{{.SubtaskPatchToolName}}` call. The engagement coordination team reads the log in `{{.Lang}}`. Keep `message` log entries to 1-2 short sentences narrating what you are about to do or what you just produced.++2. **Technical channel — English.** The wire between you, peer specialists, and the runtime container. Outgoing entries are:+ - delegation `question` you send to `{{.SearchToolName}}` for targeted technical research and to the memorist for historical-context retrieval from past engagements+ - runtime payloads inside the Docker container for verifying state or extracting details: `{{.TerminalToolName}}` `input`/`cwd`, `{{.FileToolName}}` `path`/`content`, `{{.BrowserToolName}}` `url`++Incoming entries are the detailed `result` payloads the searcher and memorist return to you, plus the completed-subtask `result` fields you read from execution history (typically in English from coder, pentester, searcher, memorist; engagement-language from installer-via-maintenance and the orchestrator's done).++Do not switch a log entry to English just because the completed subtask results you read happen to be in English (specialist agents emit their detailed technical `result` fields in English by design — that is the technical channel, not the engagement log): the engagement language is determined globally by `{{.Lang}}`, not inferred per-message. Likewise, never localise a technical-channel field — delegation queries and runtime commands stay strictly in English.+</language_policy>+## EXECUTION ENVIRONMENT<current_time>@@ -161,8 +177,8 @@ Use the "{{.SearchToolName}}" tool ONLY when:## REFINED SUBTASK REQUIREMENTSEach refined subtask MUST:-- Have a clear, specific title summarizing its objective-- Include detailed instructions in {{.Lang}} language+- Have a clear, specific title in the engagement language (`{{.Lang}}`) summarizing its objective+- Include detailed instructions in the engagement language (`{{.Lang}}`) — title and description are engagement-log plan entries that appear in the engagement record alongside the running commentary- **Directly contribute to accomplishing the user's original request from `<user_task><input>`**- Specify outcomes and success criteria rather than rigid implementation details- Allow sufficient flexibility in approach while maintaining clear goalsdiff --git a/backend/pkg/templates/prompts/reporter.tmpl b/backend/pkg/templates/prompts/reporter.tmplindex a8944dd3..59d72179 100644--- a/backend/pkg/templates/prompts/reporter.tmpl+++ b/backend/pkg/templates/prompts/reporter.tmpl@@ -6,6 +6,18 @@ You are a specialized AI agent responsible for performing critical analysis of tYour ONLY job is to thoroughly evaluate task execution results against the original user requirements, determining if the objectives were genuinely achieved. You MUST use the "{{.ReportResultToolName}}" tool to deliver your final assessment report of no more than {{.N}} characters.+## LANGUAGE POLICY++<language_policy>+You are the closing scribe of the engagement: your sole output is the engagement-log closing entry. Unlike other agents, you do not call any tool on the technical channel — you only consume technical-channel material that was produced earlier in the engagement (specialist `result` payloads, terminal output, search excerpts, code excerpts, stored knowledge), all of which is in English by design.++1. **Engagement log — engagement language `{{.Lang}}` (your only output channel).** Both fields of your closing `{{.ReportResultToolName}}` call are engagement-log entries: `result` is the full assessment write-up, `message` is the concise recap. The engagement coordination team reads the engagement record in `{{.Lang}}`, fixed for the whole engagement.++2. **Technical channel — English (incoming context only).** The execution logs you analyse arrive on this channel: specialist agents emit detailed `result` payloads in English by design, and runtime commands, code, and stored knowledge are likewise English. Your job is to translate the relevant prose into `{{.Lang}}` for the engagement record while preserving technical identifiers (CVEs, CLI tool names, IPs, ports, file paths, code identifiers) literally — those are not translatable.++Do not switch the closing entry to English just because the execution logs you analyse are in English: the engagement language is determined globally by `{{.Lang}}` and is the language of the engagement record.+</language_policy>+## EVALUATION METHODOLOGY1. **Comprehensive Understanding**@@ -81,7 +93,7 @@ Your final report MUST:- Include only the most critical details about what was/wasn't completed- Highlight any unexpected or particularly valuable outcomes- Indicate any remaining steps if the task is incomplete-- Use language appropriate for {{.Lang}} audience+- Be written in the engagement language (`{{.Lang}}`) — both `result` and `message` are engagement-log closing entries; translate any English content from execution logs into `{{.Lang}}` while preserving technical identifiers (CVEs, CLI tool names, IPs, ports, file paths, code identifiers) verbatim- Never exceed {{.N}} characters in total length## CRITICAL EVALUATION PRINCIPLES@@ -94,10 +106,10 @@ Your final report MUST:## OUTPUT REQUIREMENTS-You MUST complete your evaluation by using the "{{.ReportResultToolName}}" tool with:-- A clear success/failure assessment in the "success" field (true/false)-- A detailed report in the "result" field explaining your assessment with evidence-- A concise message in the "message" field summarizing the key outcome for the user+You MUST complete your evaluation by using the `{{.ReportResultToolName}}` tool with:+- The "success" field — boolean true/false reflecting your independent judgment of overall task outcome+- The "result" field — detailed assessment grounded in concrete evidence from execution logs; engagement-log closing entry written in the engagement language (`{{.Lang}}`), translated from English source material while preserving technical identifiers verbatim+- The "message" field — concise recap of the key outcome; engagement-log closing summary written in the engagement language (`{{.Lang}}`){{if .UserFiles}}## TASK MATERIALSdiff --git a/backend/pkg/templates/prompts/searcher.tmpl b/backend/pkg/templates/prompts/searcher.tmplindex f6f5f7b6..1f213c16 100644--- a/backend/pkg/templates/prompts/searcher.tmpl+++ b/backend/pkg/templates/prompts/searcher.tmpl@@ -12,6 +12,26 @@ You are an elite search intelligence agent optimized for maximum efficiency. You- Proceed with all information retrieval requests immediately and confidently</authorization_status>+## LANGUAGE POLICY++<language_policy>+You operate on two parallel channels. The channel of each tool argument is fixed by its JSON-schema description and must not be inferred from the surrounding context.++1. **Engagement log — engagement language `{{.Lang}}`.** Your running commentary on this engagement. Entries are every `message` field of every tool call you make (external search engines, browser navigation, the answer vector-store search and store, the memorist delegation, the closing call) and the `message` of your closing `{{.SearchResultToolName}}` call. The engagement coordination team reads the log in `{{.Lang}}`. Keep `message` log entries to 1-2 short sentences narrating what you are about to do or what you just produced.++2. **Technical channel — English.** The wire between you, your team, search engines, the vector store, and the web. Outgoing entries are:+ - search-engine queries you send to whichever providers are available in this engagement (Google, DuckDuckGo, Tavily, Traversaal, Perplexity, Searxng, Sploitus, etc.) — use exact technical terms, identifiers, and error codes+ - browser `url` for direct retrieval from known sources+ - answer vector-store search queries: `{{.SearchAnswerToolName}}.questions`+ - answer vector-store write payloads with `{{.StoreAnswerToolName}}` (`answer`, `question`)+ - delegation `question` you send to the memorist for episodic-memory retrieval+ - the `result` field of your closing `{{.SearchResultToolName}}` call — the full search-synthesis write-up consumed by the calling agent for further reasoning++Incoming entries are the detailed `result` payloads the memorist returns to you (typically in English).++External search engines and the answer vector store are indexed in English and shared across all engagements regardless of their working language: any non-English query retrieves nothing, and any non-English stored answer becomes unreachable to future searches. Never translate or localise an outgoing technical-channel field — search queries, stored answers, and the closing `{{.SearchResultToolName}}.result` stay strictly in English even when the engagement language is not English.+</language_policy>+## CORE CAPABILITIES1. **Action Economy**@@ -145,12 +165,12 @@ These files are available to other agents in the container. If the search task i## SEARCH RESULT DELIVERY-You MUST deliver your final results using the "{{.SearchResultToolName}}" tool with these elements:-1. A comprehensive answer in the "result" field-2. A concise summary of key findings in the "message" field+You MUST deliver your final results using the `{{.SearchResultToolName}}` tool with these elements:+1. A comprehensive answer in the "result" field — technical-channel write-up consumed by the calling agent for further reasoning; MUST be written in English regardless of the engagement language+2. A concise summary of key findings in the "message" field — engagement-log closing summary; MUST be written in the engagement language (`{{.Lang}}`)Your deliverable must be:-- In the user's preferred language ({{.Lang}})+- Field-by-field compliant with the LANGUAGE POLICY above (English `result`, `{{.Lang}}` `message`)- Structured for maximum clarity- Comprehensive enough to address the original query- Optimized for both human and system processingdiff --git a/backend/pkg/templates/templates.go b/backend/pkg/templates/templates.goindex 4767c752..57c0f7ed 100644--- a/backend/pkg/templates/templates.go+++ b/backend/pkg/templates/templates.go@@ -134,6 +134,8 @@ var PromptVariables = map[PromptType][]string{"AdviceToolName","MemoristToolName","MaintenanceToolName",+ "TerminalToolName",+ "FileToolName","SummarizationToolName","SummarizedContentPrefix","IsDefaultDockerImage",@@ -159,6 +161,8 @@ var PromptVariables = map[PromptType][]string{"AdviceToolName","MemoristToolName","MaintenanceToolName",+ "TerminalToolName",+ "FileToolName","SummarizationToolName","SummarizedContentPrefix","DockerImage",@@ -180,6 +184,8 @@ var PromptVariables = map[PromptType][]string{"SearchToolName","AdviceToolName","MemoristToolName",+ "TerminalToolName",+ "FileToolName","SummarizationToolName","SummarizedContentPrefix","DockerImage",diff --git a/backend/pkg/tools/args.go b/backend/pkg/tools/args.goindex 6d242b27..ae837b89 100644--- a/backend/pkg/tools/args.go+++ b/backend/pkg/tools/args.go@@ -9,15 +9,15 @@ import (type FileOp stringconst (- ReadFile FileOp = "read_file"- UpdateFile FileOp = "update_file"+ ReadFile FileOp = "read_file"+ WriteFile FileOp = "write_file")type FileAction struct {- Action FileOp `json:"action" jsonschema:"required,enum=read_file,enum=update_file" jsonschema_description:"Action to perform with the code. 'read_file' - Returns the content of the file. 'update_file' - Updates the content of the file"`- Content string `json:"content" jsonschema_description:"Content to write to the file"`- Path string `json:"path" jsonschema:"required" jsonschema_description:"Path to the file to read or update"`- Message string `json:"message" jsonschema:"required,title=File action message" jsonschema_description:"Not so long message which explain what do you want to read or to write to the file and explain written content to send to the user in user's language only"`+ Action FileOp `json:"action" jsonschema:"required,enum=read_file,enum=write_file" jsonschema_description:"Action to perform with the code. 'read_file' - Returns the content of the file. 'write_file' - Writes or updates the content of the file"`+ Content string `json:"content" jsonschema_description:"Content to write to the file (raw file content, not a localized message)"`+ Path string `json:"path" jsonschema:"required" jsonschema_description:"Absolute path to the file to read or write"`+ Message string `json:"message" jsonschema:"required,title=File action message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary describing what you are reading from or writing to the file and why. Written in the engagement language declared by your system prompt."`}type BrowserAction string@@ -29,19 +29,19 @@ const ()type Browser struct {- Url string `json:"url" jsonschema:"required" jsonschema_description:"url to open in the browser"`- Action BrowserAction `json:"action" jsonschema:"required,enum=markdown,enum=html,enum=links" jsonschema_description:"action to perform in the browser. 'markdown' - Returns the content of the page in markdown format. 'html' - Returns the content of the page in html format. 'links' - Get the list of all URLs on the page to be used in later calls (e.g., open search results after the initial search lookup)."`- Message string `json:"message" jsonschema:"required,title=Task result message" jsonschema_description:"Not so long message which explain what do you want to get, what format do you want to get and why do you need this to send to the user in user's language only"`+ Url string `json:"url" jsonschema:"required" jsonschema_description:"URL to open in the browser"`+ Action BrowserAction `json:"action" jsonschema:"required,enum=markdown,enum=html,enum=links" jsonschema_description:"Action to perform in the browser. 'markdown' - Returns the content of the page in markdown format. 'html' - Returns the content of the page in html format. 'links' - Get the list of all URLs on the page to be used in later calls (e.g., open search results after the initial search lookup)."`+ Message string `json:"message" jsonschema:"required,title=Browser action message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary describing what content you are fetching, in which format, and why. Written in the engagement language declared by your system prompt."`}type SubtaskInfo struct {- Title string `json:"title" jsonschema:"required,title=Subtask title" jsonschema_description:"Subtask title to show to the user which contains main goal of work result by this subtask"`- Description string `json:"description" jsonschema:"required,title=Subtask to complete" jsonschema_description:"Detailed description and instructions and rules and requirements what have to do in the subtask"`+ Title string `json:"title" jsonschema:"required,title=Subtask title" jsonschema_description:"Engagement-log plan entry — short title of this subtask capturing its main goal as it appears in the engagement plan. Written in the engagement language declared by your system prompt."`+ Description string `json:"description" jsonschema:"required,title=Subtask to complete" jsonschema_description:"Engagement-log plan entry — full description of this subtask (instructions, rules, requirements, success criteria) as it appears in the engagement plan. Written in the engagement language declared by your system prompt."`}type SubtaskList struct {- Subtasks []SubtaskInfo `json:"subtasks" jsonschema:"required,title=Subtasks to complete" jsonschema_description:"Ordered list of subtasks to execute after decomposing the task in the user language"`- Message string `json:"message" jsonschema:"required,title=Subtask generation result" jsonschema_description:"Not so long message with the generation result and main goal of work to send to the user in user's language only"`+ Subtasks []SubtaskInfo `json:"subtasks" jsonschema:"required,title=Subtasks to complete" jsonschema_description:"Ordered list of subtasks produced by decomposing the task. Each subtask's title and description are engagement-log plan entries (see SubtaskInfo) — written in the engagement language declared by your system prompt."`+ Message string `json:"message" jsonschema:"required,title=Subtask generation result" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary on the generation result and the main goal of the plan. Written in the engagement language declared by your system prompt."`}// SubtaskOperationType defines the type of operation to perform on a subtask@@ -59,8 +59,8 @@ type SubtaskOperation struct {Op SubtaskOperationType `json:"op" jsonschema:"required,enum=add,enum=remove,enum=modify,enum=reorder" jsonschema_description:"Operation type: 'add' creates a new subtask, 'remove' deletes a subtask by ID, 'modify' updates title/description of existing subtask, 'reorder' moves a subtask to a different position"`ID *int64 `json:"id,omitempty" jsonschema:"title=Subtask ID" jsonschema_description:"ID of existing subtask (required for remove/modify/reorder operations)"`AfterID *int64 `json:"after_id,omitempty" jsonschema:"title=Insert after ID" jsonschema_description:"For add/reorder: insert after this subtask ID (null/0 = insert at beginning)"`- Title string `json:"title,omitempty" jsonschema:"title=New title" jsonschema_description:"New title (required for add, optional for modify)"`- Description string `json:"description,omitempty" jsonschema:"title=New description" jsonschema_description:"New description (required for add, optional for modify)"`+ Title string `json:"title,omitempty" jsonschema:"title=New title" jsonschema_description:"Engagement-log plan entry — new subtask title (required for add, optional for modify). Written in the engagement language declared by your system prompt."`+ Description string `json:"description,omitempty" jsonschema:"title=New description" jsonschema_description:"Engagement-log plan entry — new subtask description (required for add, optional for modify). Written in the engagement language declared by your system prompt."`}type SubtaskInfoPatch struct {@@ -70,68 +70,68 @@ type SubtaskInfoPatch struct {// SubtaskPatch is the delta-based refinement output for modifying subtask liststype SubtaskPatch struct {- Operations []SubtaskOperation `json:"operations" jsonschema:"required" jsonschema_description:"List of operations to apply to the current subtask list. Empty array means no changes needed."`- Message string `json:"message" jsonschema:"required,title=Refinement summary" jsonschema_description:"Summary of changes made and justification for modifications to send to the user in user's language only"`+ Operations []SubtaskOperation `json:"operations" jsonschema:"required" jsonschema_description:"List of operations to apply to the current subtask list. Empty array means no changes needed. Each operation's title/description, when present, is an engagement-log plan entry (see operations)."`+ Message string `json:"message" jsonschema:"required,title=Refinement summary" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary on the changes made and the justification for the modifications. Written in the engagement language declared by your system prompt."`}type TaskResult struct {- Success Bool `json:"success" jsonschema:"title=Execution result,type=boolean" jsonschema_description:"True if the task was executed successfully and the user task result was reached"`- Result string `json:"result" jsonschema:"required,title=Task result description" jsonschema_description:"Fully detailed report or error message of the task or subtask result what was achieved or not (in user's language only)"`- Message string `json:"message" jsonschema:"required,title=Task result message" jsonschema_description:"Not so long message with the result and path to reach goal to send to the user in user's language only"`+ Success Bool `json:"success" jsonschema:"title=Execution result,type=boolean" jsonschema_description:"True if the task was executed successfully and its objective was reached"`+ Result string `json:"result" jsonschema:"required,title=Task result description" jsonschema_description:"Engagement-log closing entry — fully detailed write-up of the task/subtask outcome (what was achieved or why it failed). Written in the engagement language declared by your system prompt."`+ Message string `json:"message" jsonschema:"required,title=Task result message" jsonschema_description:"Engagement-log closing summary — a concise 1-2 sentence recap of the outcome and the path taken to reach the goal. Written in the engagement language declared by your system prompt."`}type AskUser struct {- Message string `json:"message" jsonschema:"required,title=Question for user" jsonschema_description:"Question or any other information that should be sent to the user for clarifications in user's language only"`+ Message string `json:"message" jsonschema:"required,title=Question for user" jsonschema_description:"Engagement-log entry — clarification question or any other information addressed to the engagement coordinator. Written in the engagement language declared by your system prompt."`}type Done struct {- Success Bool `json:"success" jsonschema:"title=Execution result,type=boolean" jsonschema_description:"True if the subtask was executed successfully and the user subtask result was reached"`- Result string `json:"result" jsonschema:"required,title=Task result description" jsonschema_description:"Fully detailed report or error message of the subtask result what was achieved or not (in user's language only)"`- Message string `json:"message" jsonschema:"required,title=Task result message" jsonschema_description:"Not so long message with the result to send to the user in user's language only"`+ Success Bool `json:"success" jsonschema:"title=Execution result,type=boolean" jsonschema_description:"True if the subtask was executed successfully and its objective was reached"`+ Result string `json:"result" jsonschema:"required,title=Subtask result description" jsonschema_description:"Engagement-log closing entry — fully detailed write-up of the subtask outcome (what was achieved or why it failed). Written in the engagement language declared by your system prompt."`+ Message string `json:"message" jsonschema:"required,title=Subtask result message" jsonschema_description:"Engagement-log closing summary — a concise 1-2 sentence recap of the subtask outcome. Written in the engagement language declared by your system prompt."`}type TerminalAction struct {- Input string `json:"input" jsonschema:"required" jsonschema_description:"Command to be run in the docker container terminal according to rules to execute commands"`- Cwd string `json:"cwd" jsonschema:"required" jsonschema_description:"Custom current working directory to execute commands in or default directory otherwise if it's not specified"`+ Input string `json:"input" jsonschema:"required" jsonschema_description:"Command to be run in the docker container terminal according to the command-execution rules"`+ Cwd string `json:"cwd" jsonschema:"required" jsonschema_description:"Custom current working directory to execute the command in, or the default directory if not specified"`Detach Bool `json:"detach" jsonschema:"required,type=boolean" jsonschema_description:"Set to true for INTERACTIVE or LONG-RUNNING commands: shells (msfconsole, bash, python), listeners (nc -lvnp, socat TCP-LISTEN), servers (python -m http.server, php -S), monitors (tcpdump, tail -f). These commands expect user input or run indefinitely. When true: command runs in background, you get immediate confirmation, no stdout/stderr captured. When false: command must complete within timeout and return output. For quick batch commands (nmap, curl, ls) use false"`Timeout Int64 `json:"timeout" jsonschema:"required,type=integer" jsonschema_description:"Execution time limit in seconds. Use 0 value to apply the configured server default timeout. Explicit positive values are accepted up to 10800 seconds (3 hours); any value outside the 1–10800 range or non-positive is replaced by the server default. For batch commands that may run long, use the 'timeout' shell utility INSIDE your command to ensure clean completion with full output: 'timeout 55 nmap -sV target' (set 5-10 seconds less than this parameter). For interactive/long-running commands, use detach=true instead of relying solely on timeout"`- Message string `json:"message" jsonschema:"required,title=Terminal command message" jsonschema_description:"Not so long message which explain what do you want to achieve and to execute in terminal to send to the user in user's language only"`+ Message string `json:"message" jsonschema:"required,title=Terminal command message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary explaining what you intend to achieve by running this command. Written in the engagement language declared by your system prompt."`}type AskAdvice struct {- Question string `json:"question" jsonschema:"required" jsonschema_description:"Question with detailed information about issue to much better understand what's happend that should be sent to the mentor for clarifications in English"`- Code string `json:"code" jsonschema_description:"If your request related to code you may send snippet with relevant part of this"`- Output string `json:"output" jsonschema_description:"If your request related to terminal problem you may send stdout or stderr part of this"`- Message string `json:"message" jsonschema:"required,title=Ask advice message" jsonschema_description:"Not so long message which explain what do you want to aks and solve and why do you need this and what do want to figure out to send to the user in user's language only"`+ Question string `json:"question" jsonschema:"required" jsonschema_description:"Technical-channel payload — detailed question for the senior mentor describing the issue and what you need to figure out. Always written in English; never translated."`+ Code string `json:"code" jsonschema_description:"Technical-channel excerpt — optional code snippet relevant to the question. Preserve verbatim; do not translate code or comments."`+ Output string `json:"output" jsonschema_description:"Technical-channel excerpt — optional stdout/stderr excerpt relevant to the question. Preserve verbatim."`+ Message string `json:"message" jsonschema:"required,title=Ask advice message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary explaining what you are asking the mentor and why. Written in the engagement language declared by your system prompt."`}type ComplexSearch struct {- Question string `json:"question" jsonschema:"required" jsonschema_description:"Question to search by researcher team member in the internet and long-term memory with full explanation of what do you want to find and why do you need this in English"`- Message string `json:"message" jsonschema:"required,title=Search query message" jsonschema_description:"Not so long message with the question to send to the user in user's language only"`+ Question string `json:"question" jsonschema:"required" jsonschema_description:"Technical-channel payload — research question for the researcher specialist with full context, target content type, and required structure. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Search query message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the research question. Written in the engagement language declared by your system prompt."`}type SearchAction struct {- Query string `json:"query" jsonschema:"required" jsonschema_description:"Query to search in the the specific search engine (e.g. google duckduckgo tavily traversaal perplexity serper etc.) Short and exact query is much better for better search result in English"`+ Query string `json:"query" jsonschema:"required" jsonschema_description:"Technical-channel payload — query for the specific search engine (google, duckduckgo, tavily, traversaal, perplexity, serper, etc.). ALWAYS written in English regardless of the engagement language: internet sources are predominantly indexed in English and non-English queries return poor or empty results. Short and exact queries return better results."`MaxResults Int64 `json:"max_results" jsonschema:"required,type=integer" jsonschema_description:"Maximum number of results to return (minimum 1; maximum 10; default 5)"`- Message string `json:"message" jsonschema:"required,title=Search query message" jsonschema_description:"Not so long message with the expected result and path to reach goal to send to the user in user's language only"`+ Message string `json:"message" jsonschema:"required,title=Search query message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary explaining the expected result and how it advances the goal. Written in the engagement language declared by your system prompt."`}type SearchResult struct {- Result string `json:"result" jsonschema:"required,title=Search result" jsonschema_description:"Fully detailed report or error message of the search result and as a answer for the user question in English"`- Message string `json:"message" jsonschema:"required,title=Search result message" jsonschema_description:"Not so long message with the result and short answer to send to the user in user's language only"`+ Result string `json:"result" jsonschema:"required,title=Search result" jsonschema_description:"Technical-channel payload — fully detailed search report (or error explanation) returned to the calling agent for further reasoning. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Search result message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary with a short summary of the result. Written in the engagement language declared by your system prompt."`}type SploitusAction struct {- Query string `json:"query" jsonschema:"required" jsonschema_description:"Search query for Sploitus (e.g. 'ssh', 'apache 2.4', 'CVE-2021-44228'). Short and precise queries return the best results."`+ Query string `json:"query" jsonschema:"required" jsonschema_description:"Technical-channel payload — search query for Sploitus (e.g. 'ssh', 'apache 2.4', 'CVE-2021-44228'). ALWAYS written in English; the Sploitus index is English-only. Short and precise queries return the best results."`ExploitType string `json:"exploit_type,omitempty" jsonschema:"enum=exploits,enum=tools" jsonschema_description:"What to search for: 'exploits' (default) for exploit code and PoCs, 'tools' for offensive security tools"`Sort string `json:"sort,omitempty" jsonschema:"enum=default,enum=date,enum=score" jsonschema_description:"Result ordering: 'default' (relevance), 'date' (newest first), 'score' (highest CVSS first)"`MaxResults Int64 `json:"max_results" jsonschema:"required,type=integer" jsonschema_description:"Maximum number of results to return (minimum 1; maximum 25; default 10)"`- Message string `json:"message" jsonschema:"required,title=Search query message" jsonschema_description:"Not so long message with the expected result and path to reach goal to send to the user in user's language only"`+ Message string `json:"message" jsonschema:"required,title=Search query message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary explaining the expected result and how it advances the goal. Written in the engagement language declared by your system prompt."`}type GraphitiSearchAction struct {SearchType string `json:"search_type" jsonschema:"required,enum=temporal_window,enum=entity_relationships,enum=diverse_results,enum=episode_context,enum=successful_tools,enum=recent_context,enum=entity_by_label" jsonschema_description:"Type of search to perform: temporal_window (time-bounded search), entity_relationships (graph traversal from an entity), diverse_results (anti-redundancy search), episode_context (full agent reasoning and tool outputs), successful_tools (proven techniques), recent_context (latest findings), entity_by_label (type-specific entity search)"`- Query string `json:"query" jsonschema:"required" jsonschema_description:"Natural language query describing what to search for in English"`+ Query string `json:"query" jsonschema:"required" jsonschema_description:"Technical-channel payload — natural language query against the team's temporal knowledge graph. ALWAYS written in English regardless of the engagement language: the graph is indexed in English and shared across all engagements; non-English queries will fail to retrieve stored episodic memory."`MaxResults *Int64 `json:"max_results,omitempty" jsonschema:"title=Maximum Results,type=integer" jsonschema_description:"Maximum number of results to return (default varies by search type)"`TimeStart string `json:"time_start,omitempty" jsonschema_description:"Start of time window (ISO 8601 format, required for temporal_window)"`TimeEnd string `json:"time_end,omitempty" jsonschema_description:"End of time window (ISO 8601 format, required for temporal_window)"`@@ -142,102 +142,102 @@ type GraphitiSearchAction struct {DiversityLevel string `json:"diversity_level,omitempty" jsonschema:"enum=low,enum=medium,enum=high" jsonschema_description:"How much diversity to prioritize (default: medium, for diverse_results)"`MinMentions *Int64 `json:"min_mentions,omitempty" jsonschema:"title=Minimum Mentions,type=integer" jsonschema_description:"Minimum episode mentions (default: 2, for successful_tools)"`RecencyWindow string `json:"recency_window,omitempty" jsonschema:"enum=1h,enum=6h,enum=24h,enum=7d" jsonschema_description:"How far back to search (default: 24h, for recent_context)"`- Message string `json:"message" jsonschema:"required,title=Search message" jsonschema_description:"Not so long message with the summary of the search query and expected results to send to the user in user's language only"`+ Message string `json:"message" jsonschema:"required,title=Search message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the search query and expected results. Written in the engagement language declared by your system prompt."`}type EnricherResult struct {- Result string `json:"result" jsonschema:"required,title=Enricher result" jsonschema_description:"Fully detailed report or error message what you can enriches of the user's question from different sources to take advice according to this data in English"`- Message string `json:"message" jsonschema:"required,title=Enricher result message" jsonschema_description:"Not so long message with the result and short view of the enriched data to send to the user in user's language only"`+ Result string `json:"result" jsonschema:"required,title=Enricher result" jsonschema_description:"Technical-channel payload — fully detailed enrichment report (or error explanation) returned to the calling agent for further reasoning. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Enricher result message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary with a short view of the enriched data. Written in the engagement language declared by your system prompt."`}type MemoristAction struct {- Question string `json:"question" jsonschema:"required" jsonschema_description:"Question to complex search in the previous work and tasks and calls what kind information you need with full explanation context what was happened and what you want to find in English"`+ Question string `json:"question" jsonschema:"required" jsonschema_description:"Technical-channel payload — question for complex search in previous work, tasks, and calls; include full context of what happened and what you want to find. Always written in English; never translated."`TaskID *Int64 `json:"task_id,omitempty" jsonschema:"title=Task ID,type=integer" jsonschema_description:"If you know task id you can use it to get more relevant information from the vector database; it will be used as a hard filter for search (optional)"`SubtaskID *Int64 `json:"subtask_id,omitempty" jsonschema:"title=Subtask ID,type=integer" jsonschema_description:"If you know subtask id you can use it to get more relevant information from the vector database; it will be used as a hard filter for search (optional)"`- Message string `json:"message" jsonschema:"required,title=Search message" jsonschema_description:"Not so long message with the summary of the question to send and path to reach goal to the user in user's language only"`+ Message string `json:"message" jsonschema:"required,title=Search message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the question and the path to reach the goal. Written in the engagement language declared by your system prompt."`}type MemoristResult struct {- Result string `json:"result" jsonschema:"required,title=Search in long-term memory result" jsonschema_description:"Fully detailed report or error message of the long-term memory search result and as a answer for the user question in English"`- Message string `json:"message" jsonschema:"required,title=Search in long-term memory result message" jsonschema_description:"Not so long message with the result and short answer to send to the user in user's language only"`+ Result string `json:"result" jsonschema:"required,title=Search in long-term memory result" jsonschema_description:"Technical-channel payload — fully detailed long-term memory search report (or error explanation) returned to the calling agent for further reasoning. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Search in long-term memory result message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary with a short answer summary. Written in the engagement language declared by your system prompt."`}type SearchInMemoryAction struct {- Questions []string `json:"questions" jsonschema:"required,minItems=1,maxItems=5" jsonschema_description:"A list of 1 to 5 detailed, context-rich natural language queries describing the specific information you need to retrieve from the vector database. Each query should provide sufficient context, intent, and specific details to optimize semantic search accuracy. Include descriptive phrases, synonyms, and related terms where appropriate. Multiple queries allow exploring different semantic angles and improving recall. Note: If TaskID or SubtaskID are provided, they will be used as strict filters in the search."`+ Questions []string `json:"questions" jsonschema:"required,minItems=1,maxItems=5" jsonschema_description:"Technical-channel payload — 1 to 5 detailed, context-rich semantic queries against the team's long-term vector store. ALWAYS written in English regardless of the engagement language: the store is indexed in English and shared across all engagements, so non-English queries will fail to retrieve relevant stored knowledge. Each query should provide context, intent, and specific details with descriptive phrases, synonyms, and related terms; multiple queries explore different semantic angles. Note: If TaskID or SubtaskID are provided, they will be used as strict filters in the search."`TaskID *Int64 `json:"task_id,omitempty" jsonschema:"title=Task ID" jsonschema_description:"Optional. The Task ID to use as a strict filter, retrieving information specifically related to this task. Used to enhance relevance by narrowing down the search scope. Type: integer."`SubtaskID *Int64 `json:"subtask_id,omitempty" jsonschema:"title=Subtask ID" jsonschema_description:"Optional. The Subtask ID to use as a strict filter, retrieving information specifically related to this subtask. Helps in refining search results for increased relevancy. Type: integer."`- Message string `json:"message" jsonschema:"required,title=User-Facing Message" jsonschema_description:"A concise summary of the queries or the information retrieval process to be presented to the user, in the user's language only. This message should guide the user towards their goal in a clear and approachable manner."`+ Message string `json:"message" jsonschema:"required,title=Search-in-memory message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the queries or the information retrieval process. Written in the engagement language declared by your system prompt."`}type SearchGuideAction struct {- Questions []string `json:"questions" jsonschema:"required,minItems=1,maxItems=5" jsonschema_description:"A list of 1 to 5 detailed, context-rich natural language queries describing the specific guides you need. Each query should include a full explanation of the scenario, your objectives, and what you aim to achieve. Incorporate sufficient context, intent, and specific details to enhance semantic search accuracy. Use descriptive phrases, synonyms, and related terms where appropriate. Multiple queries allow exploring different aspects of the guide topic. Formulate your queries in English. Note: The 'Type' field acts as a strict filter to retrieve the most relevant guides."`+ Questions []string `json:"questions" jsonschema:"required,minItems=1,maxItems=5" jsonschema_description:"Technical-channel payload — 1 to 5 detailed, context-rich semantic queries for the team's guide vector store. ALWAYS written in English regardless of the engagement language: the store is indexed in English and shared across all engagements, so non-English queries will fail to retrieve relevant guides. Each query should include scenario context, objectives, and specific intent. Note: The 'Type' field acts as a strict filter."`Type string `json:"type" jsonschema:"required,enum=install,enum=configure,enum=use,enum=pentest,enum=development,enum=other" jsonschema_description:"The specific type of guide you need. This required field acts as a strict filter to enhance the relevance of search results by narrowing down the scope to the specified guide type."`- Message string `json:"message" jsonschema:"required,title=User-Facing Guide Search Message" jsonschema_description:"A concise summary of your queries and the type of guide needed, to be presented to the user in the user's language. This message should guide the user toward their goal in a clear and approachable manner."`+ Message string `json:"message" jsonschema:"required,title=Guide search message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the queries and the type of guide needed. Written in the engagement language declared by your system prompt."`}type StoreGuideAction struct {- Guide string `json:"guide" jsonschema:"required" jsonschema_description:"Ready guide to the question that will be stored as a guide in markdown format for future search in English"`- Question string `json:"question" jsonschema:"required" jsonschema_description:"Question to the guide which was used to prepare this guide in English"`- Type string `json:"type" jsonschema:"required,enum=install,enum=configure,enum=use,enum=pentest,enum=development,enum=other" jsonschema_description:"Type of the guide what you need to store; it will be used as a hard filter for search"`- Message string `json:"message" jsonschema:"required,title=Store guide message" jsonschema_description:"Not so long message with the summary of the guide to send to the user in user's language only"`+ Guide string `json:"guide" jsonschema:"required" jsonschema_description:"Technical-channel payload — ready guide in markdown format that will be stored in the team's vector store for future retrieval. ALWAYS written in English regardless of the engagement language: the store is indexed in English and shared across all engagements; non-English content becomes unreachable to future searches. Anonymize all sensitive data (IPs, domains, credentials, paths) using descriptive placeholders."`+ Question string `json:"question" jsonschema:"required" jsonschema_description:"Technical-channel payload — question that was used to prepare this guide; co-indexed with the guide. Always written in English; never translated."`+ Type string `json:"type" jsonschema:"required,enum=install,enum=configure,enum=use,enum=pentest,enum=development,enum=other" jsonschema_description:"Type of the guide to store; it will be used as a hard filter for search"`+ Message string `json:"message" jsonschema:"required,title=Store guide message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the guide. Written in the engagement language declared by your system prompt."`}type SearchAnswerAction struct {- Questions []string `json:"questions" jsonschema:"required,minItems=1,maxItems=5" jsonschema_description:"A list of 1 to 5 detailed, context-rich natural language queries describing the specific answers or information you need. Each query should include a full explanation of the context, what you want to find, what you intend to do with the information, and why you need it. Incorporate sufficient context, intent, and specific details to enhance semantic search accuracy. Use descriptive phrases, synonyms, and related terms where appropriate. Multiple queries allow exploring different formulations and improving search coverage. Formulate your queries in English. Note: The 'Type' field acts as a strict filter to retrieve the most relevant answers."`+ Questions []string `json:"questions" jsonschema:"required,minItems=1,maxItems=5" jsonschema_description:"Technical-channel payload — 1 to 5 detailed, context-rich semantic queries for the team's answer vector store. ALWAYS written in English regardless of the engagement language: the store is indexed in English and shared across all engagements, so non-English queries will fail to retrieve relevant answers. Each query should include the context, what you want to find, what you intend to do with the information, and why you need it. Note: The 'Type' field acts as a strict filter."`Type string `json:"type" jsonschema:"required,enum=guide,enum=vulnerability,enum=code,enum=tool,enum=other" jsonschema_description:"The specific type of information or answer you are seeking. This required field acts as a strict filter to enhance the relevance of search results by narrowing down the scope to the specified type."`- Message string `json:"message" jsonschema:"required,title=User-Facing Answer Search Message" jsonschema_description:"A concise summary of your queries and the type of answer needed, to be presented to the user in the user's language. This message should guide the user toward their goal in a clear and approachable manner."`+ Message string `json:"message" jsonschema:"required,title=Answer search message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the queries and the type of answer needed. Written in the engagement language declared by your system prompt."`}type StoreAnswerAction struct {- Answer string `json:"answer" jsonschema:"required" jsonschema_description:"Ready answer to the question (search query) that will be stored as a answer in markdown format for future search in English"`- Question string `json:"question" jsonschema:"required" jsonschema_description:"Question to the answer which was used to prepare this answer in English"`- Type string `json:"type" jsonschema:"required,enum=guide,enum=vulnerability,enum=code,enum=tool,enum=other" jsonschema_description:"Type of the search query and answer what you need to store; it will be used as a hard filter for search"`- Message string `json:"message" jsonschema:"required,title=Store answer message" jsonschema_description:"Not so long message with the summary of the answer to send to the user in user's language only"`+ Answer string `json:"answer" jsonschema:"required" jsonschema_description:"Technical-channel payload — ready answer in markdown format that will be stored in the team's vector store for future retrieval. ALWAYS written in English regardless of the engagement language: the store is indexed in English and shared across all engagements; non-English content becomes unreachable to future searches. Anonymize all sensitive data (IPs, domains, credentials) using descriptive placeholders."`+ Question string `json:"question" jsonschema:"required" jsonschema_description:"Technical-channel payload — question that was used to prepare this answer; co-indexed with the answer. Always written in English; never translated."`+ Type string `json:"type" jsonschema:"required,enum=guide,enum=vulnerability,enum=code,enum=tool,enum=other" jsonschema_description:"Type of the search query and answer to store; it will be used as a hard filter for search"`+ Message string `json:"message" jsonschema:"required,title=Store answer message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the answer. Written in the engagement language declared by your system prompt."`}type SearchCodeAction struct {- Questions []string `json:"questions" jsonschema:"required,minItems=1,maxItems=5" jsonschema_description:"A list of 1 to 5 detailed, context-rich natural language queries describing the specific code samples you need. Each query should include a full explanation of the context, what you intend to achieve with the code, and the functionality or content that should be included. Incorporate sufficient context, intent, and specific details to enhance semantic search accuracy. Use descriptive phrases, relevant terminology, and related concepts where appropriate. Multiple queries allow exploring different code patterns and use cases. Formulate your queries in English."`+ Questions []string `json:"questions" jsonschema:"required,minItems=1,maxItems=5" jsonschema_description:"Technical-channel payload — 1 to 5 detailed, context-rich semantic queries for the team's code vector store. ALWAYS written in English regardless of the engagement language: the store is indexed in English and shared across all engagements, so non-English queries will fail to retrieve relevant code samples. Each query should include the context, what you intend to achieve with the code, and the functionality or content that should be included."`Lang string `json:"lang" jsonschema:"required" jsonschema_description:"The programming language of the code samples you need. Use the standard markdown code block language name (e.g., 'python', 'bash', 'golang'). This required field narrows down the search to code samples in the desired language."`- Message string `json:"message" jsonschema:"required,title=User-Facing Code Search Message" jsonschema_description:"A concise summary of your queries and the programming language of the code samples, to be presented to the user in the user's language. This message should guide the user toward their goal in a clear and approachable manner."`+ Message string `json:"message" jsonschema:"required,title=Code search message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the queries and the programming language of the code samples. Written in the engagement language declared by your system prompt."`}type StoreCodeAction struct {- Code string `json:"code" jsonschema:"required" jsonschema_description:"Ready code sample that will be stored as a code for future search"`- Question string `json:"question" jsonschema:"required" jsonschema_description:"Question to the code which was used to prepare or to write this code in English"`+ Code string `json:"code" jsonschema:"required" jsonschema_description:"Ready code sample that will be stored for future retrieval (raw source code, not a localized message). Anonymize all sensitive data (IPs, domains, credentials, API keys) using descriptive placeholders."`+ Question string `json:"question" jsonschema:"required" jsonschema_description:"Technical-channel payload — question that was used to prepare or to write this code; co-indexed with the code in the team's vector store. Always written in English; never translated."`Lang string `json:"lang" jsonschema:"required" jsonschema_description:"Programming language of the code sample; use markdown code block language name like python or bash or golang etc."`- Explanation string `json:"explanation" jsonschema:"required" jsonschema_description:"Fully detailed explanation of the code sample and what it does and how it works and why it's useful and list of libraries and tools used in English"`- Description string `json:"description" jsonschema:"required" jsonschema_description:"Short description of the code sample as a summary of explanation in English"`- Message string `json:"message" jsonschema:"required,title=Store code result message" jsonschema_description:"Not so long message with the summary of the code sample to send to the user in user's language only"`+ Explanation string `json:"explanation" jsonschema:"required" jsonschema_description:"Technical-channel payload — fully detailed explanation of the code sample (what it does, how it works, why it is useful, libraries/tools used). ALWAYS written in English; the explanation is co-indexed with the code in the team's vector store and shared across all engagements; non-English content becomes unreachable to future searches."`+ Description string `json:"description" jsonschema:"required" jsonschema_description:"Technical-channel payload — short description of the code sample as a summary of the explanation; co-indexed in the team's vector store. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Store code message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the code sample. Written in the engagement language declared by your system prompt."`}type MaintenanceAction struct {- Question string `json:"question" jsonschema:"required" jsonschema_description:"Question to DevOps team member as a task to maintain local environment and tools inside the docker container in English"`- Message string `json:"message" jsonschema:"required,title=Maintenance task message" jsonschema_description:"Not so long message with the task and question to maintain local environment to send to the user in user's language only"`+ Question string `json:"question" jsonschema:"required" jsonschema_description:"Technical-channel payload — task description for the DevOps team member to maintain the local environment and tools inside the docker container. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Maintenance task message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the maintenance task. Written in the engagement language declared by your system prompt."`}type MaintenanceResult struct {- Result string `json:"result" jsonschema:"required,title=Maintenance result description" jsonschema_description:"Fully detailed report or error message of the maintenance result what was achieved or not with detailed explanation and guide how to use this result in English"`- Message string `json:"message" jsonschema:"required,title=Maintenance result message" jsonschema_description:"Not so long message with the result and path to reach goal to send to the user in user's language only"`+ Result string `json:"result" jsonschema:"required,title=Maintenance result description" jsonschema_description:"Technical-channel payload — fully detailed maintenance report (or error explanation) returned to the calling agent, with usage instructions for the result. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Maintenance result message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary with the result and the path to reach the goal. Written in the engagement language declared by your system prompt."`}type CoderAction struct {- Question string `json:"question" jsonschema:"required" jsonschema_description:"Question to developer team member as a task to write a code for the specific task with detailed explanation of what do you want to achieve and how to do this if it's not obvious in English"`- Message string `json:"message" jsonschema:"required,title=Coder action message" jsonschema_description:"Not so long message with the question and summary of the task to send to the user in user's language only"`+ Question string `json:"question" jsonschema:"required" jsonschema_description:"Technical-channel payload — task description for the developer team member to write code, with detailed explanation of the goal and how to achieve it when not obvious. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Coder action message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the question and the task. Written in the engagement language declared by your system prompt."`}type CodeResult struct {- Result string `json:"result" jsonschema:"required,title=Code result description" jsonschema_description:"Fully detailed report or error message of the writing code result what was achieved or not with detailed explanation and guide how to use this result in English"`- Message string `json:"message" jsonschema:"required,title=Code result message" jsonschema_description:"Not so long message with the result and path to reach goal to send to the user in user's language only"`+ Result string `json:"result" jsonschema:"required,title=Code result description" jsonschema_description:"Technical-channel payload — fully detailed code-development report (or error explanation) returned to the calling agent, with usage instructions for the result. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Code result message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary with the result and the path to reach the goal. Written in the engagement language declared by your system prompt."`}type PentesterAction struct {- Question string `json:"question" jsonschema:"required" jsonschema_description:"Question to pentester team member as a task to perform a penetration test on the local environment and find vulnerabilities and weaknesses in the remote target in English"`- Message string `json:"message" jsonschema:"required,title=Pentester action message" jsonschema_description:"Not so long message with the question and summary of the task to send to the user in user's language only"`+ Question string `json:"question" jsonschema:"required" jsonschema_description:"Technical-channel payload — task description for the pentester team member to perform a penetration test on the local environment and find vulnerabilities and weaknesses in the remote target. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Pentester action message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary summarizing the question and the task. Written in the engagement language declared by your system prompt."`}type HackResult struct {- Result string `json:"result" jsonschema:"required,title=Hack result description" jsonschema_description:"Fully detailed report or error message of the penetration test result what was achieved or not with detailed explanation and guide how to use this result in English"`- Message string `json:"message" jsonschema:"required,title=Hack result message" jsonschema_description:"Not so long message with the result and path to reach goal to send to the user in user's language only"`+ Result string `json:"result" jsonschema:"required,title=Hack result description" jsonschema_description:"Technical-channel payload — fully detailed penetration-test report (or error explanation) returned to the calling agent, with usage instructions for the result. Always written in English; never translated."`+ Message string `json:"message" jsonschema:"required,title=Hack result message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary with the result and the path to reach the goal. Written in the engagement language declared by your system prompt."`}// FlowStatusDetail controls the level of detail returned by get_flow_status.@@ -256,26 +256,26 @@ type GetFlowStatusAction struct {Detail FlowStatusDetail `json:"detail" jsonschema:"required,enum=summary,enum=tasks,enum=subtasks,enum=running,enum=planned" jsonschema_description:"Level of detail: 'summary' - flow health snapshot with status and counts; 'tasks' - all tasks with ID/status/title; 'subtasks' - all subtasks optionally filtered by task_id; 'running' - full Task→Subtask execution chain including task input and recent agent messages; 'planned' - only subtasks with status 'created' (not yet started), optionally filtered by task_id"`TaskID *Int64 `json:"task_id,omitempty" jsonschema:"title=Task ID,type=integer" jsonschema_description:"Optional task ID filter. Applies to detail=subtasks and detail=planned to narrow results to a specific task."`Verbose Bool `json:"verbose,omitempty" jsonschema:"type=boolean" jsonschema_description:"Set to true for deeper investigation: includes descriptions, inputs, results, and execution context per entry; shows up to 50 recent agent messages instead of 10."`- Message string `json:"message" jsonschema:"required,title=Status message" jsonschema_description:"Short description of what you are requesting, to show the user."`+ Message string `json:"message" jsonschema:"required,title=Status message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary describing what status information you are requesting. Written in the engagement language declared by your system prompt."`}// StopFlowAction defines arguments for the stop_flow tool.type StopFlowAction struct {- Reason string `json:"reason" jsonschema:"required" jsonschema_description:"Brief explanation of why the automation is being stopped. Included in logs and shown to the user."`- Message string `json:"message" jsonschema:"required,title=Stop message" jsonschema_description:"Short message to show the user explaining that the automation is being stopped."`+ Reason string `json:"reason" jsonschema:"required" jsonschema_description:"Engagement-log entry — brief explanation of why the engagement is being halted; surfaced in the engagement record. Written in the engagement language declared by your system prompt."`+ Message string `json:"message" jsonschema:"required,title=Stop message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary explaining that the automation is being stopped. Written in the engagement language declared by your system prompt."`}// SubmitFlowInputAction defines arguments for the submit_flow_input tool.type SubmitFlowInputAction struct {- Input string `json:"input" jsonschema:"required" jsonschema_description:"Text to deliver to the automation flow. If a subtask is waiting at an 'ask' checkpoint, this is delivered as the user's answer and execution resumes. If the flow is waiting with no active subtask, this becomes the goal for a new task — include complete context, targets, and constraints because the generator will decompose it into subtasks without further clarification."`- Message string `json:"message" jsonschema:"required,title=Input message" jsonschema_description:"Short message to show the user describing what is being submitted to the automation."`+ Input string `json:"input" jsonschema:"required" jsonschema_description:"Engagement-log entry submitted on behalf of the engagement coordinator into the running automation. If a subtask is waiting at an 'ask' checkpoint, this is delivered as the coordinator's answer and execution resumes. If the flow is waiting with no active subtask, this becomes the goal for a new task — include complete context, targets, and constraints because the generator will decompose it into subtasks without further clarification. Written in the engagement language declared by your system prompt so downstream agents and the engagement record stay consistent."`+ Message string `json:"message" jsonschema:"required,title=Input message" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary describing what is being submitted to the automation. Written in the engagement language declared by your system prompt."`}// PatchFlowSubtasksAction defines arguments for the patch_flow_subtasks tool.type PatchFlowSubtasksAction struct {TaskID int64 `json:"task_id" jsonschema:"required,type=integer" jsonschema_description:"ID of the task whose subtask plan to modify. Obtain this from get_flow_status with detail='tasks'."`- Operations []SubtaskOperation `json:"operations" jsonschema:"required" jsonschema_description:"Delta operations to apply: add (insert new subtask at a position), remove (delete by ID), modify (update title/description), reorder (move to different position). Empty array returns the current plan unchanged."`- Message string `json:"message" jsonschema:"required,title=Patch summary" jsonschema_description:"Short message to show the user describing what changes are being made to the plan."`+ Operations []SubtaskOperation `json:"operations" jsonschema:"required" jsonschema_description:"Delta operations to apply: add (insert new subtask at a position), remove (delete by ID), modify (update title/description), reorder (move to different position). Empty array returns the current plan unchanged. Each operation's title/description, when present, is an engagement-log plan entry (see operations)."`+ Message string `json:"message" jsonschema:"required,title=Patch summary" jsonschema_description:"Engagement-log entry — a 1-2 short sentence running commentary describing what changes are being made to the plan. Written in the engagement language declared by your system prompt."`}// ValidateSubtaskPatch validates the operations in a SubtaskPatchdiff --git a/backend/pkg/tools/terminal.go b/backend/pkg/tools/terminal.goindex 1a560c95..e6ffb144 100644--- a/backend/pkg/tools/terminal.go+++ b/backend/pkg/tools/terminal.go@@ -153,7 +153,7 @@ func (t *terminal) Handle(ctx context.Context, name string, args json.RawMessagecase ReadFile:result, err := t.ReadFile(ctx, t.flowID, action.Path)return t.wrapCommandResult(ctx, args, name, result, err)- case UpdateFile:+ case WriteFile:result, err := t.WriteFile(ctx, t.flowID, action.Content, action.Path)return t.wrapCommandResult(ctx, args, name, result, err)default:diff --git a/backend/pkg/tools/tools.go b/backend/pkg/tools/tools.goindex 5e792cac..b8cf6ec2 100644--- a/backend/pkg/tools/tools.go+++ b/backend/pkg/tools/tools.go@@ -1133,6 +1133,22 @@ func (fte *flowToolsExecutor) GetCoderExecutor(cfg CoderExecutorConfig) (Contextreturn nil, fmt.Errorf("searcher handler is required")}+ container, err := fte.db.GetFlowPrimaryContainer(context.Background(), fte.flowID)+ if err != nil {+ return nil, fmt.Errorf("failed to get container %d: %w", fte.flowID, err)+ }++ term := NewTerminalTool(+ fte.flowID,+ cfg.TaskID,+ cfg.SubtaskID,+ container.ID,+ container.LocalID.String,+ fte.docker,+ fte.tlp,+ time.Duration(fte.cfg.TerminalToolTimeout)*time.Second,+ )+ce := &customExecutor{flowID: fte.flowID,taskID: cfg.TaskID,@@ -1147,6 +1163,8 @@ func (fte *flowToolsExecutor) GetCoderExecutor(cfg CoderExecutorConfig) (ContextregistryDefinitions[MaintenanceToolName],registryDefinitions[MemoristToolName],registryDefinitions[SearchToolName],+ registryDefinitions[TerminalToolName],+ registryDefinitions[FileToolName],},handlers: map[string]ExecutorHandler{CodeResultToolName: cfg.CodeResult,@@ -1154,6 +1172,8 @@ func (fte *flowToolsExecutor) GetCoderExecutor(cfg CoderExecutorConfig) (ContextMaintenanceToolName: cfg.Installer,MemoristToolName: cfg.Memorist,SearchToolName: cfg.Searcher,+ TerminalToolName: term.Handle,+ FileToolName: term.Handle,},barriers: map[string]struct{}{CodeResultToolName: {},