image

Clippy AI

Clippy AI (VS Code Extension) is a simple wrapper around OpenAI Codex. It allows you to send Codex your current file as well as some instructions in plain-text English. It then opens a diff view in your editor so you can easily see the suggested changes and accept or reject them.

 

Clippy AI is a simple wrapper around OpenAI Codex. It allows you to send Codex your current file as well as some instructions in plain-text English. It then opens a diff view in your editor so you can easily see the suggested changes and accept or reject them.

Clippy is free to use for the moment, because it rely’s on OpenAI’s new edit endpoint which is currently free while in testing. Once OpenAI moves that endpoint into production it’ll likely move to a pay-per-usage model like OpenAI’s other offerings.

How it Works
Just type what you want Codex to do, and get a diff back with Codex’s proposed changes. A GIF is worth a thousand words:

clippy-example-3

Installation
Install this extension from the VS Code Marketplace

Usage
Open the command palette (eg. cmd+shift+P on the mac). Search for the new command “Clippy AI: edit file or selection”. (Alternatively, we bind the “cmd+;” keyboard shortcut by default.)

When you run the command, an input box will pop up. In plain english, type the instruction you want Clippy to perform. Clippy will send your current file and the instruction to OpenAI’s “edit” endpoint and attempt to make the change to the current file. (Note that unlike Github Copilot, Clippy currently only sends the current file, not other files in your workspace.)

If no likely edit is possible, Clippy will show an error message. Otherwise, you’ll see Clippy’s suggested edits appear in a few seconds in a diff view.

Edits can also be performed on selections; simply select some text before running Clippy to run in this mode.

Using Voice Commands
Clippy AI includes experimental functionality to record commands with your voice! Note that this is highly experimental, and may not work on your machine. It has only been tested on MacOS. If you try this and nothing happens, open an issue and I’ll take a look.

 

 

FAQs

Q What is OpenAI Codex?

OpenAI Codex is a powerful AI language model that can understand and generate code in a wide range of programming languages. Codex is trained on a massive corpus of code and natural language text, which allows it to understand the intent behind programming instructions and generate high-quality code snippets.

Q How does Clippy AI use OpenAI Codex?

Clippy AI is a tool that provides a simple interface for using OpenAI Codex to suggest changes to your code. You can send Clippy AI your current file and some instructions in plain-text English, and it will use Codex to generate suggested code changes. The tool then displays a diff view in your editor, allowing you to easily see the suggested changes and decide whether to accept or reject them.

Q What are some potential use cases for Clippy AI?

Clippy AI can be useful for a wide range of programming tasks, from refactoring code to implementing new features. It can save time and reduce errors by automating some of the more tedious or repetitive coding tasks. Clippy AI can also help programmers who are less familiar with a particular language or framework to quickly generate working code based on their intent. However, it's important to note that Clippy AI is a tool that can assist with coding, but it's still up to the programmer to review and test any suggested changes before implementing them.

Write a review

Your Rating
angry
crying
sleeping
smily
cool
Browse

Your review recommended to be at least 140 characters long :)

image

image