Loop is a UI for interactive and autonomous agents.
- Go 1.22+
- Node.js 18+
loop/
├── main.go # entrypoint
├── embed.go # embeds ui/dist into the binary
├── cmd/ # cobra CLI commands
├── internal/server/ # HTTP server
└── ui/ # Vite + React frontend
└── dist/ # built output (generated, not committed)
Start the React dev server with HMR:
cd ui
npm install
npm run devIn a separate terminal, build and run the Go server:
cd ui && npm run build # ui/dist must exist before go build
cd ..
go run . ui # or: go build -o loop_bin . && ./loop_bin uiThe Go binary embeds ui/dist at compile time, so rebuild after UI changes:
cd ui && npm run build && cd .. && go build -o loop_bin .
./loop_bin uiloop ui # start web server on :8080
loop ui --port 3000 # custom port
loop ui -p 3000 # shorthand
| Path | Description |
|---|---|
/ |
React app |
/assets/ |
Static assets |
/health |
JSON health check |
