Skip to main content
An agent in Rundock is a markdown file at <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.
The parser is intentionally lenient. It accepts standard YAML for the field types listed and silently ignores fields it does not recognise. Typos in field names do not raise an error. If your agent looks generic in the org chart, check field names against the table below.

Frontmatter fields

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:
Each value is a string. The convention is plain prose, not bullet lists.

The skills array

Use the block form. Inline flow-style arrays do not parse and silently fall through to body-text scanning.
Each entry is a skill slug as it appears in .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 with name, schedule, prompt, and an optional description.
The 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.
What does not need to go in the body:
  • The team roster. Rundock injects YOUR TEAMMATES at 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.
Focus the body on the agent’s identity, voice, and unique instructions. Leave the team-shape and platform mechanics to Rundock.

Workspace modes

Workspace mode is a workspace-level setting, not an agent-level one. There is no per-agent override. Mode is set in the workspace settings drawer in the browser, or by editing .rundock/state.json directly:
When a workspace is first opened, Rundock auto-detects the likely mode by looking at the file structure (presence of 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.
Notes on this example:
  • name: lead-developer matches the filename lead-developer.md.
  • order: 4 places Dev fourth on the chart, after the orchestrator (0) and three earlier specialists.
  • reportsTo: chief-of-staff puts Dev on the orchestrator’s direct line.
  • colour uses the UK spelling. The hex value is quoted: YAML treats a leading # as a comment if unquoted.
  • description uses YAML’s folded-scalar syntax (>) so the description spans lines while parsing as a single string.
  • prompts are 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 match name. 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.md in the Rundock GitHub repo. It includes the parser specifics and tracks any new fields as they ship.