langium-ai CLAUDE.md

langium-ai CLAUDE.md is an instructions file for Claude Code from eclipse-langium/langium-ai. It costs 780 tokens per session, scanned A, original, MIT.

Repository instructions for Langium AI, a TypeScript monorepo that connects large language models with custom language tools. They describe the project, workspaces, and development commands.

In plain words
What is it for?
Maintaining or changing Langium AI, including its command-line tool and libraries for evaluating generated language files and processing them according to their structure.
Why use it?
They give a coding agent the project context and the correct commands for building, testing, linting, formatting, and checking unused code.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/eclipse-langium/langium-ai/claude-md
Clone the repo
git clone --depth 1 https://github.com/eclipse-langium/langium-ai

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for langium-ai CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/eclipse-langium/langium-ai/claude-md.svg)](https://agentmods.dev/instructions/eclipse-langium/langium-ai/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/eclipse-langium/langium-ai/claude-md"><img src="https://agentmods.dev/badge/instructions/eclipse-langium/langium-ai/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 780 This file is loaded in full into every session.
When invoked 780 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00780 $0.00780
Opus 5 $0.00390 $0.00390
Sonnet 5 $0.00156 $0.00156
Haiku 4.5 $0.00078 $0.00078

Measured 6d ago against content hash 77952aec2c06, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

langium-ai CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Langium AI is a TypeScript monorepo for integrating LLMs with Langium DSLs. It provides tools to evaluate LLM-generated DSL output, split/process DSL documents respecting language structure, and a CLI for bootstrapping AI-powered tooling in Langium projects.

Commands

# Build & test (all workspaces)
npm run build
npm run test

# Lint & format
npm run lint              # oxlint
npm run format            # biome format (check only)
npm run format:fix        # biome format --write (auto-fix)

# Single package (from root)
npm run build -w packages/cli
npm run test -w packages/cli
npm run test -w packages/langium-ai-tools

# CLI dev mode
cd packages/cli && npm run dev

# Detect unused code
npm run knip

Monorepo Structure

Four npm workspaces under packages/:

  • cli (langium-ai on npm) — Commander.js CLI with commands for init, gen, evaluate, status, history, etc. Binary: lai.
  • langium-ai-tools — Provider-agnostic core library: evaluator (LangiumEvaluator, EvalMatrix), splitter (ProgramMapper, splitByNode), analyzer (DocumentAnalyzer), and a vitest-style testing API. Uses protobuf for type definitions (interface.protosrc/gen/).
  • langium-ai-mcp — Model Context Protocol server exposing a langium-syntax-checker tool via LangiumEvaluator.
  • examples/example-dsl-evaluator — Example project demonstrating the evaluation workflow.

Architecture

CLI command flow: Each command is a separate module in packages/cli/src/commands/, registered in index.ts. Core logic lives in src/core/ (langium detection, descriptor management, config, sysprompt generation, versioning).

Key abstractions:

  • LaiConfig — project config persisted as YAML, tracks langium paths, descriptor/sysprompt paths
  • Descriptor — YAML-based language descriptor with grammar, examples, and docs
  • LangiumEvaluator — validates LLM output using actual Langium parser/validator services
  • EvalMatrix — compares multiple runners (models) against test suites

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 73 lines · 780 tokens per session scan A 77952aec2c06

Subscribe to this mod's changes

langium-ai CLAUDE.md is an instructions file published in the GitHub repository eclipse-langium/langium-ai (30 stars, last pushed 9d ago), licensed MIT. It adds 780 tokens to every session, about $0.0039 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.