Public repo: .#loop fetches over public HTTPS, README for outsiders
ci / check (push) Successful in 8s
ci / check (push) Successful in 8s
- flake.nix: .#loop runs git+https://gitea.surma.technology/surma/sausage (SAUSAGE_FLAKE overrides it); drop loop-internal / --internal (LAN SSH). - README: clone step, LLM token requirement, loop URL and SAUSAGE_FLAKE. - ci.yml: comment without internal host name.
This commit is contained in:
@@ -10,9 +10,11 @@ change its own code.
|
||||
|
||||
## Start
|
||||
|
||||
You need [Nix](https://nixos.org/download) with flakes.
|
||||
You need [Nix](https://nixos.org/download) with flakes, and an API token for
|
||||
an LLM (OpenAI Responses or Anthropic Messages API).
|
||||
|
||||
```sh
|
||||
git clone https://gitea.surma.technology/surma/sausage && cd sausage
|
||||
nix run -- init # creates ./world and builds the agent (a few minutes)
|
||||
nix run -- run # starts the world and a console
|
||||
```
|
||||
@@ -26,12 +28,13 @@ folder as an argument, for example `nix run -- run my-world`.
|
||||
To keep a world on the newest version, run it in a loop:
|
||||
|
||||
```sh
|
||||
nix run .#loop -- my-world # or .#loop-internal (Gitea on the LAN)
|
||||
nix run .#loop -- my-world
|
||||
```
|
||||
|
||||
The loop runs `nix run --refresh git+ssh://…/surma/sausage -- run my-world`.
|
||||
The loop runs `nix run --refresh git+https://gitea.surma.technology/surma/sausage -- run my-world`.
|
||||
When the host crashes or an actor sends `@broker {"type":"exit"}`, the loop
|
||||
fetches the newest commit and starts it again. `/quit` ends the loop.
|
||||
fetches the newest commit and starts it again. `/quit` ends the loop. Set
|
||||
`SAUSAGE_FLAKE` to run another flake URL instead, for example your fork.
|
||||
|
||||
In the console:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user