Skip to content
Download for Mac

Creating Agents

Every agent starts in the agent editor. Open it from the agent gallery by selecting New Agent, or duplicate an existing agent and modify it.

Agent creation form with name, icon, system prompt, and tool selection fields

The top section of the editor captures what your agent is and how it appears in the gallery.

FieldPurpose
NameDisplay name shown in the gallery and @mention selector
DescriptionShort summary of what the agent does — shown on hover and in search results
IconEmoji picker — choose an icon that signals the agent’s role at a glance
ColorAccent color for the agent’s card and conversation header
CategoryGroup agents by function (e.g., “Development”, “Research”, “Writing”)
Favorites flagPin the agent to the top of the gallery for fast access
Sort orderNumeric position within a category

The system prompt is the core directive. It accepts full markdown formatting — headings, lists, code blocks, bold/italic emphasis.

Two modes control how the system prompt interacts with the conversation:

  • Append mode — adds the agent’s system prompt after any existing system-level context. Use this when agents operate within a conversation that already has instructions.
  • Replace mode — overrides the existing system prompt entirely. Use this when the agent needs full control over its behavior with no inherited context.
  • State the agent’s role in the first line: “You are a code reviewer specializing in TypeScript security patterns.”
  • Define constraints explicitly: “Do not suggest changes to test files unless the test itself is broken.”
  • Specify output format when the agent feeds into other agents or tools: “Return your analysis as a JSON object with fields: summary, issues, severity.”
  • Avoid vague directives like “be helpful” — every sentence should change the agent’s behavior.

Each agent can target a specific model and provider combination, or inherit the conversation default.

  • Explicit assignment — select a provider (OpenAI, Anthropic, Google, Ollama, or any configured provider) and a model from that provider’s available list.
  • Inherit — the agent uses whatever model the conversation is set to. Useful for general-purpose agents that should adapt to the user’s current preference.

Fine-tune generation behavior per agent:

ParameterRangeGuidance
Temperature0.0 – 2.00 for deterministic/factual, 0.3–0.7 for balanced creative work, 1.0+ for brainstorming
Max tokensModel-dependentSet explicit limits for agents that should produce concise output
Additional parametersProvider-specificTop-p, frequency penalty, presence penalty — passed through to the model API

Tools define what the agent can do beyond generating text. The tool selector shows 3 categories:

  1. Built-in tools — file operations, web search, code execution, image generation, and other capabilities bundled with QARK.
  2. MCP tools — tools exposed by connected MCP servers (databases, APIs, custom integrations).
  3. Agent-tools — other agents that have been configured as callable tools. See Agent-as-Tool for details.

Select only the tools the agent needs. A code reviewer does not need image generation. A research agent does not need file write access. Focused tool sets produce more reliable behavior.

The context strategy determines how the agent manages its context window across turns:

StrategyBehaviorBest for
NoneZero history — only the system prompt and current message are sentStateless tools, pipeline stages, Sparks
Auto-compact (default)Automatically summarizes older messages when context reaches 70% of the windowResearch tasks, long-running investigations
Last NRetains only the last N message pairsQuick iteration, code refinement
Token budgetHard token ceiling — fills from newest messages backwardCost-sensitive deployments, predictable per-turn costs
AllSends entire conversation history with no filteringShort conversations where full fidelity matters

For a complete breakdown of all six strategies, see Context Strategies.

The editor includes a test panel. Send messages to the agent in its current configuration — system prompt, tools, model, parameters — without saving. Iterate on the system prompt and tool selection until the agent behaves as expected.

Testing uses your actual model configuration. Token usage during testing counts against your provider quotas.

Once the agent performs as intended:

  1. Set the favorites flag if you want it pinned to the top of the gallery.
  2. Assign a category and sort order to place it logically among your other agents.
  3. Select Save. The agent is immediately available in the gallery and the @mention selector.

Agents can be edited at any time. Changes apply to new conversations — existing conversations retain the agent configuration they started with unless you reassign the agent.

Agent colors use hex codes (any value), and icons use emoji. Both appear in the gallery cards and conversation headers.