Development environment#

Set up Python environments for the server and for the components that stay separate.

A coding agent can do this setup for you: the toolkit-onboarding skill in .claude/skills/ checks the prerequisites, creates the environments below, checks out cuGeo for the Sentinel ingest pipeline and runs the checks. Other agents can install it with npx skills add <repository> --skill toolkit-onboarding.

Prerequisites#

  • Linux or macOS, Git, Python 3.12 and uv.

  • Docker only for Compose validation and image builds.

  • Node.js and npm only for the console.

Use Python 3.12 even if uv would pick a newer version: one test pins fingerprints that change with the ast module of Python 3.13.

The server workspace#

The server (geonemo-server) and every part it mounts share one uv workspace and one lock, uv.lock, at the repository root.

uv sync --locked --all-packages --extra dev --python 3.12
. .venv/bin/activate

Workspace member

Distribution

. (core/, knowledge/, tools/)

geonemo-server

contracts/client

geonemo-client, the typed client

core/mcp

geonemo-mcp, the MCP server

packs/sentinel, packs/maritime, packs/clay, packs/nemotron

The packs

reference/application/monitoring, reference/orchestration/agent-service

The reference parts

Each folder is its own import package: core/api/app.py is geonemo.core.api.app.

Separate environments#

These have their own lock files and are not workspace members, so their dependencies never mix with the server’s.

Component

Environment

Skills tests

uv sync --locked --project skills/tests/environment

Native NeMo agents

reference/orchestration/nemo/ (its own pyproject.toml)

Sentinel ingest pipeline

sh packs/sentinel/scripts/fetch-cugeo.sh, then follow the Sentinel ingest README to install the codec SDK and refresh the cuGeo lock entries

Documentation site

uv sync --project docs --frozen

Light part clients

ci/setup.sh client installs them without the server

Console

npm ci in reference/application/console/

ci/setup.sh services|skills|agents|pipeline|client installs what CI installs.

Check the setup#

geonemo-services --help
python3 ci/import_rules.py

The first prints the admin CLI, including the commands of every part in the development parts list (deploy/development/parts.yaml). A checkout loads that list when no GEONEMO_PARTS_FILE is set, and skips a listed part whose folder is missing.

Notes#

  • Build outputs (build/, *.egg-info, .venv/) must not be committed. Diagram generators count files, so run them from a clean export. See Regenerate diagrams.

  • Never run the development stack’s up or down against a shared host without a separate Compose project name, ports and image tag.