fx is open source and developed in public at vercel-labs/fx. The fx team at Vercel maintains it and makes most changes, and pull requests from outside contributors are welcome and go through the same CI checks. Only maintainers can push branches to the repository, add labels, or start optional CI runs. Outside contributors work from a fork, and a maintainer handles those steps for them.
Code conventions live in AGENTS.md: which module owns which behavior, how fx uses Zig 0.17, how permissions and tests are structured, and the rules coding agents follow. Read it before you change code, whether you write the change yourself or with a coding agent.
Run /feedback inside fx to open the feedback form, or open an issue with the bug report template. Describe what you did, what you expected, and what happened instead. If something looks wrong in your terminal, run /trace to create a private diagnostic trace. Share it as a link from fx.sh/share, which hides private data before upload. Or zip the trace file and attach the .zip; GitHub does not accept .jsonl files. On macOS, /trace copies the file itself to the clipboard, so paste it on fx.sh/share rather than in the issue. Issues are public, so review the trace and remove secrets before you post it.
Report security vulnerabilities through the contact page, not in a public issue.
You need:
- Zig 0.17.1, the version CI builds with. Check
zig versionbefore you build. Zig 0.17.0 still builds fx without a warning, but CI tests only 0.17.1, and the PGSO pipeline stops on any other version. A Zig older than 0.17 fails insidebuild.zigwith errors such asno field or member function named 'poisonCache'that don't mention the version. - Bun and tmux for the end-to-end tests.
- hyperfine, if you want to run the startup benchmark locally.
The unit tests and most end-to-end tests don't call a model. To try a change that does, sign in as the README describes or set AI_GATEWAY_API_KEY.
Clone the repository, or your fork if you're an outside contributor, and build fx:
git clone https://github.com/vercel-labs/fx.git
cd fx
zig build
./zig-out/bin/fxTest your changes with ./zig-out/bin/fx from your checkout. A bare fx runs whichever copy comes first on your PATH, which is usually an installed release that doesn't include your change.
fx keeps its settings and sessions in ~/.fx, and on macOS it stores API keys and OAuth credentials in your Keychain. To try a change against an empty profile without touching your own, give fx a temporary home directory and turn off Keychain storage:
HOME="$(mktemp -d)" FX_DISABLE_KEYCHAIN=1 ./zig-out/bin/fxGoogle AI Ultra plan sign-in needs the secret of fx's Google OAuth client, which is not in the repository, so a build from a checkout can use Google only with a Gemini API key. Forks and redistributions of fx must not reuse fx's OAuth client. Register your own Desktop app client in your own Google Cloud project, put its client ID in src/core/auth/google_oauth.zig, and give its secret to the build with -Dgoogle-oauth-client-secret=..., the FX_GOOGLE_OAUTH_CLIENT_SECRET environment variable, or a .google-oauth-client-secret file in the checkout. Google gives a new client plan sign-in only after it approves that client.
Start each change from the latest main, and keep each pull request to one change. Put unrelated formatting, renames, and cleanup in their own pull requests, so each one can be reviewed and reverted on its own.
Before you build a feature, answer the questions in the Adding a Feature section of AGENTS.md. They ask which module owns the behavior, what its typed contract is, whether it needs persistence or JSON output, which docs and tests land with it, and how its end-to-end tests are classified for PGSO. If you can't answer them yet, settle the design before you write code. Outside contributors can propose a design in an issue first.
These rules apply to every change:
src/main.zigonly wires runtimes together. Feature logic and state belong to the module that owns them.- Sensitive tool behavior goes through the permission system in
src/core/permissions/permissions.zig. Don't add a path around it. - fx has no dependencies outside the Zig standard library. Talk to the maintainers before you add one.
- Don't commit generated state from
.fx/,.zig-cache/, orzig-out/. - Don't commit home-directory paths, real team IDs, or personal project slugs.
scripts/check-public-surface.shrejects them in CI, so use/Users/example/in fixtures. - Don't document behavior that doesn't exist yet.
If a coding agent helps with your change, point it at AGENTS.md. Any prose the agent writes for your contribution, including pull request titles and descriptions, commit messages, documentation, and issues, must follow the technical-writer skill in .fx/skills/technical-writer/.
Commands, flags, settings, environment variables, slash commands, and --json output are what people and scripts rely on, so fx gives them all one shape. Someone who knows git and the Unix command line should be able to guess what a control is called, where it goes, and which source wins when two disagree:
- Each concept has one name, written in each surface's case:
permission_modein settings and JSON,--permission-modeas a flag, andFX_PERMISSION_MODEas an environment variable. - A subcommand is an action, a flag changes one run and never saves, a setting persists, and an environment variable carries context from CI, a wrapper script, or a test.
- Results go to stdout and diagnostics to stderr,
--jsonfields are only added, and a usage error exits with 2. - A rename keeps the old spelling working with a warning that names its replacement and the release that drops it.
The fx-cli-shape skill in .fx/skills/fx-cli-shape/ has the full rules, the names that are already decided, and a script that lists the controls a diff adds or removes. Read it before you add, rename, or remove a control, and point your coding agent at it too. CI's python3 -m scripts.check_cli_shape fails when code reads an FX_* variable, compares a flag by hand, or parses a setting that its registries don't list. A new top-level command, a new stable environment variable, or a new project-safe setting needs a maintainer's approval in the pull request.
Run the tests that cover your change, build fx, and then use ./zig-out/bin/fx to exercise the change yourself. Tests don't always start the full runtime, attach a terminal, or spawn background threads, so a passing suite can still miss a startup crash or a rendering regression. Confirm that fx didn't abort, that stderr is clean, and that the behavior matches what you'll describe in the pull request.
zig fmt src/
zig build
zig build test
cd tests/e2e
bun install
bun test cli.test.tsZig unit tests sit in test blocks inside the source file they cover, and zig build test runs all of them. CI checks formatting with zig fmt --check src/. The end-to-end tests run the binary at zig-out/bin/fx, so build before you run them. Run only the end-to-end files that cover your change, because CI runs the whole suite on every push. The tui-* files drive fx inside tmux.
Every root tests/e2e/*.test.ts file needs an entry in the first three files below, and in the last two only when it branches on the platform. CI fails when a required entry is missing or stale:
| File | Entry |
|---|---|
scripts/pgso/corpus.json |
Exactly one classification: training, verification-only, or intentional exclusion |
scripts/pgso/tests/test_corpus.py |
The same file in the matching training, verification, or exclusion list, in corpus.json order |
tests/e2e/ci-shard-weights.json |
A weight that balances the eight CI shards: the file's run time on CI in seconds |
tests/e2e/macos-platform-tests.json |
Needed only when the file branches on process.platform or platform() being darwin or linux |
tests/e2e/macos-shard-weights.json |
Needed only for a file listed in macos-platform-tests.json: the file's macOS run time on CI in seconds, which balances the two macOS shards |
The corpus drives the macOS arm64 PGSO build, which profiles fx on the training files, optimizes the code they exercise for speed, and compiles the functions they show to be cold for size. Classify a file as training when it covers common or performance-sensitive behavior. Use verification-only for correctness, recovery, security, or rare behavior that the build must pass without treating it as hot. Use an intentional exclusion only for coverage that is nondeterministic, needs the network or credentials, involves sound, or tests the harness itself, and record the reason. A test added to an existing file inherits that file's classification, and removing a file means removing its entries.
fx prints into your terminal's scrollback instead of taking over the screen, so many rendering bugs appear only at certain sizes or after a resize. Reproduce a bug at the lowest layer that catches it:
-
A Zig unit test in
src/ui/resize_tests.zigdrives the transcript renderer against an in-process virtual terminal, with no TTY or signals. These tests are the fastest and run inzig build test. -
A tmux test in
tests/e2e/tui-resize.test.tscovers bugs that need a real terminal and a realSIGWINCH.tests/e2e/tmux-helpers.tsprovidesresizeWindow,capturePaneGrid, andcapturePaneEscapes. -
A recorded tape captures a session someone has already seen go wrong. Run fx with
FX_RECORD=/tmp/bug.fxtape, or withFX_DEBUG_RECORD=1to write a private tape under~/.fx/recordings/, then replay it without a terminal:./zig-out/bin/fx replay /tmp/bug.fxtape ./zig-out/bin/fx replay /tmp/bug.fxtape --golden /tmp/bug.txt
--goldenwrites the final screen to a file that you can check in as the expected result.
When a tmux test or a tape exposes a bug, reproduce it as a Zig unit test before you fix it, so the fix lands with its regression test.
A fuzz test is a test block that calls std.testing.fuzz. tests/fuzz/targets.json lists each one as a target, with its exact test name and the module that holds it. zig build test runs every fuzz test once on its inline seeds and on each file in tests/fuzz/corpus/<target>/. zig build fuzz builds only the fuzz tests, and with --fuzz Zig searches for new inputs that fail:
zig build fuzz -Dfuzz-target=sse_framing # replay the saved inputs
zig build fuzz -Dfuzz-target=sse_framing --fuzz=200K # try 200,000 new inputsWhen the search finds a failure, Zig 0.17 prints error: test '...' but still exits with status 0, so read the output. Without a limit, --fuzz runs until you stop it and opens Zig's web interface.
The Fuzz workflow fuzzes each target on main every night for about 20 minutes, and for two minutes on a pull request that changes the fuzzing setup. When the nightly run finds a failure, it uploads the failing input as an artifact and opens an issue titled Nightly fuzz failure: <target>, or comments on that issue if it is already open. To fix the failure, copy the input into tests/fuzz/corpus/<target>/ and run zig build fuzz -Dfuzz-target=<target> to reproduce it. That build uses Debug by default, which adds allocation stack traces to leak reports. Keep the input file in the fix's pull request, so zig build test replays it on every pull request after that.
A saved input holds the values the test reads from its std.testing.Smith, in order. For example, a test that calls smith.slice reads a 4-byte little-endian length and then that many bytes. Inputs that the fuzzer saves are already in this form. Inline seeds go through @import("fuzz_seed").slices, which writes each one in this form for a test whose first read is smith.slice. A seed written as a plain string would lose its first four bytes to the length. A target whose first read is smith.slice checks its saved files in a test next to its fuzz test, with try @import("fuzz_seed").expectSavedSlices(@import("fuzz_corpus").<target>);.
To add a target, write the fuzz test in the file it covers and add an entry to tests/fuzz/targets.json. For a target outside the session manager, also import its file in src/fuzz_targets.zig. Pass the seeds and saved inputs to the test with .corpus = &(@import("fuzz_seed").slices(.{ <seeds> }) ++ @import("fuzz_corpus").<target>.*). The session manager imports nothing from fx, so its targets keep their seeds as files in tests/fuzz/corpus/<target>/ and pass .corpus = &(.{""} ++ @import("build_options").fuzz_corpus_<target>.*). Set iterations so that one round of --fuzz takes about 30 seconds on a developer machine. scripts/tests/test_fuzz_nightly.py fails when an entry names a test that doesn't exist or that zig build fuzz can't reach. The MCP engine in src/mcp/ imports only the standard library, so its targets live in src/core/mcp_host/wire_tests.zig. A file that holds only tests, like that one, is also imported from the test block in src/main.zig.
-Dsanitize-thread=true builds fx and its tests with ThreadSanitizer, which reports two threads touching the same memory without synchronization. The build is slow and large, so install it to its own prefix:
TSAN_OPTIONS=halt_on_error=0:abort_on_error=0 zig build test -Dsanitize-thread=true -p /tmp/fx-tsanWithout those options, the sanitizer aborts a test binary once it has reported a race, so that binary's later tests don't run. The Thread Sanitizer workflow runs the unit tests this way on main every night and lists each race in its job summary. It reports races without failing. A sanitized suite runs slower, so a few tests that depend on timing fail in it, such as the command_runner tests of output read after a command exits. Those failures aren't races.
The Startup Latency check fails a pull request when any benchmarked command takes longer than 2 ms on the Linux CI runner. To measure before you push, run:
./benchmarks/startup.sh --quickThe script builds a ReleaseSafe binary and needs hyperfine. On macOS, process and dynamic-loader overhead alone can exceed 2 ms, so compare local numbers between builds instead of against the budget. To measure an interactive launch up to its first frame, benchmarks/first_frame.py runs several binaries under the same machine load. In this example, /tmp/fx-before is a build of main:
python3 benchmarks/first_frame.py --binary /tmp/fx-before --binary ./zig-out/bin/fxtests/tla/ holds TLA+ models of fx, such as the session manager, the MCP engine and host, ACP, /usage, the shell tool, the workspace indexer, and libfx. Most come with Bun drivers that run the real binary and have TLC check what it did. CI runs the libfx and MCP models on main and on pull requests that change the code they cover; run the matching checker yourself when you change behavior that one of the others describes. You need Java and tla2tools.jar, and tests/tla/README.md lists every model and covers setup.
tests/tla/session_manager/check.sh SessionLog
tests/tla/mcp/check.sh --model Engine
bun test ./tests/tla/drivers/shell_command/The evals in tests/evals/ drive the agent through fx ask --json against real models and need AI_GATEWAY_API_KEY. They make billed model calls and their results vary between runs, so they aren't part of the pull request checks.
cd tests/evals
bun install
bun testprompt-cache-ab.test.ts compares how two fx builds keep the provider's prompt cache through mid-session changes: a branch switch, a permission change, folder rules, a restart, and a named skill. A recording proxy keeps every request, and for each run it reports the requests that break the cached prefix, the new and cached input tokens, and whether the answers are right. It runs only when the variables name two builds and the models to try:
cd tests/evals
FX_CACHE_AB_BASELINE_BIN=/abs/path/to/base/fx FX_CACHE_AB_CANDIDATE_BIN=/abs/path/to/zig-out/bin/fx \
FX_CACHE_AB_MODELS=anthropic/claude-haiku-5.5,openai/gpt-6.1-sol bun test prompt-cache-ab.test.tsFX_CACHE_AB_SCENARIOS picks scenarios by name, and FX_CACHE_AB_OUTPUT_DIR keeps each run's requests and summary. One run per scenario varies, so compare several.
- Sign every commit before you push it.
mainaccepts only commits with verified signatures, and squash merging is turned off, so a single unsigned commit blocks the merge. GitHub explains how to set up commit signature verification with an SSH or GPG key. - Push your branch. Maintainers push to
vercel-labs/fx. Outside contributors push to their fork and open the pull request againstmain. - Open the pull request as a draft once your focused checks pass, so CI starts on it.
- Write the title as a plain imperative sentence, such as
Restore feedback report file clipboard. Leave out bracketed prefixes like[bug], because the type goes in a label. - In the description, say what changes for users or callers, why it changes, and how you verified it, including what you ran with
./zig-out/bin/fx.
Every pull request needs exactly one type: label before it merges. Choose the label that matches the main reason the pull request exists:
| Label | Use it when the pull request |
|---|---|
type: bug |
Fixes incorrect behavior |
type: feature |
Adds a new user-facing capability |
type: improvement |
Improves existing user-facing behavior |
type: docs |
Changes documentation only |
type: maintenance |
Changes internal tooling, dependencies, CI, or code structure without changing user-facing behavior |
type: release |
Prepares or repairs a release |
type: security |
Fixes or hardens a security boundary |
Only maintainers can add labels. Maintainers add the label when they open the pull request and update it if the scope changes. When a pull request mixes kinds of change, the label follows its main purpose. Outside contributors leave the label off, and a maintainer adds it during review. A missing label never holds a pull request in draft.
CI runs on every push to a pull request, including drafts. Linux x86_64 gates every change, because most fx behavior is the same on every platform. A result counts only for the exact commit it ran on, so each new push needs a new passing run.
These five checks must pass before a pull request merges:
| Check | What it runs |
|---|---|
Build & Test |
Formatting, the PGSO corpus, the public-surface, compactor-boundary, and indexer-boundary checks, the ReleaseSafe unit tests, the TLA+ model checks and drivers that run on every pull request, and the SDK package jobs, including the libfx durable-session model check when the change needs it |
E2E (deterministic) |
Every end-to-end file, split across eight weighted shards, plus the MCP conformance baseline |
Shellcheck |
bash -n and shellcheck on the scripts listed in the job, such as benchmarks/startup.sh and scripts/detect-macos-need.sh |
Startup Latency |
The benchmarked CLI commands on a ReleaseSafe build, each held to 2 ms, plus the interactive performance test in tests/e2e/tui-performance.test.ts |
macOS arm64 |
The macOS checks when the change needs them, and otherwise a pass without starting a macOS runner |
CI retries a failed end-to-end file once. A file that passes only on the retry gets a warning annotation, and you should investigate it as a possible race.
scripts/detect-macos-need.sh decides whether a change needs macOS. It runs the macOS checks when the change touches:
- A Zig file with a macOS, BSD, or Linux code path
build.zig- The macOS signing script
- The native SDK addon
- An end-to-end file listed in
tests/e2e/macos-platform-tests.json - A shared end-to-end helper that reads the platform
When the detector can't read the change, the macOS arm64 check fails instead of passing.
scripts/detect-ci-need.sh decides whether a pull request runs CI's six model checks. The libfx durable-session model check takes about 45 minutes in all, split over four SDK durable model check parts that run side by side (scripts/sdk-model-check.sh), and runs when the change touches:
sdk/- The SDK models in
tests/tla/sdk/or their drivers intests/tla/drivers/*.mjsandtests/tla/drivers/sdk/ scripts/sdk-model-check.sh, which lists the parts- The shared driver code in
tests/tla/drivers/lib/ - The shared TLC code in
tests/tla/lib/ - The Node-API or WebAssembly core entry point
src/acp/,src/core/hosts/, orsrc/core/session_manager/
The TLA+ MCP engine models and driver, TLA+ MCP host SignIn model, TLA+ MCP host other models and TLA+ MCP host drivers jobs run in parallel, take 7 to 28 minutes, and run their checks when the change touches:
src/mcp/,src/core/mcp_host/, orsrc/core/mcp/- The models in
tests/tla/mcp/ortests/tla/mcp_host/, or their drivers intests/tla/drivers/mcp/,tests/tla/drivers/mcp_host/, ortests/tla/drivers/lib/ - The shared TLC code in
tests/tla/lib/, which the MCP driver's bridge runs - The
tests/e2e/fixtures/mcp-*servers, or the helpers those drivers load:tests/e2e/tmux-helpers.ts,tests/evals/eval-helpers.ts,tests/e2e/render-lab/tape.ts,tests/e2e/mcp-rules-paths.ts, andtests/e2e/conditional-guidance-oracle.ts src/core/app/app_mcp_runtime.zig,src/builtins/mcp.zig,src/core/hosts/native_keychain.zig, orsrc/core/shared/net_connect.zig, which the host models check
The TLA+ transcript window model job takes about 4 minutes and runs its checks when the change touches:
src/ui/transcript/transcript_window*- The model in
tests/tla/transcript_window/or its drivers intests/tla/drivers/transcript_window/ - The driver code those drivers share:
tests/tla/drivers/lib/andtests/tla/drivers/graph.mjs - The helpers those drivers load:
tests/e2e/tmux-helpers.ts,tests/e2e/saved-sessions.ts, andtests/evals/eval-helpers.ts
The TLA+ subagent and session-write models job takes a few minutes and runs its checks when the change touches:
src/core/subagent/,src/core/session/,src/core/agent/worker_runtime.zig, orsrc/core/agent/runtime/parallel_execution.zig- The models in
tests/tla/subagent/, the session-write and live sessions models intests/tla/session/, or their drivers intests/tla/drivers/subagent/,tests/tla/drivers/session/write.test.ts, andtests/tla/drivers/session/live.test.ts - The shared code in
tests/tla/lib/andtests/tla/drivers/lib/, or the helpers those drivers load:tests/e2e/tmux-helpers.ts,tests/e2e/saved-sessions.ts,tests/evals/eval-helpers.ts, andtests/e2e/fixtures/mcp-modern-http.ts
The TLA+ shell quiet notice model job takes about 2 minutes and runs its checks when the change touches:
src/core/execution/quiet_notice.zig,src/core/execution/managed_execution.zig, orsrc/tools/shell/- The model in
tests/tla/managed_execution/or its drivers intests/tla/drivers/managed_execution/ - The shared code in
tests/tla/lib/,tests/tla/drivers/lib/, andtests/tla/drivers/graph.mjs, or the helpers those drivers load:tests/e2e/tmux-helpers.tsandtests/evals/eval-helpers.ts
The TLA+ ACP models and drivers job takes about 5 minutes and runs its checks when the change touches:
src/acp/- The models in
tests/tla/acp/or their drivers intests/tla/drivers/acp/ - The code those drivers share:
tests/tla/drivers/lib/andtests/tla/lib/, or the helpers they load: the fake Gateway intests/e2e/tmux-helpers.tsandtests/evals/eval-helpers.ts
All six run when the change touches build.zig, build.zig.zon, or .github/workflows/ci.yml, and on every push to main. When the detector can't read the change, Build & Test fails instead of passing.
Other workflows and benchmark jobs also report on pull requests, such as the Examples workflow when examples/ changes and the Shell command overhead benchmark when the shell tool or the command runner changes. Only the five checks above are required to merge, but look into any check that fails. Two of the others need more explanation:
- The binary size workflow builds the Linux release targets for the pull request and its base commit on native runners, reports the size change, and smoke-tests each binary. The macOS targets are measured after the merge, on each push to
main. Growth of 52,429 bytes (0.05 MiB) or more on a platform adds a warning. Investigate growth you can't explain. - The macOS arm64 PGSO workflow does not run on pull requests. It runs every night on
main, and stable releases always run it. A change to the PGSO pipeline runs it with the command in the table below. scripts/pgso/README.md explains the pipeline and its acceptance gates. - The Linux arm64 PGSO workflow,
.github/workflows/pgso-linux-arm64.yml, runs on the same schedule. It qualifies a Linux candidate with the same sharded jobs as the macOS workflow. The stable release always runs it and ships its candidate as the Linux arm64 binary..github/workflows/pgso-linux-x86_64.ymlqualifies a Linux x86_64 candidate the same way, and the stable release ships it as the Linux x86_64 binary.
Other runs start only on request:
| Run | Command |
|---|---|
macOS checks (branches in vercel-labs/fx) |
gh workflow run macos.yml --ref your-branch, or add the ci:macos label |
| libfx durable-session and MCP model checks | gh workflow run ci.yml --ref your-branch |
| PGSO qualification | gh workflow run pgso-macos-arm64.yml --ref your-branch |
| Linux PGSO qualification | gh workflow run pgso-linux-arm64.yml --ref your-branch or pgso-linux-x86_64.yml |
| Live ACP suite | gh workflow run ci.yml --ref your-branch -f acp_live=true |
| Long-turn memory benchmark | gh workflow run bench.yml --ref your-branch -f long_turn_memory=true |
| libfx runtime benchmark | gh workflow run bench.yml --ref your-branch -f libfx_runtime=true |
| Fuzzing of one target | gh workflow run fuzz.yml --ref your-branch -f target=<target> |
| Unit tests with ThreadSanitizer | gh workflow run tsan.yml --ref your-branch |
Only maintainers can start these runs or add the ci:macos label, and gh workflow run --ref takes only branches in vercel-labs/fx. For a fork pull request, ask a maintainer to add ci:macos, and then a push or a close and reopen starts the macOS run. If CI doesn't start at all on your first pull request, a maintainer may need to approve the workflow run.
Mark the pull request ready when all of these hold for its current commit:
- All five required checks passed. A queued, cancelled, skipped, or failed run doesn't count, and neither does a run on an earlier commit.
- You ran
./zig-out/bin/fxthrough the changed behavior. - The diff against
maincontains only the files this change needs. - The documentation that describes the behavior is up to date.
If CI fails, push the smallest fix to the same pull request and wait for a passing run on the new commit.
Update the documentation in the same pull request as the behavior it describes:
- The
--helpoutput comes from the command specs insrc/builtins/commands.zig. sdk/README.mddocuments libfx. Update it when libfx's public behavior or setup changes, as sdk/AGENTS.md describes.- Update this file when build steps, development setup, or collaboration rules change.
Change README.md only when one of its statements becomes false, or when a change adds a capability as broad as the ones in its feature list. A new option, command, or environment variable belongs in --help and the manual.
Don't edit CHANGELOG.md or the version in src/main.zig. Maintainers write the changelog when they prepare a release.
The user manual at fx.sh/docs is built from a private repository, so outside contributors can't edit it. When your change makes a manual page wrong or incomplete:
- Maintainers update the page in a companion pull request and link it from theirs.
- Outside contributors add a
## Docssection to the pull request description with the exact change each affected page needs: the page URL, the section, and the text to add, replace, or remove. A maintainer makes the change in the manual.
For example:
## Docs
- https://fx.sh/docs/configure-fx/permissions, "Change the mode": replace "<current text>" with "<new text>".
- https://fx.sh/docs/using-fx/sessions: add "<new paragraph>" after the first paragraph.Maintainers prepare each release in a pull request that bumps pub const version in src/main.zig and adds the new entry to CHANGELOG.md. When that pull request merges, the release workflow finds no tag for the new version, builds the binaries for every platform, creates the tag, and publishes the GitHub Release along with the binaries that the install script and fx upgrade download. Later pushes to main under the same version don't start a release. If a release fails and needs a fix, merge the fix, then run Actions > Release on main with validate_only off. Never create a version tag by hand. The Releasing section of AGENTS.md describes the changelog format and release markers.
To check release artifacts without publishing anything, run Actions > Release on main with validate_only enabled. The run builds every target, runs the PGSO qualification, and notarizes the macOS binaries. It creates no tag or GitHub Release, uploads nothing to the CDN, and changes no update channel.
Before you open a release pull request, run that validate-only release on current main, the code the release pull request will build on:
gh workflow run release.yml --ref main -f validate_only=trueIt takes about as long as a release build. A failure means a PGSO training, behavior, size, or performance gate failed on code that would ship. Fix what failed, run it again, and open the release pull request only after it passes.
Every 30 minutes, the dev release workflow takes the newest commit on main, runs the build, the unit tests, the deterministic E2E shards, the MCP conformance baseline, and the SDK WASM, N-API, Node, and Browser jobs on it, and publishes binaries for that commit when they pass. It does not wait for the rest of CI, such as the durable-session model check and the TLA+ models. Run fx upgrade --channel dev to follow those builds, and fx upgrade --channel stable to go back to tagged releases.
fx is licensed under Apache-2.0. Unless you state otherwise, a contribution you submit for inclusion in fx is licensed under the same terms, as section 5 of the license describes.