Skip to content

Implicate-dev/codex-vscode

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

vscode-codex

CI Installs

Adds a Codex completion command using the OpenAI codex API.

100% of this addon was originally generated in codex, and since then I've used it to iterate on the original extension. I've moved much around but most of it is still codex generated (including this readme).

I'd like to add many more completion options and ways of adding context. In the future I may explore AST crawling, and transforming wrapped code based on a prompt or context.

Pull Requests welcome

Installation

Outside of development, install from the VSCode Extension Marketplace.

For development, clone this repository and symlink the folder to ~/.vscode/extensions/codex-vscode or compile/run install_dev.go

See TODO for more information.

Usage

Set your openAPI apiKey in the extensions settings.

To use, run the command Codex Complete from the command palette.

Configuration

The configuration is stored in the codex section of the VSCode configuration.

{
  "codex": {
    "engine": "davinci-codex",
    "temperature": 0,
    "maxTokens": 50,
    "topP": 1,
    "frequencyPenalty": 0,
    "presencePenalty": 0,
    "apiKey": null
  }
}