
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Experimental AI developer assistant CLI. Developers gives the AI tasks, AI responds with commands that the CLI performs.
Tired of copypasting code from ChatGPT? DuetGPT is an experimental AI powered CLI tool that helps developers perform tasks. The developer presents tasks to the AI, who then provides BashCommands, ReplaceCommands or follow-up Questions for clarification. The developer follows the commands given by the AI to perform the requested tasks.
The AI is instructed with a semi-formal prompt before conversation starts. See the full prompt here: boot.prompt
.
DuetGPT builds on OpenAI's GPT-4 language model and uses its conversational capabilities to engage in a two-way conversation with the developer. It also builds on the excellent langchain.js toolkit of components to improve the quality of the conversation: BufferMemory, ConversationChain
Install the DuetGPT CLI tool globally using npm:
npm install -g duet-gpt
To start DuetGPT, run the following command:
duet-gpt
You will be prompted to enter your OpenAI API key. You can find your API key on the OpenAI dashboard.
_ _ _
| | | | | |
__| |_ _ ___| |_ __ _ _ __ | |_
/ _` | | | |/ _ \ __/ _` | '_ \| __|
| (_| | |_| | __/ || (_| | |_) | |_
\__,_|\__,_|\___|\__\__, | .__/ \__|
__/ | |
|___/|_|
┌ DuetGPT
│
◆ Please enter your OpenAI API key:
│ sk-XXX…
└
Clone the repository.
Install dependencies:
npm install
npm start
As you interact with DuetGPT, it will suggest appropriate bash or patch commands based on your requests. To proceed, you'll be asked whether to run the command or not. Respond to AI questions and follow its instructions to complete your tasks.
boot.prompt
The boot.prompt
file contains the instructions that govern the interaction between the AI and the developer. It sets the ground rules for how the conversation is conducted and what each party is expected to do.
The developer presents tasks to the AI, who then provides ResponseMessages that include either a BashCommand, a PatchCommand or a follow-up Question for clarification. The developer follows the commands given by the AI to perform the requested tasks.
For the purposes of illustrating how interactions work, I chose a super simple task. Let's say you want to add .yarn/cache
to .gitignore
. Here is how to ask DuetGPT to help you with that:
_ _ _
| | | | | |
__| |_ _ ___| |_ __ _ _ __ | |_
/ _` | | | |/ _ \ __/ _` | '_ \| __|
| (_| | |_| | __/ || (_| | |_) | |_
\__,_|\__,_|\___|\__\__, | .__/ \__|
__/ | |
|___/|_|
┌ DuetGPT
│
◇ LLM and memory started
│
┌ 🤖 ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
│ │
│ My mission is to collaborate with you as a developer by providing specific bash or file modification commands to help │
│ you complete your development-related tasks, while effectively engaging in two-way interactions. │
│ │
│ │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
│
◇ What would you like to do?
│ Add .yarn/cache to .gitignore
│
◇ AI response received
│
┌ 🤖 ────────────────────────────────────────────────────────────────────────┐
│ │
│ │
│ First, I need to check if .gitignore exists in the current directory. │
│ │
│ § BASH │
│ │
│ 1 ls .gitignore │
│ │
│ │
└────────────────────────────────────────────────────────────────────────────┘
│
◇ What would you like to do?
│ Run command
│
┌ 💻 ────────────┐
│ │
│ .gitignore │
│ │
└────────────────┘
│
◇ AI response received
│
┌ 🤖 ────────────────────────────────────────────────────────────────────┐
│ │
│ │
│ I will now append '.yarn/cache' to your existing .gitignore file. │
│ │
│ § BASH │
│ │
│ 1 echo ".yarn/cache" >> .gitignore │
│ │
│ │
└────────────────────────────────────────────────────────────────────────┘
│
◇ What would you like to do?
│ Run command
│
┌ 💻 ────┐
│ │
│ OK │
│ │
└────────┘
│
◆ What would you like to do?
│ Not sure
└
Contributions are welcome! Please open an issue or submit a pull request.
If you have any questions, please feel free to reach out to me!
[0.0.9] - 2022-05-25
FAQs
Experimental AI developer assistant CLI. Developers gives the AI tasks, AI responds with commands that the CLI performs.
The npm package duet-gpt receives a total of 1 weekly downloads. As such, duet-gpt popularity was classified as not popular.
We found that duet-gpt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.