• Stars
    star
    215
  • Rank 182,877 (Top 4 %)
  • Language
    Python
  • Created over 1 year ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GPT-powered bash commands.

gpt-do

This is a handy-dandy CLI for when you don't know wtf to do.

Instead of furiously grepping through man pages, simply use do (or ddo if on bash/zsh), and have GPT-3 do all the magic for you.

Check out the blog post here.

Demo

Click to play:

asciicast

Installation

We recommend using pipx:

$ pipx install gpt-do
$ which do
~/.local/bin/do

However you can also use brew:

$ brew install yasyf/do/do
$ which do
/opt/homebrew/bin/do

Or pip:

$ pip install gpt-do
$ which do
~/.asdf/installs/python/3.11.0/bin/do

Usage

n.b. If you're on bash or zsh, do is a reserved keyword, so you'll have to use the alias ddo.

n.b. The default model used is GPT-3. Please ensure you have sufficient credits in your OpenAI account to use it.

$ export OPENAI_API_KEY=xxx # stick this in your bash_profile
$ do amend the message of my last commit to "It works!"
This command will amend the message of the last commit to 'It works!'.
git commit --amend -m 'It works!'
Do you want to continue? [y/N]: y
[main 3e6a2f6] It works!!
 Date: Thu Dec 22 01:15:40 2022 -0800
 5 files changed, 1088 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 .gitmodules
 create mode 100644 README.md
 create mode 100644 poetry.lock
 create mode 100644 pyproject.toml

More Repositories

1

compress-gpt

Self-extracting GPT prompts for ~70% token savings
Python
220
star
2

summ

GPT-based Conversation Summarizer
Python
144
star
3

shamer

Code Coverage Gamified
Python
37
star
4

bcferries

BC Ferries Python Library
Python
12
star
5

vc

VoteCollector - Voting Platform for Dorm Room Fund
Ruby
11
star
6

python-defer

Golang-style `defer` with no decorators!
Python
10
star
7

controlio

Control your computer through SMS!
Ruby
9
star
8

sentinents

How does the world feel about X?
Python
8
star
9

hardest-game

MIT 6.867: Reinforcement Learning to beat The World's Hardest Game
Python
3
star
10

facelock

Facial recognition for your door
Python
3
star
11

schedule-cli

CLI to generate summary of Google Calendar openings.
Ruby
3
star
12

drfbot

Slack Bot for Dorm Room Fund
JavaScript
3
star
13

hifromtheotherside

Fighting the echo chamber one match at a time
Ruby
2
star
14

safemodels

Cryptographically-secure proof-of-concept for verifying the provenance of ML models.
Python
2
star
15

vcbot

Like VCs but better!
Python
2
star
16

python-secret-type

A google/rune-style `secret` type for Python to prevent accidents.
Python
2
star
17

mitclasses

[WIP] MIT Class API
Ruby
1
star
18

flask-start

Skeleton Flask and Angular App
HTML
1
star
19

drf-www

Ruby
1
star
20

HackMIT

PbNotify + extras written throughout the night
C
1
star
21

pymbta

Python Client for the MBTA Realtime API
Python
1
star
22

bitfieldable

Implement boolean attributes with integer bitfields
Ruby
1
star
23

mit-textbooks

MIT Textbooks
Python
1
star
24

PbNotify

PbNotify: The Remote Pebble Notification API
C
1
star
25

wordle-solver

Solving Wordle, one word at a time
Ruby
1
star
26

PostPushr

PostPushr combines physical delivery with the speed and universality of the cloud. An MHacks III production.
Python
1
star
27

rainbow

Subscribe to events found in documents!
Python
1
star
28

haystack-hybrid-embedding

Sparse-Dense Embeddings for Pinecone in Haystack
Python
1
star