Official Content

GeneXus for Agents combines four main components:

  1. Agentic CLI (Command Line Interface): A CLI such as CODA CLI, Claude Code CLI, or any other CLI compatible with LLMs or agents.

  2. GeneXus Skills: Provide the Agentic CLI with knowledge about GeneXus, including language concepts, object types, properties, usage patterns, and best practices. This information enables the LLM to understand your requests and reason about how to implement solutions within the GeneXus ecosystem. Read more at GeneXus Skills.

  3. gx CLI: An executable program that acts as a proxy between the Agentic CLI and the GeneXus MCP Server. It acts as a client of the GeneXus MCP Server. Using the information provided by the GeneXus Skills, the gx CLI starts the MCP Server automatically. It is a thin frontend that translates each command into a call to the GeneXus MCP Server, prints the result, and exits. Read more at gx CLI.

  4. GeneXus MCP Server (Model Context Protocol server): A long-running process (daemon/service) that exposes concrete operations that can be executed in GeneXus, such as creating objects, modifying properties, analyzing a Knowledge Base, executing processes, or querying metadata. It hosts the BL in-process, keeps it available, and executes the operations requested by the gx CLI. Read more at GeneXus MCP Server.

Interaction between GeneXus for Agents components

GeneXus for Agents architecture - V18

  • The Agentic CLI interprets the user's request and, using the GeneXus Skills as guidance, determines the operation to perform. It then invokes the gx CLI.
  • The gx CLI provides the interface between the Agentic CLI and GeneXus for Agents, forwarding the requested operation to the GeneXus MCP Server.
  • The GeneXus MCP Server determines how to execute each operation:
    • For operations that interact with a Knowledge Base, such as opening a Knowledge Base or importing and exporting objects, it uses the Business Logic distributed with GeneXus for Agents to perform the requested operation.
    • For build operations, it invokes the MSBuild Task provided by GeneXus 18, which runs the corresponding generators.
  • When an operation requires resources from a GeneXus 18 installation, the installation associated with the Knowledge Base is used. For an existing Knowledge Base, this installation is determined from the InstallationPath stored in its .gxw file.
  • When the GeneXus 18 installation cannot be determined from the Knowledge Base, for example when creating a new Knowledge Base, the installation specified by the GXV18_INSTALLATION_DIRECTORY environment variable is used as a fallback.

This approach enables the creation of AI-assisted development environments in which the model not only answers questions but also automates development tasks and manipulates Knowledge Bases in a controlled manner.

Last update: 2026 | © GeneXus. All rights reserved. GeneXus Powered by Globant