Pr Knowledge Update

Distills the outcome of a merged PR into the self-curated review-knowledge base and pushes the update.

Parameters

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

  • diffText — precomputed diff text override (instead of fetching the PR diff).
  • discussionsMarkdown — precomputed review-discussions markdown override.
  • knowledgeDir — directory of the review-knowledge base being updated.
  • prNumber — PR/MR number whose outcome is distilled into the knowledge base.
  • prTitle — title of the PR being distilled.
  • prUrl — URL of the PR being distilled.
  • ticket — ticket key override for the knowledge update.

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

Attributes

AttributeValue
JobCliAgent
Configpr_knowledge_update.json
ContextIdpr_knowledge_update
outputTypenone
skipAIProcessingfalse

Prompt snapshot

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

Actions

preCliJSAction: preCliKnowledgeUpdateSetup.js

Pre-CLI Knowledge Update Setup Action (preCliJSAction for pr_knowledge_update agent)

  • Source: agents/js/preCliKnowledgeUpdateSetup.js
  • Parameters (customParams):
    • diffText
    • discussionsMarkdown
    • knowledgeDir
    • prNumber
    • prTitle
    • prUrl
    • ticket

postJSAction: pushKnowledgeUpdate.js

Push Knowledge Update Post-Action (postJSAction for pr_knowledge_update agent)

  • Source: agents/js/pushKnowledgeUpdate.js
  • Side effects:
    • git push
    • git checkout
  • Parameters (customParams):
    • knowledgeDir
    • prNumber

LLM step

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

Custom params

  • diffText (used by JS action)
  • discussionsMarkdown (used by JS action)
  • knowledgeDir (used by JS action)
  • prNumber (used by JS action)
  • prTitle (used by JS action)
  • prUrl (used by JS action)
  • ticket (used by JS action)

Generated by js/agentDocGenerator.js

View the agent config on GitHub →

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