Snippets are saved prompt templates that you can reuse across many tasks without rewriting the same instruction each time. A snippet captures the prompt content once and lets you reference it by ID when creating tasks or building sequences. If you update a snippet, every task or sequence that references it picks up the change at the next execution.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/coretracker/agentswarm/llms.txt
Use this file to discover all available pages before exploring further.
What Snippets Are
A snippet has a name, a prompt body, and an optional set of template variables. The prompt body is the raw instruction text that will be sent to the agent. Variables let you parameterize the prompt so the same snippet can be used for different inputs — for example, a “write tests for a file” snippet where the file path is filled in at run time. Snippets are global — they are not scoped to a specific repository. You can use the same snippet across any repository.Creating a Snippet
Name your snippet
Give the snippet a descriptive name (up to 120 characters) so it is easy to find in the task creation form.
Write the prompt
Enter the prompt content. The maximum length is 20,000 characters. Use
{{variable_name}} placeholders anywhere you want the caller to supply a value at run time.Add variables (optional)
For each placeholder in your prompt, add a corresponding variable entry. Variable names must match the pattern
/^[A-Za-z_][A-Za-z0-9_]*$/ and have a maximum length of 128 characters.Each variable has:- type —
text(single-line) ormultiline - title — label shown in the task form (max 200 characters)
- description — helper text shown alongside the input (max 200 characters)
- defaultValue — pre-filled value (max 2,000 characters);
textvariables must not contain line breaks
Using Snippets in Tasks
When creating a task, settask_source to snippet and provide the snippet_id. The snippet’s prompt is used as the initial task prompt, and any variable values you supply are substituted before the agent receives the instruction.
When using a snippet as the task source, the
prompt field in the request carries the final prompt that will be sent to the agent (with any variable substitution already applied by the UI). The snippet_id is recorded on the task for reference but the prompt content is what actually drives execution.Using Snippets in Sequences
Sequences can include snippet steps that reference snippets by ID. At execution time, the sequence runner resolves the snippet’s current prompt content and uses it as the step’s prompt. This means you can update a snippet and every sequence that references it will automatically use the new content on the next run.Managing Snippets
All snippet management is available from the Snippets section of the navigation.List
All snippets are listed with their name and last-updated timestamp.
Edit
Open a snippet to update its name, prompt content, or variables. Changes take effect immediately for all future task and sequence runs that reference it.
Duplicate
Create a copy of an existing snippet with the name prefixed “Copy of”. Useful for creating variants without modifying the original.
Delete
Remove a snippet permanently. Existing tasks that were created from the snippet are not affected — the prompt was already captured at creation time.