Getting Started Chat & Sessions Agents Workflow Providers Advanced Shortcuts FAQ
HexClaw Docs

Agent Management

Create custom AI roles, assign prompts and tools, and coordinate multi-agent discussions.

What Is an Agent?

An agent is an AI role inside HexClaw. Each agent maintains its own:

Create an Agent

  1. Open the Agent Management page
  2. Click "Create Agent"
  3. Enter a name, description, and system prompt
  4. Optionally bind a model, adjust temperature, and assign tools or skills
  5. Save the agent
Example: Create a "Frontend Expert" agent with a system prompt like "You are a senior frontend engineer specializing in Vue 3, TypeScript, and Tailwind CSS..." and set temperature to 0.3.

Agent Fields

FieldDescription
nameUnique identifier, typically in English
display_nameUser-facing label
descriptionShort summary of the role
system_promptCore prompt that defines behavior
modelBound model, or empty to use the default
temperatureGeneration temperature from 0 to 2, default 0.7
tools[]Available MCP tools
skills[]Enabled skills
statusactive or inactive

Chat with an Agent

On the chat page, use the agent selector above the composer to switch roles. The selected agent's system prompt is injected into the conversation automatically.

Multi-Agent Meetings

HexClaw also supports a multi-agent discussion mode:

  1. From the agent page, click "Agent Meeting"
  2. Select the agents that should participate
  3. Provide a topic and let the agents debate, respond, and summarize in turns

This mode works well for design reviews, multi-angle analysis, and brainstorming.

Role Details

Click any role card in the list to expand its full information:

Quick Start a Conversation

Click the "Chat" button on a role card:

  1. A new session is created automatically, named after the role (e.g. "Data Analyst")
  2. Chat mode switches to Agent automatically
  3. Clicking the same role again navigates to the existing session instead of creating a duplicate

Agent Route Management

Use the Agent Route tab to manage model bindings for agents:

Tip: When registering or editing, the name, Provider, and model fields are all required.

Role Definition Reference

Agent roles are defined in the backend hexclaw.yaml and can also be registered dynamically via the API:

roles:
  - name: researcher
    title: Research Assistant
    goal: Conduct in-depth research on a given topic and produce a structured report
    backstory: You are an experienced researcher skilled in information retrieval and analysis
    tools:
      - web_search
      - file_write
      - summary
    constraints:
      - All sources must be cited
      - Report must be at least 1000 words

← Chat & Sessions
Workflow Canvas →

✏️ Edit this page on GitHub