Repository navigation
Conversation
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
feat: fleetkit v1, self-hosted agent fleet in one compose stack
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f3a1fa25fd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| def hermes_home(index, agent): | ||
| """The first Hermes agent is the default profile; the rest are named profiles.""" | ||
| return HERMES if index == 0 else HERMES / "profiles" / agent["id"] |
There was a problem hiding this comment.
Keep Hermes homes keyed to stable agent IDs
When the first Hermes agent is removed, reordered, or preceded by a newly added agent, this position-based mapping assigns the new first agent to the old root profile while moving the previous first agent to a fresh named profile. Because that profile contains persistent, write-once identity, authentication, and session data, one agent can inherit another agent's persona/history while the original loses its state; use stable ID-based profile paths and an explicit default-profile alias or migration instead.
Useful? React with 👍 / 👎.
| export TZ="${FLEET_TZ:-${TZ:-UTC}}" | ||
| [ -f /run/fleet-secrets/fleet.env ] && set -a && . /run/fleet-secrets/fleet.env && set +a |
There was a problem hiding this comment.
Source fleet.env before exporting TZ
In normal installations FLEET_TZ exists only in /run/fleet-secrets/fleet.env, but TZ is resolved before that file is sourced and is never recomputed afterward. The gateway and its supervised supercronic process therefore retain the image's UTC value, so warden jobs advertised as running in the owner's configured timezone execute at UTC times for every non-UTC fleet.
Useful? React with 👍 / 👎.
| memory_enabled() { | ||
| awk '/^memory:/{m=1;next} /^[^ #]/{m=0} m && /enabled:/{print $2; exit}' fleet.yaml | | ||
| grep -qv false |
There was a problem hiding this comment.
Honor the default-enabled memory setting
If fleet.yaml omits memory.enabled or the entire optional memory block, this pipeline receives no input and reports memory as disabled, while load_fleet() independently defaults it to enabled. Consequently COMPOSE_PROFILES excludes the database and engram services, but initialization still configures OpenClaw to use engram, leaving the defaulted memory integration unavailable; the shell-side check should use the same enabled-by-default behavior.
Useful? React with 👍 / 👎.
| ops += [{"path": f"channels.{chan}.enabled", "value": True} for chan in sorted(enabled)] | ||
| if "discord" in enabled: | ||
| ops.append({"path": "channels.discord.groupPolicy", "value": "open"}) | ||
| ops.append({"path": "bindings", "value": bindings}) |
There was a problem hiding this comment.
Remove channel accounts that leave fleet.yaml
After a user removes a channel or agent and reruns ./fleet up, this reconciliation only sets currently selected channels to enabled and never disables old channels or removes their account subtrees. Since the corresponding token normally remains in .env, the old connector remains configured and active even though fleet.yaml no longer declares it; reconcile openclaw.json by unsetting obsolete accounts and disabling channels with no remaining accounts.
Useful? React with 👍 / 👎.
Promote staging to main. Publishes ghcr.io/ani-hq/fleetkit and fleetkit-engram.
Made with Cursor