LLM-Assisted Development in Framework M

Viewed 23

The rapid evolution of Business M is powered by our "LLM-first" design philosophy. Framework M is built to be intrinsically understandable by AI agents, enabling a new paradigm of high-confidence development.

Here is exactly how Business M is built:

1. Automated Machine Knowledge (corpus.jsonl)

With every update, our GitLab CI automatically generates structured documentation and a comprehensive corpus.jsonl. This live ground-truth is published directly to:
👉 https://www.frameworkm.dev/machine/corpus.jsonl

2. Feeding the Agent

When building a new feature, you simply feed this corpus to your AI agent. Because the corpus contains the entire framework's schema and patterns, the agent doesn't need to guess—it already knows the "M way" of doing things.

3. Intelligent Scaffolding with the m Command

The m CLI tool is used for all scaffolding. The agent uses the corpus to make precise decisions, such as selecting the exact FieldType for a DocType based on existing patterns in the ecosystem.

  • m command scaffolds the DocType definition.
  • It automatically creates the Controller and Test files.

4. TDD-First Development

This is the core of our methodology:

  1. LLM Generates Tests: Based on the DocType spec, the agent writes the comprehensive test suite first. Define your expectations before writing any implementation.
  2. LLM Implements Code: The agent then generates the service and controller code specifically to pass those tests.
  3. Incremental TDD: Add features one small, verified step at a time, entirely driven by LLM iteration.

This structured, machine-readable approach is how we maintain clean architectural boundaries and massive scale while moving at lightning speed.

0 Answers
Related