The installers still ship the Python harness’s program as
gaia-agent, so
that is the file an installed GAIA has on disk. The terminal UI accepts
gaiapy wherever it accepts gaia-agent. gaiacpp is both the choice and
the program.Choosing one
The choice is saved asflagship_agent in ~/.gaia/config.json, with the
value gaiapy or gaiacpp. Both apps read the same key. With nothing saved,
the Python harness runs, even when gaiacpp is installed. A name this version
can’t run (one a newer GAIA saved) still loads, so the Agent UI and its
Settings open; starting the agent fails with a message saying to choose
another, and no other harness runs in its place.
A saved choice whose program is missing, or no longer matches its recorded
checksum, is an error that names the file. Neither app runs the other harness
in its place.
A
gaiacpp from another GAIA release than the app, such as one an older
installer left on PATH, still runs. The Agent UI’s Agent card tags it
Out of date and offers Update, which downloads this release’s copy.
What the two share
- The wire contract. The terminal UI talks to its agent over stdio, one JSON
event per line. The names are pinned by
tests/fixtures/stdio/gaia_stdio_wire.json, and both harnesses and the terminal UI are tested against it. - The sidecar API. Behind the daemon,
gaiacppserves the same API the Python harness does, so the Agent UI needs no changes. See Running as the GAIA agent in the Agent UI. - The model table.
tests/unit/test_cpp_model_registry_mirror.pyfails when the C++ model registry drifts from the Python one.
Working on one
The terminal UI’s developer manual
has the full order in which a launch picks a program.