Skip to main content
Version: 4.0

3.1 Agents

An agent is an AI assistant that works with your DCH data. You give it instructions, the memories it may read, the skills and tools it may use, and the model it runs on. Once published, you talk to it in Sessions.

Open M4AI › Agents. The list shows each agent's name, description, versions and when and by whom it was last updated. Search by title, slug or description, or filter by whether an agent has a draft or a published version. Click an agent to open its draft, or its latest version if it has no draft.

The Agents list with three published test agents

Create an agent​

Choose New agent and pick how to start:

  • Build with AI (recommended): describe the task, and AI proposes a setup for you to review.
  • Configure manually: choose the setup yourself.

Enter the agent's name and describe its task and the expected result. Under Advanced you can change the slug, which DCH derives from the name: up to 128 lower-case letters, digits and hyphens. Choose Create draft & continue. The agent is created as draft v1, and the guided setup starts.

The name, slug and description cannot be changed after creation.

The New agent window with Build with AI selected, and the fields for the agent's name and task

Build with AI​

Build with AI drafts the agent's setup for you: its instructions, and which memories, skills and tools to attach. You find it in the header of a draft, in the guided setup, and in the agent overview and instructions panels.

Describe the agent's goal and choose Build proposal. The builder may ask questions; answer them, or ask for changes, in the conversation. The proposal shows the instructions, each component it wants to add, keep or remove, with a reason, and any assumptions or points that need your attention. Choose Apply to draft to take it over; this saves a new revision of the draft. Nothing changes before you apply.

Guided setup​

The guided setup takes you through the draft step by step:

  1. Purpose: what the agent should accomplish, written as its instructions.
  2. Memories: the context the agent needs.
  3. Capabilities: its skills, tools and child agents.
  4. Model & runtime: how it runs.
  5. Review: a summary of the setup, from which you can test the draft in Sessions or publish it.

Each step can be filled in manually or with AI. Moving between steps saves the draft. Choose Open visual workspace to leave the guided setup, and Guided setup in the header to return to it.

The workspace​

The workspace shows the agent in the middle, surrounded by its six capabilities. The lines show how they relate: the agent follows its instructions, reads from its knowledge, can load skills, can call tools, can delegate to child agents and runs on its model. Their colour shows the state: configured, not configured, needs review or blocks publishing.

The workspace of a published agent: the agent card in the middle, with Instructions, Knowledge, Skills, Tools, Child agents and Model & runtime around it

Click a capability to configure it in a panel on the right. Show agent relationships switches to a view of the agent's child agents, and Agent overview shows its readiness, version and details.

For a draft, a strip above the canvas shows how much of the required setup is complete and suggests the next step. Setup guide lists every capability with its state.

Changes in the workspace are kept until you choose Save draft. Each save creates a new revision of the draft. Attaching or detaching memories and skills saves the draft immediately.

Versions​

Agents have draft and published versions. Use the version selector in the header to switch between them.

  • Publish opens a summary of what will be locked: the instructions and the exact versions of the memories, skills, child agents and model configuration. When you confirm, DCH validates the draft and compiles it into a fixed artifact; if validation fails, the draft stays unchanged. Publish is only available once the draft is saved and nothing blocks publishing; hover over it to see why not.
  • To change a published agent, choose Create draft. The draft starts as a copy of the published version. An agent has at most one draft at a time.

Published versions stay available, and each keeps what it pinned. Compiled artifact in the ⋮ menu shows what actually runs for a version: its prompt, its frozen tool definitions and its content hash.

Run an agent​

Choose Run agent on a published version, or Run draft to test a saved draft. Once you send your first message, the conversation continues in Sessions.

A draft runs at its last saved revision, so save your changes before you test them.

Delete an agent​

Choose Delete agent to permanently delete the agent with all its versions, conversations and execution history. The confirmation shows which other agents use it as a child agent: they keep the reference and cannot be published or run until you remove it from them. An agent with active runs cannot be deleted until the runs have finished.