DuetGPT logo

DuetGPT

Free

A conversational semi-autonomous developer assistant, AI pair programming without the copypasta. ![GitHub Repo stars](https://img.shields.io/github/stars/kristoferlund/duet-gpt?style=social)

FreeFree tier
Type
Open Source

About DuetGPT

DuetGPT is an experimental, open-source AI-powered CLI tool and semi-autonomous agent designed to assist developers with coding tasks and file system operations. It uses OpenAI's GPT-4 (or GPT-3.5-turbo) models, leveraging the newly introduced function calling capability to enable conversational two-way interactions. Developers describe tasks in natural language, and the AI responds with specific bash commands or file modification suggestions, followed by potential clarification questions. After the developer approves the commands, DuetGPT automatically executes them. The tool also serves as a capable general bash helper. Note: DuetGPT has no guardrails, so users must carefully review commands before execution.

Key Features

Semi-autonomous agent that issues bash or file modification commands based on developer input
Conversational two-way interaction with follow-up clarifications
Automatic execution of approved commands
Built on OpenAI's GPT-4 and GPT-3.5-turbo models with function calling
Works as a general bash helper
Open-source and installable via npm

Pros & Cons

Pros
  • Reduces copy-paste and manual command typing during development
  • Improves reliability by using OpenAI's function calling instead of LangChain
  • Supports iterative refinement through conversational clarifications
  • Useful for both coding and bash/CLI tasks
  • Free and open-source
Cons
  • No guardrails – requires developer to understand and approve each command before execution
  • Only works with OpenAI models (requires API key)
  • GPT-3.5-turbo-0613 does not produce great code; GPT-4 is recommended for better results
  • Experimental – may have unpredictable behavior or incomplete features
  • CLI only, no graphical interface

Best For

Refactoring code (e.g., adding inline comments, improving variable naming)Writing bash scripts (e.g., list items in a database)Searching files for specific content (e.g., find files containing a word)Generating pull request descriptions from commit messagesGeneral file system tasks and automation

FAQ

What is DuetGPT?
DuetGPT is an experimental AI-powered CLI tool and semi-autonomous agent that helps developers with coding and file system tasks through a conversational interface. It uses OpenAI's GPT models with function calling to generate and execute commands after developer approval.
How do I install DuetGPT?
Install the DuetGPT CLI tool globally using npm: npm install -g duet-gpt
What OpenAI models does DuetGPT support?
DuetGPT works with gpt-3.5-turbo-0613 (not recommended for producing good code) and gpt-4-0613.
Is DuetGPT safe to use?
DuetGPT has no guardrails. You must carefully review all commands generated by the AI before approving execution. The project explicitly warns users to understand the commands given by the AI.
How does DuetGPT interact with the developer?
After starting DuetGPT, you describe a task in natural language. The AI responds with specific bash or file modification commands and may ask follow-up questions. You then approve or modify the commands, and DuetGPT executes them automatically.