Update readme
This commit is contained in:
11
README.md
11
README.md
@@ -1,4 +1,4 @@
|
|||||||
# app-open-code-experiment
|
# app-opencode-experiment
|
||||||
|
|
||||||
[opencode](https://opencode.ai/) in a Docker container, wired to [weave](https://weave.redpencil.io) as the model provider. Default model `weave/glm-5.2`. LSP baked in for TypeScript/JS and Python.
|
[opencode](https://opencode.ai/) in a Docker container, wired to [weave](https://weave.redpencil.io) as the model provider. Default model `weave/glm-5.2`. LSP baked in for TypeScript/JS and Python.
|
||||||
|
|
||||||
@@ -22,11 +22,9 @@ docker compose up -d
|
|||||||
docker compose exec opencode opencode
|
docker compose exec opencode opencode
|
||||||
```
|
```
|
||||||
|
|
||||||
Or a one-shot against a registered model:
|
## TUI
|
||||||
|
|
||||||
```
|
In the TUI, type `/models` to select a model from the registered weave models.
|
||||||
docker compose exec opencode opencode run --model weave/glm-5.2 "..."
|
|
||||||
```
|
|
||||||
|
|
||||||
## Layout
|
## Layout
|
||||||
|
|
||||||
@@ -36,5 +34,4 @@ docker compose exec opencode opencode run --model weave/glm-5.2 "..."
|
|||||||
|
|
||||||
## Caveats
|
## Caveats
|
||||||
|
|
||||||
- **No model discovery on weave.** I haven't found a way to discover models on weave.redpencil.io, so they are configured explicitly in `opencode.json` (see `provider.weave.models`). When the catalog changes, update that list by hand.
|
- Copy from the TUI is weird over Docker: To copy text out of the opencode TUI running in a container, I have to do `Shift`+click to select the text, then `Ctrl`+`Shift`+`C` to copy. Plain `COPY` doesn't work.
|
||||||
- **Copy from the TUI is broken over Docker.** `COPY` from the TUI isn't working properly in a container. I've only found messy workarounds, no real solution yet - kept things simple here instead.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user