HomeArtificial IntelligenceQwen Code Leverages Qwen3 as a CLI Agentic Programming Software

Qwen Code Leverages Qwen3 as a CLI Agentic Programming Software


Qwen Code Leverages Qwen3 as a CLI Agentic Programming SoftwareQwen Code Leverages Qwen3 as a CLI Agentic Programming SoftwarePicture by Editor

 

Introduction

 
With the current surge of code-centric massive language fashions, many builders and programmers have began to depend on them to enhance productiveness. Capabilities reminiscent of code solutions, debugging, and even scaling a complete mission are actually doable with these instruments.

With technological developments, the concept of agentic AI has been launched to help our work. As an agentic method can motive about duties and resolve on the very best subsequent step to achieve a objective, it has turn into a significant device builders can undertake at the moment. By integrating code-focused fashions with an agentic framework, we will create a personalised coding assistant that understands our wants from a easy immediate.

Probably the most distinguished open-source code-centric fashions is the Qwen3-Coder, which boasts sturdy capabilities in agentic coding duties. With a robust mannequin like this, the crew then launched a CLI agentic programming device referred to as Qwen Code to help our coding work.

On this article, we are going to discover find out how to use Qwen Code in observe.

 

Qwen Code

 
Qwen Code is an agentic command-line (CLI) workflow device primarily based on the Gemini CLI that has been tailored for the Qwen3-Coder fashions. This CLI device goals to enhance improvement workflows with an clever assistant that may perceive your surroundings and act primarily based in your immediate. Moreover, the device offers methods to automate operational duties and parsing enhancements particular to the Qwen-Coder fashions.

The CLI device is free to make use of and presents two authentication choices: Qwen OAuth and an OpenAI-compatible API. The advisable technique is Qwen OAuth, which we are going to discover on this article. Qwen OAuth offers free choices, together with 2000 requests per day and a fee restrict of 60 requests per minute, with no token restrict, which we are going to benefit from.

To start out utilizing Qwen Code, you want Node.js model 20 or larger put in. You’ll be able to obtain it from the supply or use the next code.

curl -qL https://www.npmjs.com/set up.sh | sh

 

After set up, use npm to obtain the device into your surroundings with the code under.

npm set up -g @qwen-code/qwen-code@newest

 

If you happen to favor to put in Qwen Code from supply, you should utilize the next instructions:

git clone https://github.com/QwenLM/qwen-code.git
cd qwen-code
npm set up
npm set up -g .

 

With Qwen Code put in, let’s attempt it out. On this article, we are going to consider a coding mission—particularly the Native RAG recipe mission I developed. You should utilize your personal mission and code repository.

Let’s begin by activating Qwen Code utilizing the next command in your most popular listing.

 
Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool
 

The very first thing Qwen Code will ask you to do is authenticate. For this text, we are going to choose Qwen OAuth, and you may be redirected to the browser.

 
Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool

 
Choose your most popular solution to log in—there are numerous choices to authenticate your profile. Upon getting logged in, return to your CLI, and you might be able to work with Qwen Code.

Begin utilizing Qwen Code by passing a immediate into the CLI. For instance, I used the immediate: “describe the code right here”

 
Qwen Code Leverages Qwen3 as a CLI Agentic Programming ToolQwen Code Leverages Qwen3 as a CLI Agentic Programming Tool
 

Qwen Code will carry out an agentic course of and study the complete mission repository.

 
Qwen Code Leverages Qwen3 as a CLI Agentic Programming ToolQwen Code Leverages Qwen3 as a CLI Agentic Programming Tool
 

Then Qwen Code will present an entire rationalization primarily based on the immediate. On this instance, it explains the code within the listing and its function.

 
Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool
 

Utilizing Qwen Code, you may ask it to execute actions in your behalf. For instance, you can ask to enhance the code repository utilizing the immediate: “what elements of this module will be optimized?”

 
Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool
 

Qwen Code will current doable optimizations and recommended adjustments to implement.

 
Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool
 

You’ll be able to then settle for or reject the adjustments, sustaining a human-in-the-loop workflow. If you want, you may allow automated adjustments so you do not want to just accept them repeatedly.

Qwen Code may also create required information by itself, such because the necessities.txt proven under.

 

 

Lastly, you may specify a folder or information you need Qwen Code to course of. For instance, I used the immediate "@chroma_db, please clarify to me what this folder is all about". The result’s proven under:

 
Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool Qwen Code Leverages Qwen3 as a CLI Agentic Programming Tool
 

The end result exhibits the aim of every file within the listing and the way it’s used.

If you wish to enhance your Qwen Code expertise, you may create a file .qwen/settings.json and fill it with the settings you need. For instance, you may set the token restrict utilizing the next:

{
  "sessionTokenLimit": 32000
}

 

Moreover, you should utilize varied instructions, reminiscent of /assist to show all accessible Qwen Code instructions or /stats to point out the present Qwen Code session info.

That’s the fundamental utilization of Qwen Code; attempt varied prompts in your initiatives to see the way it can assist your work.

 

Wrapping Up

 
Qwen Code is an agentic CLI device that makes use of Qwen3-Coder, a strong code-focused mannequin. By adapting the device from Gemini CLI, Qwen Code can perceive your code and automate many basic duties with a easy immediate.

I hope this has helped!
 
 

Cornellius Yudha Wijaya is a knowledge science assistant supervisor and knowledge author. Whereas working full-time at Allianz Indonesia, he likes to share Python and knowledge suggestions by way of social media and writing media. Cornellius writes on a wide range of AI and machine studying subjects.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments