Torben Leth

Here, it's always how — not why.

I build developer tools and integrations for Business Central. This is where I write about what I'm building, how I'm building it, and what I've learned along the way.

Developer at Continia Software

Recent Posts

View all →

One Parser, Six Tools

tree-sitter-al already powers al-perf and the AL Language Server integration. Here are six more tools I'm building on top of it, from structural code search to GitHub code navigation.

albusiness-centraltree-sitterparseropen-sourcedeveloper-tools

I Rewrote My Tree-Sitter Grammar From Scratch. It Got 10x Smaller.

The AL parser grammar hit a wall at 106 MB. The fix wasn't incremental. I rebuilt it from zero with a different architecture, and the result parses more files with 3x fewer symbols in 3x less code.

albusiness-centraltree-sitterparseropen-source

AL Perf v2 Drops Friday. Here's What Changed.

Version 2 sends the call tree, source code, SQL queries, and code structure to the AI. The result: findings that reference specific methods, call counts, and time percentages. Here's what changed and how well it works.

albusiness-centralperformanceaideveloper-tools

AL LSP for Agents: Now in VS Code, and a New Home

The AL Language Server wrapper now works with GitHub Copilot in VS Code, not just Claude Code. Plus: enriched hover with field and action properties, configurable code quality diagnostics, and a repo rename.

aialbusiness-centralclaude-codevscodecopilotdeveloper-tools

One-Click Performance Analysis Inside Business Central

A BC extension that adds an 'Analyze with AL Perf' button to the Performance Profiler page. One click gives you hotspots, anti-pattern detection, and AI-powered insights without leaving Business Central.

albusiness-centralperformanceaideveloper-tools

Projects

View all →

AL Language Server Protocol integration for VS Code (GitHub Copilot) and Claude Code. Compiler-powered code intelligence, enriched hover with full property extraction, and configurable code quality diagnostics for Business Central development.

alclaude-codevscodecopilotlspbusiness-centralai

An open source benchmark for evaluating LLM performance on AL code generation for Microsoft Dynamics 365 Business Central, with 56 tasks across three difficulty tiers, real compilation, and test execution.

alllmbenchmarkbusiness-centralai

An MCP server that enables AI assistants to interact with the Business Central web client, bridging AI tooling with BC's UI for automation and testing scenarios.

business-centralmcpaiautomation

A custom Wine build that enables Microsoft Dynamics 365 Business Central's service tier to run on Linux, achieving up to 65% faster CI builds compared to Windows containers.

business-centrallinuxwinedevopsarm