/**
 * Clone subagent — a full copy of the action agent that can spawn leaf subagents
 * (general, document_reader) but cannot spawn other clones.
 */
import { BASH, EDIT, EXECUTE_CODE, GREP, READ, SEND_MESSAGE, TASK, WRITE } from '../../../tool-names.js';
import { buildActionPrompt } from '../../modes/action/prompt.js';
import { buildCurrentSkillsSection } from '../../prompts/shared-guidelines.js';
import { assembleSystemPrompt } from '../../system-prompt.js';
import { DEFAULT_SUBAGENT_MODEL, DEFAULT_SUBAGENT_TIMEOUT_SECONDS } from '../defaults.js';
const NAME = 'clone';
const DESCRIPTION = `\
A full clone of the main agent with tools (read, bash, edit, write, grep, execute_code, task, send_message).
Can spawn general and document_reader subagents but cannot spawn other clones.
Can parallelize the summoning of this agent for independent batches of tasks that are perfectly parallelizable.`;
export const cloneAgent = {
    name: NAME,
    description: DESCRIPTION,
    get systemPrompt() {
        return assembleSystemPrompt({
            agentPrompt: buildActionPrompt(),
            skillsSection: buildCurrentSkillsSection()
        });
    },
    tools: [READ, BASH, EDIT, WRITE, GREP, EXECUTE_CODE, TASK, SEND_MESSAGE],
    excludeSubagents: ['clone'],
    model: DEFAULT_SUBAGENT_MODEL,
    thinkingLevel: 'low',
    timeoutSeconds: DEFAULT_SUBAGENT_TIMEOUT_SECONDS
};
//# sourceMappingURL=agent.js.map