mhl-language

mhl-language is a skill for Claude Code, Codex from mh-language/mhl-core-runtime. It costs 59 tokens per session (2,974 once invoked), scanned A, original, MIT.

Core syntax, types and semantics of mhl (Meta-Harness Language, .mh files), a language most models have not seen. Load before writing, editing, reviewing or debugging any .mh file, or when mhl lint reports a parse, scope or type error.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install with agentmods
npx agentmods add skills/mh-language/mhl-core-runtime/mhl-language
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.

Any agent
npx skills add mh-language/mhl-core-runtime --skill mhl-language
Clone the repo
git clone --depth 1 https://github.com/mh-language/mhl-core-runtime

Made for: Claude Code, Codex.

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 mhl-language

README.md
[![agentmods](https://agentmods.dev/badge/skills/mh-language/mhl-core-runtime/mhl-language/github.svg)](https://agentmods.dev/skills/mh-language/mhl-core-runtime/mhl-language)
Your own site
<a href="https://agentmods.dev/skills/mh-language/mhl-core-runtime/mhl-language"><img src="https://agentmods.dev/badge/skills/mh-language/mhl-core-runtime/mhl-language/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mhl-language

Your own site · 80×15
<a href="https://agentmods.dev/skills/mh-language/mhl-core-runtime/mhl-language"><img src="https://agentmods.dev/badge/skills/mh-language/mhl-core-runtime/mhl-language.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,974 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00059 $0.02974
Opus 5.5 $0.00024 $0.01190
Sonnet 5.5 $0.00012 $0.00595
Haiku 4.5 $0.00006 $0.00297

Measured today against content hash 6f214398220e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mhl-language 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 today.

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.

skills/mhl-language/SKILL.md · 276 lines

How it starts

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

mhl language

mhl is a declarative language for AI agent pipelines: agents, tools, memory, MCP servers, prompts, and the pipelines that wire them together. It reads like TypeScript, and that resemblance is where most bugs come from. Trust this file and the compiler over your priors.

The other mhl-* skills go deeper: mhl-workflows (steps, branching, resume), mhl-agents (agents, prompts, routers), mhl-tools (tools, native ops, memory, extensions), mhl-testing, mhl-serving. Every native op and value method is in references/stdlib.md.

The verification loop

mhl is the source of truth. Run this loop on every change:

  1. mhl lint <file-or-dir> until it prints No problems found.
  2. mhl test <file-or-dir> until it exits 0.
  3. mhl run <file> --dry-run --input key=value to validate the input contract and see the step plan. It executes nothing.

A plain mhl run launches real agents and real side effects, so treat it as a deliberate action, not a syntax check.

When mhl is missing, ask before installing it (install.sh from github.com/mh-language/mhl-core-runtime), and state plainly that any .mh you hand over without it is unverified.

Lint is not complete. It misses the traps marked (lint silent) below, so a clean lint does not prove those. Cover them with a test.

File shape

A file is a flat list of declarations: import, agent, router, prompt, skill, schema, memory, tool, extension, pipeline, workflow, type, enum, test. Any of them can carry export. Statements live only inside a step, a tool method, a lambda body, or a describe block, so reference snippets showing a bare var x = 1 are excerpts of one of those.

// Comments are // only.
agent Writer {
    command: "echo"            // swap for a real CLI such as "claude"
    args: ["${prompt}"]
}

prompt Greeting(name: string) {
    "Write a greeting for ${name}."
}

tool Text {
    slug(value: string): string -> value.trim().to_lower().replace(" ", "-")
}

pipeline Main {
    description: "Writes a greeting and logs its slug."
    input name: string
    var reply = ""

    step Greet {
        reply = Writer.run(prompt: Greeting(name: name))
    }

    step Report {
        log(Text.slug(reply))
    }
}

test main {
    describe greets_by_name {
        var result = Main.run(inputs: {name: "Ada"})
        are_equal(result.state, "completed")
        are_equal(result.executed, ["Greet", "Report"])
        is_true(result.vars.reply.contains("Ada"))
    }
}

Read the full file on GitHub · 276 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 276 lines · 59 tokens per session scan A 6f214398220e

Subscribe to this mod's changes

mhl-language is a skill published in the GitHub repository mh-language/mhl-core-runtime (9 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 2,974 once invoked, about $0.0002 per session on Opus 5.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-11-07.

Related

mhl-language compared with skills from other repositories

mhl-language next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mhl-languagemh-language/mhl-core-runtimeSkill9todayMITA59Claude Code, Codex
sync-bridgechromium/chromiumSkill25kyesterdayBSD-3-ClauseA109Claude Code, Codex
sync-model-processorchromium/chromiumSkill25kyesterdayBSD-3-ClauseA98Claude Code, Codex
adversarial-revieweremdash-cms/emdashSkill14kyesterdayMITA72Claude Code, Codex
gsd-ns-reviewopen-gsd/gsd-coreSkill11kyesterdayMITA16Claude Code
gitnexushashgraph-online/awesome-codex-pluginsSkill1.5kyesterdayApache-2.0A58Codex
issuejeremylongshore/tons-of-skills-marketplaceSkill2.9kyesterdayMITA115Claude Code