Lurker News
With GPT so hot in the news right now, and seeing lots of impressive demos, I'm curious to know, how are you actively using GPT to be productive in your daily workflow? And what tools are you using in tandem with GPT to make it more effective? Have you written your own tools, or do you use it in tandem with third party tools?

I'd be particularly interested to hear how you use GPT to write or correct code beyond Copilot or asking ChatGPT about code in chat format.
But I'm also interested in hearing about useful prompts that you use to increase your productivity.

Comments (735) 221 threads

Show all comments

Showing thread 41 of 221

nomilk2 replies#
The past week I used GPT for about 80% of my commit messages. I put it in a terminal command so all I type is 'commit' and that's equivalent to: git add . && git commit -m "message" && git push.

The message is generated automatically via the GPT API.
I made it public in case anyone else wants to try/use/fork it:
https://github.com/stevecondylios/gpt-generated-commit-messa...
It's very convenient for README and docs changes; small changes whose commit message really doesn't matter, saving a bit of time and mental energy and allowing you to stay on task.

awestroke1 reply#
You and I have very different ideas of what makes a good commit message
nomilk2 replies#
I’m interested to hear more. Can you give an example or two.
stocknoob2 replies#
My take: Messages like this...

> Updated Gemfile.lock and added new dependencies (coderay, concurrent-… …ruby, crass, date, pry, method_source, public_suffix, puma, nio4r) and updated existing dependencies (rack-test, regexp_parser, xpath, nokogiri, racc, pg). Also added new files for a user authentication feature.
Describe the "what" but not the "why". Even "user auth wip" would be helpful. It's like having autogenerated code comments like:
// initialize variable i for later use in a loop
int i = 3;

Continue this thread — 2 replies

zitsarethecure1 reply#
Seems rather costly to do it this way. Why not just leave an effectively empty commit message and then use GPT to generate a summary based on the diff only when you need one?
nomilk#
> GPT 3.5 turbo engine is 1/5th of a cent per 1000 tokens

Diffs vary in length, small ones might be a few dozen words (tokens); large ones can be much more. GPT 3.5 Turbo's limit is 4096 tokens per question [1], meaning the most it can cost is 4/5ths of a cent per commit.
I average less than 10 commits per day, so if all my diffs are large, that will cost $0.08/day, or about $2.50/month.
[1] https://learn.microsoft.com/en-us/azure/cognitive-services/o...