community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

Context Engineering – The Thing Almost Nobody Is Actually Talking About

Context engineering - curating precisely what information goes into an AI agent's context window - matters more than model choice or toolchains for Business Central development. Since models lack implicit knowledge of AL, Base App, and BC-specific systems, developers must explicitly supply curated context to prevent agents from confidently inferring incorrect solutions based on adjacent ERP systems.

post Vjeko.com

Vjekoslav Babić · 2026-03-14 · 1,839 words · about 8 min

"Context matters more than your prompt. Significantly more."

Key points

  • Context engineering is the skill of strategically filling the context window with exactly what an agent needs at each step, accounting for how context evolves through multi-turn interactions and accumulates as tokens add up
  • Models have no learned context for BC’s proprietary systems like VAT Entry tables or the Base App, causing them to confidently infer wrong solutions by analogy to SAP or other ERPs they learned about
  • Large BC codeunits (e.g., Sales-Post at 158,000 tokens) exceed model context windows and prevent agents from understanding the full picture, making self-guided context engineering impossible
  • Plan mode works by having agents autonomously discover relevant context through code navigation; it succeeds when codebases are well-structured and fails when logic is scattered across interdependent god codeunits
  • Developers must actively curate and structure context rather than hoping agents will extract it, treating this responsibility as more important than selecting the best model

Quotes

  • “Context matters more than your prompt. Significantly more.” (Establishes the central thesis that technical context is more decisive than prompt wording for agent success)
  • “AL is not the exception. AL is the proof.” (Demonstrates that BC’s proprietary systems force explicit context engineering, proving the principle universally rather than as an edge case)
  • “The agents are not failing us. We are failing the agents.” (Redirects responsibility from model limitations to developer accountability for providing structured, curated context that enables agent success)

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

No source states these links: they share an object, a model read them, or a person found the same subject.

Heads up

  • gotcha: “Almost right, in code, is often worse than wrong.”

Context

  • Features: plan mode in Cursor and Claude Code, context window management for agents, multi-turn agent loops, tool calls and output accumulation, context rot mitigation, self-guided context engineering

Source: Vjeko.com, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.