Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to use Codeium’s AI coding assistant with Bitbucket

This blog was written by Jeff Wang, Head of Business at Codeium. Please tag @Jeff Wang - Codeium when leaving comments.

We frequently review the latest code AI apps and found Codeium to have widest range of support for IDEs and languages among the tools we tested. Our developers found the suggestions and chat to be fast and accurate. Codeium can also directly connect to your Bitbucket repositories for better context awareness for both autocomplete and chat.

Give it a try.

AI coding assistants are more popular than ever, with some companies claiming that more than half their new code is being generated by coding assistants.

With recent announcements of GitHub Copilot integrating features such as code base personalization and GPT4 chat, Bitbucket users may feel like they are missing out on this wave of AI. That’s not true. Coding assistants work in the IDE, so any Bitbucket customer can integrate an AI coding assistant into their IDE and connect to their repos for better contextual assistance.

In this blog, we’ll walk you through how to use Codeium’s AI tool with your Bitbucket repos. Codeium integrates with all the popular IDEs.

Introduction to Codeium

Codeium is one of the fastest moving AI startups in the coding assistants space. Having reached 300k monthly active users, and with major enterprise customers such as Dell, Anduril, and others, it’s a trusted AI platform. Codeium is an Atlassian partner and you can get the app in the Atlassian marketplace. 

  • Codeium supports over 40 IDEs and 70 programming languages, and offers features such as chat, autocomplete, and context awareness of your code base. 
  • We have a SaaS option and a self-hosted option for Data Center customers. 
  • With Codeium Enterprise, we provide analytics on how much code was generated by the app. Many companies struggle to measure the value that AI platforms provide, and here at Codeium, this is top of mind.

IP Security

Codeium takes IP security very seriously. We trains AI models on code that can be used without any copyright restrictions. And when we connect to your repos, we don’t retain any data. If you’re using our self-managed tool, all your code remains fully air-gapped in your environment.

In this blog, we’ll cover how Codeium works with Bitbucket to deliver an end to end AI assisted experience. 

Using Bitbucket and Codeium

Let’s say you open up the Jira issue assigned to you, and you have no idea where the code is. 

From this Jira issue, let’s checkout the branch from Bitbucket:

codeium1.png

I’ve opened up my VS Code and have switched to this new branch, but have no idea where this file is! As you can see I am greeted by Codeium Chat inside my IDE: 

codeium2.png

Codeium Search

Because Codeium is integrated into your IDE, it can index your Bitbucket code locally for any chat or auto-completions. You can even connect your Bitbucket repo to Codeium Enterprise for fine-tuning via read-access tokens. For this example, I’ve asked my codebase on Bitbucket directly, “where is my contact form located?”

It has returned the correct result and a few other suggestions:

codeium3.png

Codeium Autocomplete

Amazing! Now I can simply just start typing what I want:

codeium5.png

All I need to do is hit “Tab” to accept suggestions, or cycle through multiple selections with Option/Alt + [

codeium6.png

After only writing a comment, I was able to accept the rest of the suggestions. This is why hear of metrics such as coding assistants are writing more than half of the code being produced! Better yet, I did not have to reference other websites to look up Regex at all.

Context Awareness

Codeium has context awareness across your entire Bitbucket repo. I can simply type an “@” symbol in the chat to chat about my Functions, Classes, or even other Repos!

codeium7.pngcodeium8.png

From this screenshot, you can see that the chat was able to give me a solution when asked about precompiling the regex in the code that was accepted.

codeium9.png

Codeium Chat

Finally, I can round out my code by generating unit tests or even docstrings with the click of a button or using chat.

codeium10.png

To summarize, Codeium provides context awareness and search, along with many advanced chat features that already work well with Bitbucket today. Not only that, we were able to use chat to further bolster our code with Unit Tests and Docstrings. 

Try Codeium today

To use Codeium with Bitbucket on your favorite IDEs, find us at on the Atlassian marketplace

3 comments

Itamar Friedman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 16, 2023

While Codeium offers a tool for the IDE,
there is a real BitBucket tool called PR-Agent by another company called CodiumAI:
https://github.com/Codium-ai/pr-agent

PR-Agent works directly with BitBucket.

PR-Agent enables dev teams to make the pull request creation and review highly efficient and much less painful, exploiting various of our GenAI-empowered commands, including `/review`, `/describe`, `/generate_labels`, and more. 
It supports all major programming languages.
Once installing the PR-Agent, you can call the agent in the pull request conversation or bitbucket pipelines.

Disclaimer:
I'm the co-founder of CodiumAI

Like # people like this
Noushin Kananian
Contributor
January 24, 2024

Congratulations 

zubair khalid March 7, 2024

Trader AI employs cutting-edge algorithms and artificial intelligence to analyze market trends, execute trades, and optimize investment strategies. This advanced technology harnesses data-driven insights, providing users with a powerful tool to navigate the dynamic world of financial markets efficiently and profitably.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events