Intake

Product intake: analyzes a raw request against existing epics and stories, then creates the missing epics/stories and posts an analysis comment.

Parameters

Configured via customParams in the agent JSON or the project .dmtools/config.js (project values win).

  • checkOpenPR — when true, skip tickets that already have an open pull request for this work.
  • issuePlanning (GitHub) — { devLabel, devAssignee, plannedLabel, maxParallel }, defaults agent:dev, null, ai_planned, 1; shared with the GitHub SM rule plan-advance. When devAssignee is set (e.g. 'ai-teammate'), starting a sub-issue also assigns it to that user.

GitHub

On a GitHub tracker the created entries are sub-issues: Bugs, Epics and top-level Stories of the processed issue, Stories with a parent of their new Epic. Issue types, Story Points, priority, attachments and links do not exist there and are skipped.

  • The blockedBy order is recorded in a plan comment on every parent (hidden marker), and each parent is labeled issuePlanning.plannedLabel. The SM rule plan-advance then starts the sub-issues whose blockers are closed — in order, at most maxParallel at a time — and closes a parent when all of its sub-issues are closed. An Epic’s own blockedBy holds back all of its Stories.

  • Re-runs are safe: each sub-issue carries a hidden marker of its entry, and an entry whose sub-issue already exists (by marker, else by title) is reused. A parent is labeled planned only when every entry exists, so after a partial failure the agent is simply run again.

  • Requirement: no runtime ships a sub-issue tool yet, so sub-issues are read and attached through the REST API with the GitHub CLI — the runner needs gh installed and authenticated (GH_TOKEN).

  • responseTarget: "tracker" — outputs/response.md is posted to the tracker, so on Jira the output-format prompt is Jira wiki markup (condition isResponseToTracker.js).

Human doc: agents/docs/agents/intake.md

Attributes

AttributeValue
JobTeammate
Configintake.json
ContextIdintake
outputTypenone
skipAIProcessingtrue

Prompt snapshot

Full prompt / instruction set: agents/snapshots/intake.md

Actions

preJSAction: checkWipLabel.js

Check WIP Label Pre-Action

  • Source: agents/js/checkWipLabel.js
  • Parameters (customParams):
    • branchCreateFnPath
    • checkOpenPR
    • dryRun

preCliJSAction: fetchEpicsToInput.js

Fetch Epics To Input Pre-CLI Action

  • Source: agents/js/fetchEpicsToInput.js
  • Writes:
    • input/<KEY>/existing_epics.json
    • input/<KEY>/existing_stories.json

postJSAction: createIntakeTickets.js

Create Intake Tickets Post-Action

  • Source: agents/js/createIntakeTickets.js
  • Reads:
    • outputs/comment.md
    • outputs/stories.json
  • Side effects:
    • post ticket comment (via tracker)
    • move ticket to status (via tracker)
    • assign ticket (via tracker)
  • Parameters (customParams):
    • trackerProvider

LLM step

  • outputType: none
  • Prompt snapshot: agents/snapshots/intake.md

Custom params

  • responseTarget: "tracker"
  • branchCreateFnPath (used by JS action)
  • checkOpenPR (used by JS action)
  • dryRun (used by JS action)
  • trackerProvider (used by JS action)

Generated by js/agentDocGenerator.js