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— whentrue, skip tickets that already have an open pull request for this work.issuePlanning(GitHub) —{ devLabel, devAssignee, plannedLabel, maxParallel }, defaultsagent:dev,null,ai_planned,1; shared with the GitHub SM ruleplan-advance. WhendevAssigneeis 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
blockedByorder is recorded in a plan comment on every parent (hidden marker), and each parent is labeledissuePlanning.plannedLabel. The SM ruleplan-advancethen starts the sub-issues whose blockers are closed — in order, at mostmaxParallelat a time — and closes a parent when all of its sub-issues are closed. An Epic’s ownblockedByholds 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
ghinstalled and authenticated (GH_TOKEN). -
responseTarget:"tracker"—outputs/response.mdis posted to the tracker, so on Jira the output-format prompt is Jira wiki markup (conditionisResponseToTracker.js).
Human doc: agents/docs/agents/intake.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | intake.json |
| ContextId | intake |
| outputType | none |
| skipAIProcessing | true |
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):
branchCreateFnPathcheckOpenPRdryRun
preCliJSAction: fetchEpicsToInput.js
Fetch Epics To Input Pre-CLI Action
- Source:
agents/js/fetchEpicsToInput.js - Writes:
input/<KEY>/existing_epics.jsoninput/<KEY>/existing_stories.json
postJSAction: createIntakeTickets.js
Create Intake Tickets Post-Action
- Source:
agents/js/createIntakeTickets.js - Reads:
outputs/comment.mdoutputs/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