An open API service indexing awesome lists of open source software.

https://github.com/tmc/smol-dev-go

smol-dev-go, a Go implementation of smol developer
https://github.com/tmc/smol-dev-go

golang langchain langchaingo smol-developer

Last synced: 8 months ago
JSON representation

smol-dev-go, a Go implementation of smol developer

Awesome Lists containing this project

README

          

# smol-dev-go

Go implementation of [smol developer](https://github.com/smol-ai/developer)

## Installation

Prerequisites:
* Go (`brew install go`)

```shell
$ go install github.com/tmc/smol-dev-go@master
```

This will place `smol-dev-go` into `~/go/bin/`.

Alternatively, you can run it directly via:
```shell
$ go run github.com/tmc/smol-dev-go@master
```

### Options
```shell
$ smol-dev-go -h

Usage of smol-dev-go:
-concurrency int
number of concurrent files to generate (default 5)
-model string
model to use (default "gpt-4")
-prompt string
prompt to use (can be a filename)
-target-dir string
target directory to write files to
-verbose
verbose output
```

### Example Usage

Suppose you want to generate a small app that prints "Hello World" in different languages based on user input. You can run the following command:

```shell
smol-dev-go -prompt="the app prints 'Hello World' in different languages based on user input" -target-dir="./generated_code" -verbose=true
```
This command will generate the necessary files in the ./generated_code directory.