BXAgent

LLM-driven code generation for bidirectional and incremental EMF model transformations

BXAgent is an LLM-driven code generator that automatically produces fully functional Java classes for bidirectional, incremental, and synchronizing EMF model transformations from two Ecore metamodels and a natural-language mapping description.

BXAgent employs a five-stage pipeline comprising metamodel parsing, LLM-based mapping extraction, bidirectionality checking, template-driven code generation, and an optional LLM-based compilation repair loop. The generated transformation code supports batch execution, incremental change propagation in both directions, and a novel fingerprint-based synchronization algorithm that handles concurrent modifications, conflict resolution, and fuzzy matching of independently created objects.

BXAgent was applied to the revised Families-to-Persons (F2P) benchmark of TTC 2026, which extends the classic case with 13 concurrent test cases and 3 round-trip cases in addition to the original 34 batch and incremental tests. BXAgent passes 46 out of 50 tests, including all four genuine conflict cases.

  • (Buchmann, 2026) — BXAgent: LLM-Driven Code Generation for Bidirectional and Incremental EMF Model Transformations
  • (Buchmann, 2026) — Let the Agent Sync: LLM-Driven Code Generation for the Families to Persons Case
  • (Anjorin & Buchmann, 2026) — The Families to Persons Case — Revisited

References

2026

  1. STAF Workshops
    BXAgent: LLM-Driven Code Generation for Bidirectional and Incremental EMF Model Transformations
    Thomas Buchmann
    In Joint Proceedings of the STAF 2026 Workshops: AgileMDE, GCM, ICMM, LLM4SE, TTC, 2026
  2. STAF Workshops
    Let the Agent Sync: LLM-Driven Code Generation for the Families to Persons Case
    Thomas Buchmann
    In Joint Proceedings of the STAF 2026 Workshops: AgileMDE, GCM, ICMM, LLM4SE, TTC, 2026
  3. STAF Workshops
    The Families to Persons Case — Revisited
    Anthony Anjorin and Thomas Buchmann
    In Joint Proceedings of the STAF 2026 Workshops: AgileMDE, GCM, ICMM, LLM4SE, TTC, 2026