Bug Fix Batch Development

Fixes a whole batch of related bugs in one branch: reads the batch epic context, implements all fixes with tests, and opens a single pull request.

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.

  • removeLabel — label removed from the ticket after a successful run (idempotency cleanup).

  • responseTarget: "scm" — outputs/response.md becomes the PR body/comment, so the output-format prompt is GitHub-Flavored Markdown even on Jira (conditions isResponseToScm.js / isResponseToTracker.js).

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

Attributes

AttributeValue
JobTeammate
Configbug_fix_batch_development.json
ContextIdbug_fix_batch_development
outputTypenone
skipAIProcessingtrue

Prompt snapshot

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

Actions

preJSAction: checkWipLabel.js

Check WIP Label Pre-Action

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

preCliJSAction: prepareBugFixBatchContext.js

Pre-CLI Bug-fix Batch Context Action

  • Source: agents/js/prepareBugFixBatchContext.js
  • Side effects:
    • move ticket to status (via tracker)
  • Parameters (customParams):
    • branchCreateFnPath
    • childQuestions
    • contexts
    • dryRun
    • fields
    • jql
    • parentContextFetch

postJSAction: developBugFixBatchAndCreatePR.js

Post-CLI Bug-fix Batch Development Action

  • Source: agents/js/developBugFixBatchAndCreatePR.js
  • Side effects:
    • post ticket comment (via tracker)
    • move ticket to status (via tracker)
  • Parameters (customParams):
    • branchCreateFnPath
    • childQuestions
    • contexts
    • dryRun
    • fields
    • jql
    • parentContextFetch

LLM step

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

Custom params

  • responseTarget: "scm"
  • removeLabel: "sm_bug_fix_batch_development_triggered"
  • branchCreateFnPath (used by JS action)
  • checkOpenPR (used by JS action)
  • dryRun (used by JS action)
  • childQuestions (used by JS action)
  • contexts (used by JS action)
  • fields (used by JS action)
  • jql (used by JS action)
  • parentContextFetch (used by JS action)

Generated by js/agentDocGenerator.js

View the agent config on GitHub →

Generated from bug_fix_batch_development.json in the agents repository and its human doc — edit either and the page follows. Last updated .