An agent in Rundock is a markdown file atDocumentation Index
Fetch the complete documentation index at: https://docs.rundock.ai/llms.txt
Use this file to discover all available pages before exploring further.
<workspace>/.claude/agents/<slug>.md. The filename without .md is the agent’s slug. The file has two parts: YAML frontmatter at the top, and a markdown body underneath that becomes the agent’s system prompt.
This page is the reference. For the concept, see Agents.
Field categories
Frontmatter fields fall into two categories:- Universal fields work in any tool that supports the Claude agent format. Claude Code, Rundock, and claude.ai all read them.
- Rundock-only fields are read by Rundock and silently ignored by other tools. They control how the agent looks in the org chart and how it relates to other agents.
Frontmatter fields
| Field | Type | Scope | Required | Purpose |
|---|---|---|---|---|
name | string | Universal | Yes | The agent’s slug. Should match the filename without the .md extension. |
description | string | Universal | Yes | One-line description. Required by Claude Code: if absent, the agent is silently excluded from spawn. |
model | string | Universal | No | Claude model to use. Accepts opus, sonnet, haiku, or inherit. Falls through to Claude Code’s default if omitted. |
tools | array of strings | Universal | No | Allowed tools for this agent. Read by Claude Code at spawn. Not surfaced in the Rundock UI. |
displayName | string | Rundock-only | No | Human-readable name shown in the org chart and conversation header. If omitted, Rundock title-cases the slug. |
role | string | Rundock-only | No | Short role title shown beneath the display name on the org chart card. Two to four words. |
type | enum | Rundock-only | No | One of orchestrator, specialist, or platform. Determines org chart position. Exactly one orchestrator per workspace. |
order | number | Rundock-only | No | Numeric position on the org chart among siblings. Orchestrator should be 0. Decimals (1.1, 1.2) group sub-agents under a parent. |
reportsTo | string | Rundock-only | No, but recommended for every specialist | The slug of the agent this one reports to. Drives the org chart hierarchy and the delegation chain. |
icon | string | Rundock-only | No | A single unicode character used as the agent’s avatar. Doc reserves ⬡. Avoid characters that look similar at small sizes. |
colour | string (hex) | Rundock-only | No | Accent colour for the org chart card. Hex with leading #, quoted. UK spelling: the field is colour, not color. |
prompts | array of strings | Rundock-only | No | Starter prompts shown in the conversation panel on first open. Two to four entries is typical. |
skills | array of strings | Rundock-only | No | Explicit list of skill slugs. Block form only. Inline flow-style arrays ([a, b]) parse as empty. Takes precedence over body-text scanning. |
capabilities | object | Rundock-only | No | Human-readable description for the profile page. Conventional keys: does, reads, writes, connectors. |
routines | array of objects | Rundock-only | No | Scheduled tasks. Each routine has name, schedule, prompt, and an optional description. |
maxTurns | number | Rundock-only | No | Conversation turn cap. Preserved in the file for tooling that reads it directly. Not forwarded to the spawn. |
mcpServers | array of strings | Rundock-only | No | MCP servers shown on the profile under connectors. Actual MCP selection is governed by the workspace’s .mcp.json and .claude/settings.local.json. |
disallowedTools | array of strings | Rundock-only | No | Listed for documentation. Not forwarded to the spawn: Rundock derives its disallowed-tools list from workspace mode, not from agent frontmatter. |
The capabilities object
The capabilities block is shown on the agent’s profile page. The parser accepts any string-valued keys, but the conventional structure is:The skills array
Use the block form. Inline flow-style arrays do not parse and silently fall through to body-text scanning..claude/skills/<slug>/. Slugs are case-insensitive on the match, but write them lowercase to match directory names.
The routines array
Each entry is a YAML object withname, schedule, prompt, and an optional description.
schedule field accepts only specific human-readable forms. Cron is not supported. Routines fire only while Rundock is running. Full reference at ROUTINES.md on GitHub.
The prompts array
Starter prompts shown in the conversation panel on first open. Each entry is a complete sentence written as the user would phrase it.The body
Everything after the closing--- of the frontmatter is the agent’s system prompt. Claude Code loads this verbatim when it spawns the agent.
Write the body in the second person, addressing the agent as “you”. This is what Claude Code’s spawn loader expects.
What goes in the body:
- The agent’s identity (name, role, who they work for).
- Scope: what the agent handles and what it does not.
- Delegation rules: which specialists it routes to and for what.
- Voice or tone guidance specific to the agent.
- File path conventions, output formats, and skill usage instructions.
- The “when out of scope, route back” instruction.
- The team roster. Rundock injects
YOUR TEAMMATESat spawn time. - Delegation marker syntax. Rundock injects the delegation mechanics.
- The scope boundary on what the agent can and cannot touch. Rundock and Claude Code inject this jointly.
- Platform routing instructions for Doc. Rundock injects them.
Workspace modes
Workspace mode is a workspace-level setting, not an agent-level one. There is no per-agent override.| Mode | What it changes |
|---|---|
| Knowledge mode (default) | Restricts file writes for executable file types (.js, .py, .sh, etc) so agents cannot accidentally write code in a knowledge-work workspace. Tool permission cards are shown for most operations. |
| Code mode | Removes the executable-file write restriction. Auto-approves common build and dev tools so agents can iterate on code without permission card interruptions. |
.rundock/state.json directly:
package.json, pyproject.toml, Cargo.toml, etc).
Complete worked example
Here is a complete agent file,lead-developer.md. Every field has been verified against the live agent in the workspace.
name: lead-developermatches the filenamelead-developer.md.order: 4places Dev fourth on the chart, after the orchestrator (0) and three earlier specialists.reportsTo: chief-of-staffputs Dev on the orchestrator’s direct line.colouruses the UK spelling. The hex value is quoted: YAML treats a leading#as a comment if unquoted.descriptionuses YAML’s folded-scalar syntax (>) so the description spans lines while parsing as a single string.promptsare written as the user would phrase them, not as commands.
Common pitfalls
A few specific things that go wrong silently, in roughly order of frequency. Filename does not matchname. The filename is the slug. The frontmatter’s name should match. A mismatch can cause the agent to be invisible to the orchestrator’s delegation. Keep them the same.
Two orchestrators in one workspace. Only one agent should have type: orchestrator. Rundock will surface both, but the delegation chain assumes a single root. The org chart and routing logic will pick one arbitrarily.
reportsTo points to a slug that does not exist. The reference must resolve to another agent’s slug in the same workspace. The Workspace audit catches this.
Frontmatter validates loosely. Typos in field names (displayname instead of displayName, colors instead of colour) are silently ignored. The agent loads with whatever defaults Rundock assigns.
order collisions. Two specialists with the same order value appear in indeterminate sibling order. Pick a unique integer for each top-level specialist. Use decimals for sub-agents (1.1, 1.2).
Hex colour without quotes. YAML treats a # at the start of a scalar as the start of a comment. Quote hex colours: colour: "#E87A5A", not colour: #E87A5A.
Inline skills: arrays do not parse. The flow-style skills: [a, b] parses as an empty array. Always use the block form with indented - slug lines.
Body says “you must delegate using this exact marker”. Do not write delegation marker syntax into the agent’s body. Rundock injects it at spawn time. The body should describe what to delegate and to whom, never the marker format.
No “out of scope” instruction. Every specialist should include a short instruction on what to do when a request falls outside its domain: tell the user briefly, do not name other specialists, and emit <!-- RUNDOCK:RETURN --> at the end of the response. Without this, the specialist will try to handle out-of-scope work itself.
Where to next
- The Agents concept page covers what an agent is and how delegation works at the conceptual level.
- The full source of truth is
AGENTS.mdin the Rundock GitHub repo. It includes the parser specifics and tracks any new fields as they ship.