MPS CLAUDE.md

MPS CLAUDE.md is an instructions file for coding agents from JetBrains/MPS. It costs 2,970 tokens per session, scanned A, a copy of MPS AGENTS.md, Apache-2.0.

Project guidance for coding agents working in a mixed JetBrains MPS, Java, and Kotlin codebase. JetBrains MPS is a tool for creating programming languages and models, while Java and Kotlin are programming languages.

In plain words
What is it for?
Use it when editing, testing, or debugging Java and Kotlin code, or when working with MPS languages, models, and generators.
Why use it?
It helps an agent choose the right development environment and avoid treating MPS model files as ordinary text files, which could lead to incorrect changes.

Instructions file

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/jetbrains/mps/claude-md
Clone the repo
git clone --depth 1 https://github.com/JetBrains/MPS

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 MPS CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jetbrains/mps/claude-md.svg)](https://agentmods.dev/instructions/jetbrains/mps/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jetbrains/mps/claude-md"><img src="https://agentmods.dev/badge/instructions/jetbrains/mps/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,970 This file is loaded in full into every session.
When invoked 2,970 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 98% copy Near-identical to another mod 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 $0.02970 $0.02970
Opus 5 $0.01485 $0.01485
Sonnet 5 $0.00594 $0.00594
Haiku 4.5 $0.00297 $0.00297

Measured 3d ago against content hash 156c32936e4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

MPS 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 3d 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.

Origin

This is a copy

98% identical to MPS AGENTS.md — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 181 lines

How it starts

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

Agents Guide for This Project

This project is a mixed JetBrains MPS + plain Java/Kotlin codebase.

Developers typically use two environments against the same checkout:

  • IntelliJ IDEA for editing, debugging, testing, and inspecting Java/Kotlin code, including code generated by MPS.
  • JetBrains MPS for editing languages, models, generators, and other MPS artifacts.

Agents must adapt to the tools available in the current session. Use this file as the cross-environment entry point.

For detailed MPS node, model, language, generator, validation, and MCP workflows, load the mps-mcp-workflow skill. If your agent runtime does not explicitly confirm that project skills are auto-loaded, read .agents/skills/mps-mcp-workflow/SKILL.md before changing MPS artifacts.

⚠️ WARNING: Never Read Raw MPS Model Files

If you are opening or reading .mps, .mpl, or other MPS XML files directly, you are way off track and must stop immediately.

MPS model files are binary-like serialized XML that cannot be safely understood or edited as plain text. Reading them gives you opaque node IDs and no semantic insight — you will misinterpret the content and likely corrupt the model if you try to edit it.

What to do instead:

  • Use MPS MCP tools (mps_mcp_*) to inspect, navigate, and edit MPS models.
  • If MPS MCP tools are not available in your session, ask the user to start MPS and enable the MPS MCP server before continuing with any MPS work.
  • Do not attempt to parse, edit, or reason from raw .mps XML.

Project Nature: JVM + MPS

Treat this repository as having two kinds of source of truth:

  • Plain Java/Kotlin and related project files, usually edited and validated through IntelliJ IDEA tooling.
  • MPS models and language definitions, edited and validated through MPS-aware tooling.

Prefer the highest-level source of truth:

  • If behavior is defined by an MPS language, model, or generator, prefer fixing the MPS artifact rather than only patching generated Java.
  • If behavior is implemented in hand-written Java/Kotlin, use IDEA-oriented tools and workflows.

Read the full file on GitHub · 181 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. 3d ago First seen · 181 lines · 2,970 tokens per session scan A 156c32936e4b

Subscribe to this mod's changes

MPS CLAUDE.md is an instructions file published in the GitHub repository JetBrains/MPS (1,657 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,970 tokens to every session, about $0.0149 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to MPS AGENTS.md, differing in 4 lines, and is treated as a copy.