Skip to content

Commit

Permalink
v3.0.17: finish adding aidda subcommand
Browse files Browse the repository at this point in the history
- migrate aidda code from https://github.com/stevegt/aidda/tree/main/x/x3

summary of diff --git  a/README.md b/README.md

- Add a section on Human-in-the-loop AI-driven Development (AIDDA)
- Initialize an .aidda subdirectory and .aidda/prompt file with `grok aidda init`
- Add a shortcut for git add and commit with `grok aidda commit`
- Describe how to read and act on the .aidda/prompt file with `grok aidda prompt`
- Recommend using diffview.nvim for reviewing changes before committing
- Suggest adding hotkeys for quick iteration of AIDDA commands

Comment out the main package and function in aidda3 main.go

summary of diff --git  a/v3/aidda/cmd/aidda3/main.go b/v3/aidda/cmd/aidda3/main.go

- Start a comment block around the main package import and main function definition
- Enclose the Go code in the main.go file of the aidda3 command within a multi-line comment, effectively commenting out the entire code block

Update version in grokker.go to 3.0.17

summary of diff --git  a/v3/core/grokker.go b/v3/core/grokker.go

- Update Version from "3.0.16" to "3.0.17" in grokker.go
  • Loading branch information
stevegt committed Jun 28, 2024
1 parent 40dd46a commit d7d4a68
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,19 @@ paragraph or visual selection as the input to the query and stdout
directed to the current buffer. There are some examples of this
below.

## Human-in-the-loop AI-driven Development (AIDDA)

- `grok aidda init`: create the .aidda subdirectory and initialize an .aidda/prompt file.
- `grok aidda commit`: do a `git add -A; git commit` with a generated commit message.
- `grok aidda prompt`: read the .aidda/prompt file and follow the instructions,
sending a query to the OpenAI API and overwriting the files listed
in the prompt file's Out: header.

I use this with
[diffview.nvim](https://github.com/sindrets/diffview.nvim) so I can
review, edit, or revert the changes the LLM has made before committing
them. Hotkeys in my .vimrc to run the above commands allow for quick
iteration.

## Tell me more about the `chat` subcommand

Expand Down
3 changes: 3 additions & 0 deletions v3/aidda/cmd/aidda3/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package main

/*
import (
"os"
Expand All @@ -14,3 +16,4 @@ func main() {
err := aidda.Do(args...)
Ck(err)
}
*/
2 changes: 1 addition & 1 deletion v3/core/grokker.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import (
const (
// See the "Semantic Versioning" section of the README for
// information on API and db stability and versioning.
Version = "3.0.16"
Version = "3.0.17"
)

type Grokker struct {
Expand Down

0 comments on commit d7d4a68

Please sign in to comment.