Story Development

Implements a story end to end: checks out the repository, writes the code and tests, and opens a pull request linked to the story.

Parameters

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

  • autoStartReview — when true, automatically trigger the PR review workflow after this agent finishes.

  • autoStartReviewConfigFile — agent config file used for the auto-started review workflow.

  • branchCreateFnPath — path to a JS hook that creates the feature branch (two-branch flow customization).

  • cacheToReleases — when enabled, caches the workspace into a git release so later runs restore instead of re-cloning.

  • autoSaveCommitMessage — optional template for the periodic WIP auto-save commit made by the timer (default {ticketKey} WIP auto-save {timestamp}; also formats.commitMessage.autoSave in the project config). Use it when the target repo’s commit-msg hook requires a tracker key, e.g. AB#{ticketKey} WIP auto-save {timestamp}.

  • checkOpenPR — when true, skip tickets that already have an open pull request for this work.

  • customStatuses — status name overrides for this workflow (maps logical statuses to project-specific names).

  • providerTransientBackoffSec — backoff seconds before the one bounded resume of the persisted fa session when the leg died in a whole-provider-chain outage (HTTP 5xx/429 “Provider chain exhausted”; default 90). The outage resume fires even with the feedback loop disabled globally; feedbackLoop.missingResponse.enabled: false opts out. When the resume fails, the reset comment names the failing models and codes instead of guessing a rate limit.

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

  • removeLabels — list of labels removed from the ticket after a successful run.

  • scmProvider — SCM provider override (github, gitlab, …) for this run.

  • targetRepository — repository override block (owner, repo, baseBranch, workingDir) — run the work against this repository instead of the project default.

  • 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/story_development.md

Attributes

AttributeValue
JobTeammate
Configstory_development.json
ContextIdstory_development
outputTypenone
skipAIProcessingtrue

Prompt snapshot

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

Actions

preJSAction: checkWipLabel.js

Check WIP Label Pre-Action

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

preCliJSAction: preCliDevelopmentSetup.js

Pre-CLI Development Setup Action

  • Source: agents/js/preCliDevelopmentSetup.js
  • Writes:
    • input/<KEY>/merge_conflicts.md
    • outputs/pr_base_branch.txt
  • Side effects:
    • post ticket comment (via tracker)
    • git push
    • git checkout
    • git merge
  • Parameters (customParams):
    • aiRepository
    • artefactRepository
    • branchCreateFnPath
    • childQuestions
    • commentMarkup
    • contexts
    • developmentMode
    • developmentModeConfig
    • developmentModeConfig.adaptive
    • developmentModeConfig.plan
    • dryRun
    • feedbackLoop
    • feedbackLoop.qualityGates.gates
    • fields
    • jql
    • parentContextFetch
    • restoreFromReleases
    • scmProvider
    • setupCommands
    • targetRepository
    • targetRepository.workingDir

postJSAction: developTicketAndCreatePR.js

Develop Ticket and Create PR Action

  • Source: agents/js/developTicketAndCreatePR.js
  • Writes:
    • outputs/response.md
  • Side effects:
    • git push
    • git checkout
    • git merge
    • post ticket comment (via tracker)
  • Parameters (customParams):
    • aiRepository
    • artefactRepository
    • autoStartReview
    • autoStartReviewConfigFile
    • cacheToReleases
    • commentMarkup
    • configPath
    • contentOutput
    • contentOutput.target
    • customStatuses
    • developmentMode
    • developmentModeConfig
    • dryRun
    • feedbackLoop
    • localTeammate
    • managedSubmodules
    • projectKey
    • providerTransientBackoffSec
    • pushSubmodules
    • removeLabel
    • removeLabels
    • removeLabels.forEach
    • scmProvider
    • smFallback
    • targetRepository
    • targetRepository.workingDir
    • trackerProvider

timerJSAction: timerAutoCommitAndSave.js

Timer JS Action — Auto-commit, push, and save session artefacts

  • Source: agents/js/timerAutoCommitAndSave.js
  • Side effects:
    • git push
    • git merge
  • Parameters (customParams):
    • aiRepository
    • artefactRepository
    • autoSaveCommitMessage
    • cacheToReleases
    • cacheToReleases.releaseNameTemplate
    • cacheToReleases.releaseTagTemplate
    • scmProvider
    • targetRepository

LLM step

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

Custom params

  • responseTarget: "scm"
  • removeLabel: "sm_story_development_triggered"
  • branchCreateFnPath (used by JS action)
  • checkOpenPR (used by JS action)
  • dryRun (used by JS action)
  • aiRepository (used by JS action)
  • artefactRepository (used by JS action)
  • childQuestions (used by JS action)
  • commentMarkup (used by JS action)
  • contexts (used by JS action)
  • developmentMode (used by JS action)
  • developmentModeConfig (used by JS action)
  • developmentModeConfig.adaptive (used by JS action)
  • developmentModeConfig.plan (used by JS action)
  • feedbackLoop (used by JS action)
  • feedbackLoop.qualityGates.gates (used by JS action)
  • fields (used by JS action)
  • jql (used by JS action)
  • parentContextFetch (used by JS action)
  • restoreFromReleases (used by JS action)
  • scmProvider (used by JS action)
  • setupCommands (used by JS action)
  • targetRepository (used by JS action)
  • targetRepository.workingDir (used by JS action)
  • autoStartReview (used by JS action)
  • autoStartReviewConfigFile (used by JS action)
  • cacheToReleases (used by JS action)
  • configPath (used by JS action)
  • contentOutput (used by JS action)
  • contentOutput.target (used by JS action)
  • customStatuses (used by JS action)
  • localTeammate (used by JS action)
  • managedSubmodules (used by JS action)
  • projectKey (used by JS action)
  • providerTransientBackoffSec (used by JS action)
  • pushSubmodules (used by JS action)
  • removeLabels (used by JS action)
  • removeLabels.forEach (used by JS action)
  • smFallback (used by JS action)
  • trackerProvider (used by JS action)
  • autoSaveCommitMessage (used by JS action)
  • cacheToReleases.releaseNameTemplate (used by JS action)
  • cacheToReleases.releaseTagTemplate (used by JS action)

Generated by js/agentDocGenerator.js

View the agent config on GitHub →

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