Skip to content

varunrandery/coder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coder

Trying to build a basic code analysis CLI (to learn Go along the way).

Getting Started

Prerequisites

  • Go (> 1.18)
  • OpenAI API key

Installation

  1. Clone the repository:

    gh repo clone varunrandery/coder
  2. Navigate to the project directory:

    cd coder
  3. Write your OpenAI API key to .env:

    echo "OPENAI_API_KEY=<key>" > .env
  4. Run with go run .!

Usage

Output of /help:

Usage:
- Type your message and press Enter to get a response.
- "/new": start a new conversation.
- "/include <file-path> <prompt>": include a file in context.
- "/session": view current-conversation token consumption.
- "/model info": view current model info.
- "/model switch <model-name>": change current model.
- "/write [-code] <file-path>": write the previous response to a file. Use -code to write the first code block only.
- "/exit": exit the program.

License

MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages