-
Notifications
You must be signed in to change notification settings - Fork 942
Improve/describe tool documentation and make add_diagram feature opt-in by default #1824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve/describe tool documentation and make add_diagram feature opt-in by default #1824
Conversation
…_description prompt
feat: conditionally include diagram in output example
feat: add add_diagram flag in configuration.toml
feat: add add_diagram configuration option to PR description
feat: conditionally append Mermaid sequence diagram instruction in prompt
add docs about Mermaid Diagram
refactor: reorder and clarify describe tool docs, enforce opt-in default for add_diagram
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Description updated to latest commit (113229b) |
@mrT23 |
looks good, thanks for the contribution |
User description
Summary
This PR addresses qodo-ai/pr-agent#1754.
It improves the
/describe
tool documentation and modifies theadd_diagram
behavior to be opt-in (disabled by default), aligning with feature-based PR conventions and ensuring non-disruptive integration into existing workflows.Changes
/describe
tool:add_diagram
) below the main description.add_diagram
option tofalse
inconfiguration.toml
, requiring explicit activation.Design Considerations
Why the documentation was reordered
The main purpose of the
/describe
tool should be immediately clear to users. Placing the primary functionality explanation at the top helps users understand its intent before diving into optional features.Why
add_diagram
defaults to falseSince this PR introduces a new feature, we intentionally disabled it by default to prevent unexpected side effects in existing workflows. This aligns with cautious rollout practices and avoids breaking changes for existing users.
We believe users should first be informed about new features through documentation and enable them explicitly. Once the feature matures and gains confidence through maintainer feedback, its default value can be reconsidered.
Enhancement, Documentation
Description
Add
add_diagram
config flag for sequence diagramsRead
add_diagram
inpr_agent/tools/pr_description.py
Document Mermaid diagram support in
describe.md
Update prompts to conditionally include diagram output
Changes diagram
Changes walkthrough 📝
pr_description.py
Read `add_diagram` flag in PR description
pr_agent/tools/pr_description.py
add_diagram
from settings config"add_diagram"
key to prompt argumentsconfiguration.toml
Add `add_diagram` default configuration
pr_agent/settings/configuration.toml
add_diagram = false
default[pr_description]
sectiondescribe.md
Document Mermaid sequence diagram option
docs/docs/tools/describe.md
add_diagram
pr_description_prompts.toml
Enhance prompts for optional sequence diagram
pr_agent/settings/pr_description_prompts.toml
sequenceDiagram
template block