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
| Attribute | Value |
|---|---|
| Job | CliAgent |
| Config | pr_knowledge_update.json |
| ContextId | pr_knowledge_update |
| outputType | none |
| skipAIProcessing | false |
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):
diffTextdiscussionsMarkdownknowledgeDirprNumberprTitleprUrlticket
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):
knowledgeDirprNumber
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