Go implementation of DeepSeek Harness and self-hosted personal agent.
Go
fix(docker): publish controller and Redis on host interfaces
xyce40daaf6d79d
diff --git a/README.md b/README.mdindex 546df40..0e4290b 100644--- a/README.md+++ b/README.md@@ -155,11 +155,11 @@ a reachable Controller URL even when it is away from your home Wi-Fi.3. **Start Tailscale Serve on the computer running Controller.** Run this after starting Controller. Serve forwards HTTP requests from your tailnet to Controller on `127.0.0.1:8080`. Tailscale encrypts traffic between the devices, so this setup works without HTTPS certificates.```sh- tailscale serve --bg --http=8080 http://127.0.0.1:8080+ tailscale serve --bg --http=8081 http://127.0.0.1:8080```If your terminal cannot find `tailscale`, see the [Tailscale CLI setup guide](https://tailscale.com/docs/reference/tailscale-cli?tab=macos).-4. **Connect Go Bot on the phone.** Copy the full URL printed by Serve, such as `http://my-computer.example-tailnet.ts.net:8080`. Open it in the phone's browser to check that the go-bot Web UI loads. Then enter that URL and your go-bot account name in the mobile app and tap **Connect**. New accounts can set up a model under **Me → Models**. [Tailscale Serve guide](https://tailscale.com/docs/features/tailscale-serve)+4. **Connect Go Bot on the phone.** Copy the full URL printed by Serve, such as `http://my-computer.example-tailnet.ts.net:8081`. Open it in the phone's browser to check that the go-bot Web UI loads. Then enter that URL and your go-bot account name in the mobile app and tap **Connect**. New accounts can set up a model under **Me → Models**. [Tailscale Serve guide](https://tailscale.com/docs/features/tailscale-serve)If you already have an HTTPS endpoint that your phone can reach, enter its URL directly in the app.@@ -253,18 +253,7 @@ On the Controller machine, use the completed private profile:The launcher validates the deployment profile and starts Controller and Rediswith Compose. ECI Host instances start on demand from the configured cache-when you open an account. For a remote Controller, forward its loopback port-from your workstation:--```sh-ssh -N -L 8080:127.0.0.1:8080 user@controller-host-```--Open [http://127.0.0.1:8080](http://127.0.0.1:8080) and follow the account and-model setup in [Quickstart](#quickstart). Account names identify users without-passwords, so keep the Controller entry point private. For custom clients that-connect over a network, use your own authenticated gateway to the loopback API.-[Client access](docs/api.md)+when you open an account.## Configuration and verificationdiff --git a/README.zh-CN.md b/README.zh-CN.mdindex b343f8b..708891c 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -151,11 +151,11 @@ Tailscale 会让手机和运行 Controller 的电脑加入同一个私有网络3. **在运行 Controller 的电脑上启动 Tailscale Serve。** 等 Controller 启动后再运行下面的命令。Serve 把 tailnet 内的 HTTP 请求转发给本机的 `127.0.0.1:8080`。设备之间的流量由 Tailscale 加密,这个流程无需启用 HTTPS 证书。```sh- tailscale serve --bg --http=8080 http://127.0.0.1:8080+ tailscale serve --bg --http=8081 http://127.0.0.1:8080```如果终端找不到 `tailscale`,参阅 [Tailscale 命令行配置指南](https://tailscale.com/docs/reference/tailscale-cli?tab=macos)。-4. **在手机上连接 Go Bot。** 复制 Serve 输出的完整地址,例如 `http://my-computer.example-tailnet.ts.net:8080`。先用手机浏览器打开,确认能看到 go-bot 网页,然后在 App 填入同一个地址和 go-bot 账号名,点「连接」。新账号可以在「我的 → 模型」里配置模型。 [Tailscale Serve 指南](https://tailscale.com/docs/features/tailscale-serve)+4. **在手机上连接 Go Bot。** 复制 Serve 输出的完整地址,例如 `http://my-computer.example-tailnet.ts.net:8081`。先用手机浏览器打开,确认能看到 go-bot 网页,然后在 App 填入同一个地址和 go-bot 账号名,点「连接」。新账号可以在「我的 → 模型」里配置模型。 [Tailscale Serve 指南](https://tailscale.com/docs/features/tailscale-serve)如果已有手机可以访问的 HTTPS 入口,也可以直接在 App 中填写该地址。@@ -237,15 +237,7 @@ Host 将 OfficeCLI 和 agent-browser 的 Skill 安装到 `/root/harness/.dsh/ski```脚本校验配置,然后用 Compose 启动 Controller 和 Redis。打开账号时,Controller 才会使用-指定缓存按需启动 ECI Host。若 Controller 位于远程机器,在自己的电脑上转发其回环端口:--```sh-ssh -N -L 8080:127.0.0.1:8080 user@controller-host-```--访问 [http://127.0.0.1:8080](http://127.0.0.1:8080),按[快速开始](#快速开始)配置账号和模型。-账号名用于识别用户,当前入口没有密码认证。请保留 Controller 的回环入口。如果自定义客户端需要跨网络访问,-可由你自己的认证网关转发到该入口。 [客户端接入说明](docs/api.md)+指定缓存按需启动 ECI Host。## 配置与检查diff --git a/compose.yaml b/compose.yamlindex 7e90292..aad77ea 100644--- a/compose.yaml+++ b/compose.yaml@@ -27,7 +27,7 @@ services:extra_hosts:- "host.docker.internal:host-gateway"ports:- - "127.0.0.1:8080:8080"+ - "8080:8080"depends_on:redis:condition: service_healthy@@ -38,7 +38,7 @@ services:image: redis:8-alpinecommand: ["redis-server", "--appendonly", "yes", "--appendfsync", "always"]ports:- - "127.0.0.1:6379:6379"+ - "6379:6379"volumes:- controller-data:/datahealthcheck:@@ -54,7 +54,7 @@ networks:ingress:state:internal: true- # Docker needs a non-internal network to publish Redis to host loopback.+ # Docker needs a non-internal network to publish the Redis port on the host.redis-access:volumes:controller-data:diff --git a/docs/architecture.md b/docs/architecture.mdindex 7ed1a6c..d0af6d6 100644--- a/docs/architecture.md+++ b/docs/architecture.md@@ -92,7 +92,7 @@ ECI container storage uses the instance's writable layer for its lifetime.## Requests and lifecycle-The loopback controller proxies public Session and capability paths with the+The controller proxies public Session and capability paths with theinternal Host token. It streams responses immediately and avoids replayingan uncertain message POST. Session events have durable sequencecursors; transient model fragments remain distinct. The internal Host shutdowndiff --git a/docs/configuration.md b/docs/configuration.mdindex 54a1b26..8ea8c48 100644--- a/docs/configuration.md+++ b/docs/configuration.md@@ -10,8 +10,8 @@ accept `--env-file PATH` and require the selected file to exist. The launcherapplies explicitly set shared deployment variables, validates the runtimeconfiguration, and saves valid overrides atomically.Compose mounts the profile into Controller. Controller connects to Redis over-the internal Compose network at `redis:6379`. For local inspection, Compose-also publishes Redis at `127.0.0.1:6379` on the Docker host.+the internal Compose network at `redis:6379`. Compose publishes Controller on+port 8080 and Redis on port 6379 on the Docker host's network interfaces.The launcher runs the configuration tools with local Go when available, orbuilds a Controller image to run them in Docker. `controller check` validatesthe profile offline. `controller doctor` also performs a read-only runtime@@ -43,7 +43,7 @@ Create the directory first if passing a new path to `--init-env`.NAS uses the account-specific `/go-bot/<userId>`subdirectory. The mount target is the deployment-specific input.-An HTTPS gateway handles TLS and forwards to the loopback HTTP listener. Preserve the original `Host` and `X-User-ID` headers, set `X-Forwarded-Proto` to `https` for HTTPS requests, and forward SSE without buffering. Controller uses the request host and scheme to check browser origins. Tailscale Serve supplies the host and scheme automatically. Restrict access at the gateway or through your private network.+An HTTPS gateway handles TLS and forwards to the Controller's HTTP listener. Preserve the original `Host` and `X-User-ID` headers, set `X-Forwarded-Proto` to `https` for HTTPS requests, and forward SSE without buffering. Controller uses the request host and scheme to check browser origins. Tailscale Serve supplies the host and scheme automatically. Restrict access at the gateway or through your private network.Schedule uses the upstream defaults of 30 days and 200 records per task fordelivery history, and 60 seconds between deliveries. The optional tuning YAMLdiff --git a/mobile/README.md b/mobile/README.mdindex d9b33a6..2559a12 100644--- a/mobile/README.md+++ b/mobile/README.md@@ -26,7 +26,7 @@ npm run android## 手机连接-通过 Tailscale 连接时,从 [Tailscale 官方下载页](https://tailscale.com/download) 给电脑和手机安装客户端。两端登录同一个 Tailscale 账号,确认设备在线后,在电脑上启动 Serve,再将输出的完整 `http://…ts.net:8080` 地址填入 App。 [图文步骤](../README.zh-CN.md#手机通过-tailscale-连接)+通过 Tailscale 连接时,从 [Tailscale 官方下载页](https://tailscale.com/download) 给电脑和手机安装客户端。两端登录同一个 Tailscale 账号,确认设备在线后,在电脑上启动 Serve,再将输出的完整 `http://…ts.net:8081` 地址填入 App。 [图文步骤](../README.zh-CN.md#手机通过-tailscale-连接)如果已有受访问控制的 HTTPS 入口,在 App 中填入该入口地址即可。 [代理配置](../docs/configuration.md#runtime-storage-and-entry)