Happy New Year! We've been working hard on improving the IDE chat experience,
and we're excited to share some of the new features we've added. We also now
support self-hosted GitLab and GitHub.
New IDE Features
- We now use Gemini 1.5 Pro for the Sourcery chat - this has a large context
window and is more powerful than our previous model. We are also evaluating
the new Gemini 2.0 models and will switch when they move into general
availability.
- Introduced a new recipe for generating diagrams. You can now easily generate
Mermaid diagrams from your code - either ask in chat or choose the "Generate
diagram" recipe. The diagrams are rendered in the chat, and have buttons to
copy either the underlying code or a link to the rendered image in
mermaid.ink.
- Improved the context in the IDE chat experience - by default, the current file
is now in context when chatting, and if you select an area of code, the rest
of the file is still in context so Sourcery will know what the broader code is
about.
- Removed the "Optimise Performance" and "Simplify Code" recipes - from
feedback, we've learned that these currently aren't performing well, so we've
decided to remove and rework them. If you have any feedback on these recipes
and how to improve them, please get in touch.
- Streamlined the 'Explain Code' recipe, and gave it the ability to include
diagrams if those would be helpful for the explanation.
- Reworked the Sourcery Hub - we now link to the Sourcery dashboard for account
management when the status bar item is clicked. To access the rules settings
that were previously in the Hub, go to the Sourcery sidebar, click on the
"Settings" cog, and then click on "Rule Settings".
- Reduced size of the Sourcery binary by 20%, improving load and update times.
New GitHub/GitLab Features
- Support for self-hosted GitLab and GitHub
- We've expanded the set of commands that Sourcery can now handle in pull
comments:
@sourcery-ai title
command on a pull request to generate a title for the
PR
@sourcery-ai create issue
command on a Sourcery review comment to create
an issue from the comment
@sourcery-ai resolve
and @sourcery-ai dismiss
commands on a pull request
to resolve all Sourcery comments or dismiss all Sourcery reviews
@sourcery-ai summary
and @sourcery-ai guide
commands on a pull request
to generate a PR summary or review guide.
Bug Fixes
- stopped reviewing minified JS files to avoid false positives
- improved reactions to commands in pull comments
- fixed issue where you could request multiple reviews or chats at once