mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 08:13:37 +00:00
feat: implement subagents configuration management
- Added a new function to retrieve subagents configuration from settings, allowing users to enable/disable subagents and select sources for loading them. - Updated the AgentService to incorporate subagents configuration, dynamically adding tools based on the settings. - Enhanced the UI components to manage subagents, including a settings section for enabling/disabling and selecting sources. - Introduced a new hook for managing subagents settings state and interactions. These changes improve the flexibility and usability of subagents within the application, enhancing user experience and configuration options.
This commit is contained in:
@@ -504,7 +504,21 @@ export interface GlobalSettings {
|
||||
|
||||
// Subagents Configuration
|
||||
/**
|
||||
* Custom subagent definitions for specialized task delegation
|
||||
* Enable Custom Subagents functionality (loads from .claude/agents/ directories)
|
||||
* @default true
|
||||
*/
|
||||
enableSubagents?: boolean;
|
||||
|
||||
/**
|
||||
* Which directories to load Subagents from
|
||||
* - 'user': ~/.claude/agents/ (personal agents)
|
||||
* - 'project': .claude/agents/ (project-specific agents)
|
||||
* @default ['user', 'project']
|
||||
*/
|
||||
subagentsSources?: Array<'user' | 'project'>;
|
||||
|
||||
/**
|
||||
* Custom subagent definitions for specialized task delegation (programmatic)
|
||||
* Key: agent name (e.g., 'code-reviewer', 'test-runner')
|
||||
* Value: agent configuration
|
||||
*/
|
||||
@@ -707,6 +721,10 @@ export const DEFAULT_GLOBAL_SETTINGS: GlobalSettings = {
|
||||
enableSandboxMode: false,
|
||||
skipSandboxWarning: false,
|
||||
mcpServers: [],
|
||||
enableSkills: true,
|
||||
skillsSources: ['user', 'project'],
|
||||
enableSubagents: true,
|
||||
subagentsSources: ['user', 'project'],
|
||||
};
|
||||
|
||||
/** Default credentials (empty strings - user must provide API keys) */
|
||||
|
||||
Reference in New Issue
Block a user