Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions resources/prompts/rules-block.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Knowledge>
<Rules>
{{{rulesFiles}}}
</Rules>
</Knowledge>
1 change: 1 addition & 0 deletions src/common/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ export const DEFAULT_AGENT_PROFILE: AgentProfile = {
color: '#3368a8',
description: '',
contextMemory: ContextMemoryMode.Off,
includeRules: false,
},
ruleFiles: [],
};
Expand Down
2 changes: 2 additions & 0 deletions src/common/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,8 @@
"descriptionPlaceholder": "Describe this subagent's purpose, capabilities, and specialization and when this subagent should be invoked",
"systemPrompt": "System Prompt",
"systemPromptPlaceholder": "Your subagent's system prompt goes here. This can be multiple paragraphs and should clearly define the subagent's role, capabilities, and approach to solving problems.",
"includeRules": "Include project rules",
"includeRulesInformation": "When enabled, the subagent will include project rules (AGENTS.md, .aider-desk/rules/*.md) at the start of its system prompt. This is useful when the subagent needs to follow specific project guidelines.",
"invocationMode": "Invocation",
"invocationModeOnDemand": "On demand",
"invocationModeOnDemandInformation": "Subagent is only used when explicitly requested by the user.",
Expand Down
2 changes: 2 additions & 0 deletions src/common/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,8 @@
"descriptionPlaceholder": "描述此子代理的目的、能力和专长...",
"systemPrompt": "系统提示",
"systemPromptPlaceholder": "输入此配置用作子代理时的自定义系统提示指令...",
"includeRules": "包含项目规则",
"includeRulesInformation": "启用后,子代理将在其系统提示开头包含项目规则(AGENTS.md、.aider-desk/rules/*.md)。当子代理需要遵循特定项目指南时,此选项非常有用。",
"invocationMode": "调用方式",
"invocationModeOnDemand": "按需",
"invocationModeOnDemandInformation": "子代理仅在父代理明确请求时才使用。",
Expand Down
1 change: 1 addition & 0 deletions src/common/types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ export interface SubagentConfig {
invocationMode: InvocationMode;
color: string;
description: string;
includeRules: boolean;
}

export interface BashToolSettings {
Expand Down
1 change: 1 addition & 0 deletions src/main/__tests__/mocks/agent-profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const createMockAgentProfile = (overrides: Partial<AgentProfile> = {}): A
invocationMode: InvocationMode.Automatic,
color: 'blue',
description: '',
includeRules: false,
},
isSubagent: false,
} as AgentProfile;
Expand Down
Loading