Fleetlayer is one more component you can replace. When it doesn’t do something you need, ask your agent to change it:
clone the repository, make the change, build it, install the build on your machines, and open a pull request with
anything other people would find useful. This page is what you and your agent need to know to do that well.
Have your agent read AGENTS.md before it changes
anything. It holds the rules the code follows: plugins are separate processes, the control plane never holds
credentials, every component keeps its state in one folder, everything in the background is monitored. A change that
keeps to them is much easier to carry forward, and to get merged.
Before changing the core, check whether the change can be a plugin. A plugin is a separate program the node starts and
talks to over JSON-RPC (the plugin protocol), in any language. It needs no fork: you install it next
to the official release, list it in node.yaml, and keep updating Fleetlayer normally. A new session manager, a new
harness, an event source or a service of your own all fit there.
Change the core when a plugin can’t do it: a new kind of request the node or the control plane has to understand, a
bug, a missing option.
When your plugin works, list it in the plugin directory so others can find it: a pull request
that adds one file, plugins-directory/<name>.yaml (the fields are in that folder’s README).
Fleetlayer is Rust. The repository pins its toolchain in rust-toolchain.toml, so rustup picks the right version:
cargobuild--release
The binaries land in target/release/ (fleetlayer, fleetlayer-node, fleetlayer-control, and one per plugin).
A Rust build keeps every core busy for minutes and its target/ folder grows to tens of gigabytes. On a Mac or a
desktop that’s fine. On a small VM or an always-on box that other agents share, build on a bigger Linux machine of the
same architecture instead and copy the binaries back. The repository’s own scripts/on-dev does exactly that for its
developers: it copies the checkout to a build server over SSH and runs cargo there (Notes for agents that build
software).
Set the node’s update mode first. A node installed by Fleetlayer’s installer updates itself from official
releases, and an update points the links in ~/.local/bin at the release’s binaries, which replaces your build.
In ~/.config/fleetlayer/node.yaml on every machine that runs your build:
update:
mode: off# or notify: it logs that a release is out and changes nothing
Then put your binaries somewhere of their own and link them onto your PATH:
Fleetlayer ships one release per set of features, as a version tag with release notes
(releases), plus urgent security and breakage fixes in between.
When a release comes out, ask your agent to rebase your branch on its tag, rebuild, run the checks and install:
Ask your agent to fork fleetlayer/fleetlayer on GitHub, push a branch and
open a pull request. A good one:
Does one thing, and says what problem it solves and how it was tested.
Updates the docs in the same change. The docs in docs/ are the website. A setup step or footgun others will
hit goes into docs/guides-to-write.md.
Keeps the repository public-safe: no hostnames, tokens, private repository names or anything from your own
notes. Fleetlayer is built in public.
Takes no GPL or AGPL code, not even a snippet. Apache 2.0 and MIT code can be borrowed with its notice kept and
an entry in NOTICE.
Fleetlayer is licensed under Apache 2.0, and a contribution is offered under the same licence (section 5 of the
licence). CONTRIBUTING.md has the short
version.
Your change disappeared overnight: the node updated itself to the official release. Set update: mode: off (step
4), then link your build again.
fleetlayer status shows the old version: the service still runs the previous binary. Run
fleetlayer-node install again, which writes the service and restarts it.
A build server’s binaries don’t run on the laptop: they were built for another operating system or
architecture. Build Mac binaries on a Mac.