Service Mode And Paths

This note documents how an end-user (service) installation of AGILab wires the different source trees together. It complements the public documentation and captures the expectations that baked-in automation (install scripts, the AgiEnv bootstrapper, etc.) now assume.

Terminology

  • Public checkout – the open-source agilab repository containing the default apps and tooling.

  • Apps repository checkout – an optional secondary repository referenced by the APPS_REPOSITORY environment variable. It can host additional app templates without requiring changes to the public checkout.

  • Service mode – an end-user installation (install_type == 0) where the runtime lives under ~/agi-space and pulls packages from wheels installed in a virtual environment.

Key Files And Environment Variables

Path / Variable

Purpose

~/.local/share/agilab/.env

Populated by the installer and read by

AgiEnv. When using an external apps repository it must contain the

repository location via APPS_REPOSITORY="/abs/path/to/apps-repository".

~/.local/share/agilab/.agilab-path

Records the canonical public checkout

used when the installer ran. When present it allows a fallback to the

open-source apps.

~/agi-space/.venv

The virtual environment that executes the web interface in

service mode.

~/agi-space/apps

Populated with symlinks to the selected app templates.

Practical Checklist

  1. Point APPS_REPOSITORY at the root of the apps repository (when used).

  2. Run the installer (or rerun install_apps.sh) so ~/.local/share/agilab/.env is refreshed.

  3. Restart the end-user web interface app. The sidebar project selector should now only list apps that resolve inside APPS_REPOSITORY.