Skip to main content

Overview

When you have many skills loaded, auto-selection uses embedding similarity to pick only the most relevant ones for each task. This keeps the agent’s system prompt lean and focused.

Usage

How It Works

  1. Skill descriptions and the task description are converted to embedding vectors
  2. Cosine similarity is computed between each skill’s description and the task
  3. The top max_skills skills are included in the system prompt
Without auto-select, all loaded skills appear in the system prompt regardless of relevance.
If auto-select fails (e.g. embedding provider error), it falls back to returning the first max_skills skills in load order.

Parameters