{$i18n.t('settings.admin.subagents.title')}

{#if loading}
{:else}

{$i18n.t( 'Allow the AI to delegate tasks to sub-agents. Each sub-agent creates a real chat with full tool access. Uses additional LLM calls.' )}

{#if enabled}
{$i18n.t('simultaneous sub-agents')}

{$i18n.t('settings.admin.subagents.enableBackgroundSubAgents.description')}

{#if backgroundEnabled}
{$i18n.t('background sub-agents')}
{/if}
{$i18n.t('tool loops per sub-agent')}
chars

{$i18n.t('settings.admin.subagents.systemPrompt.description')}

{/if}
{/if}
{#if !loading}
{/if}