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

{#if loading}
{:else}
{$i18n.t('settings.admin.subagents.enableSubAgents.label')}

{$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('Leave empty for unlimited')}

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

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

{#if backgroundEnabled}
{$i18n.t('background sub-agents')}

{$i18n.t('Leave empty for unlimited')}

{/if}
{$i18n.t('tool loops per sub-agent')}

{$i18n.t('Leave empty for unlimited')}

chars

{$i18n.t('Leave empty for unlimited')}

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

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