Antfarm Zig Updates - #85
Merged
Merged
Conversation
Build Zig antfly by default while keeping build-go for the legacy Go binary. Serve Antfarm from the Zig swarm runtime, wire /ml/v1 and /termite/ml/v1 model APIs, and remove the R2 registry proxy/UI flow. Deprecate registry_url compatibility fields and rebuild the embedded Antfarm assets.
Contributor
real failures |
# Conflicts: # zig/build.zig # zig/pkg/termite/build.zig
ajroetker
reviewed
May 21, 2026
ajroetker
reviewed
May 21, 2026
ajroetker
reviewed
May 21, 2026
| return true; | ||
| } | ||
|
|
||
| fn mlxRootAvailable(b: *std.Build, target: std.Build.ResolvedTarget, root: []const u8) bool { |
Contributor
There was a problem hiding this comment.
fwiw i turned off mlx and onnx binding by default, don't know if that's applicable here
Contributor
Author
There was a problem hiding this comment.
Updated both Zig build surfaces so MLX and ONNX are opt-in instead of auto-enabled
ajroetker
reviewed
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the Zig Antfly runtime the default Antfarm path and removes the old Cloudflare R2 registry
assumptions from the Antfarm model experience. Antfarm now reads live model inventory from the
embedded Termite
/ml/v1/modelsAPI, while the Go binary remains available only through the explicitbuild-gotarget.Changes
make buildto build the Zigantflybinary by default.make build-go./ml/v1and/termite/ml/v1routing in the Zig runtime./registry/ index.jsonregistry.registry_urlconfig field.compatible local MLX install, while explicit
-Dmlx=truefails early with a clear error.Validation
make -C ./zig buildzig build lib-common-config-testGOEXPERIMENT=simd go test ./src/commonmake -C ./zig openapi-checkmake -C ./zig build ZIG_BUILD_FLAGS=-Dmlx=trueverified the intentional early MLX compatibilityfailure path
antflyruntime, without Docker