You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,32 @@ Additional rules:
43
43
- For changes in async/stateful paths (worker lifecycle, cancellation, retrigger, recall cache behavior), include explicit race/terminal-state reasoning in the PR summary and run targeted tests in addition to `just gate-pr`.
44
44
- Do not push if any gate is red.
45
45
46
+
## Nix Flake Workflow
47
+
48
+
### Frontend Dependencies
49
+
50
+
When updating frontend dependencies in `interface/`:
51
+
52
+
1.**Update deps:** Modify `interface/package.json` or `interface/bun.lock` as needed
53
+
2.**Update the Nix hash:** Run `just update-frontend-hash`
54
+
- This builds the `frontend-updater` package with `fakeHash`
55
+
- Extracts the new hash from the build output
56
+
- Updates `nix/default.nix` automatically
57
+
3.**Verify:** Run `nix build .#frontend` to confirm the build works
58
+
4.**Commit:** Include both the dependency changes and the hash update in the same PR
59
+
60
+
**Note:** The `just update-frontend-hash` command uses the `fakeHash` pattern (standard Nix practice) where the build intentionally fails to reveal the correct hash, which is then extracted and applied automatically.
61
+
62
+
### Nix Flake Inputs
63
+
64
+
To update all Nix flake inputs (nixpkgs, crane, etc.) and regenerate `flake.lock`:
65
+
66
+
```bash
67
+
just update-flake
68
+
```
69
+
70
+
This runs `nix flake update` and updates all inputs to their latest versions.
71
+
46
72
## Architecture Overview
47
73
48
74
Five process types. Every LLM process is a Rig `Agent<SpacebotModel, SpacebotHook>`. They differ in system prompt, tools, history, and hooks.
0 commit comments