Show the machine
Derivation tells you where the id comes from:
platform: derived from the computer’s own platform id (/etc/machine-idon Linux, the hardware UUID on macOS) and your user id. Reinstalling agentx on the same computer gives the same id.random: generated once and kept inmachine.jsonin agentx home, because the computer has no platform id or you reset the id.
Rename the machine
agentx config set label does the same thing. A label is one non-empty line of at most 256 bytes with no control character in it.
Reset the id
machine.json in agentx home to go back to the platform-derived id.
Script it
Add--json to get a machine event with id, label and derivation:
rename and reset-id emit the same event with the new values. If another agentx command is running, both exit with code 7 at once; retry when it finishes.