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
- Host: GitHub
- URL: https://github.com/tmc/smol-dev-go
- Owner: tmc
- Created: 2023-05-22T02:08:57.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-27T05:57:24.000Z (about 2 years ago)
- Last Synced: 2025-08-22T19:13:23.562Z (10 months ago)
- Topics: golang, langchain, langchaingo, smol-developer
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 69
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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.