mhl-agents

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

Declare and call LLM backends in mhl. Use for agent, router, prompt, skill and schema declarations, before and after hooks, structured output, and retry, cache, ratelimit or fallback configuration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/mh-language/mhl-core-runtime/mhl-agents/github.svg)](https://agentmods.dev/skills/mh-language/mhl-core-runtime/mhl-agents)
Your own site
<a href="https://agentmods.dev/skills/mh-language/mhl-core-runtime/mhl-agents"><img src="https://agentmods.dev/badge/skills/mh-language/mhl-core-runtime/mhl-agents/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-agents

Your own site · 80×15
<a href="https://agentmods.dev/skills/mh-language/mhl-core-runtime/mhl-agents"><img src="https://agentmods.dev/badge/skills/mh-language/mhl-core-runtime/mhl-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,265 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.00048 $0.02265
Opus 5.5 $0.00019 $0.00906
Sonnet 5.5 $0.00010 $0.00453
Haiku 4.5 $0.00005 $0.00227

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

Security

Grade A, and why

mhl-agents 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-agents/SKILL.md · 284 lines

How it starts

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

mhl agents

Assumes the mhl-language skill. An agent is a one-shot call: a CLI subprocess (cli/*) or an Ollama request (ollama/*) that takes a prompt and returns a string. It cannot call a tool mid-generation on mhl's behalf. So the program does the deterministic work around the model: it fetches the data, builds the prompt, and validates the answer.

Declaring an agent

The runtime reads exactly: engine, command, args, stdin, endpoint, temperature, log, trace, retry, cache, rate_limit, fallback, skills, system_prompt, before, after, description. Anything else is a lint error, including timeout (use a step's timeout clause) and api_key (let the CLI read its own environment).

agent Claude {
    engine: "cli/claude-code"
    command: env("MODEL_CMD", "claude")     // swappable per environment
    args: ["-p", "${prompt}", "--output-format", "text"]

    retry: {
        max_attempts: 3
        delay: 2s
        retry_on: [500, 503, "timeout", "rate_limit"]
    }
    cache: { ttl: 10m, storage: "disk" }
    rate_limit: { requests_per_minute: 20, concurrency: 2 }
}

agent Local {
    engine: "ollama/qwen2.5-coder"
    endpoint: "http://localhost:11434"
    temperature: 0.1
    fallback: [Claude]
}

Placeholders. "${prompt}" and "${schema}" are recognized only as a whole args: element. "pre ${prompt}" is a lint error. Without either placeholder, the prompt is appended as the last argument. An args: element may also be an expression (env("FLAG", "x")).

Large prompts go through stdin: instead of args:, where placeholders are substituted anywhere in the string. Whole documents in argv hit the ~32 KB command-line limit on Windows. Some CLIs treat piped text that reads like an instruction as prompt injection, so keep stdin content phrased as data and the instruction in args:.

agent Summarizer {
    command: "sh"
    args: ["-c", "cat"]              // stands in for: claude -p "Summarize stdin"
    stdin: "${prompt}"
}

test summarizer {
    describe prompt_arrives_on_stdin {
        are_equal(Summarizer.run(prompt: "a long document"), "a long document")
    }
}

Read the full file on GitHub · 284 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. today First seen · 284 lines · 48 tokens per session scan A 051dc16485f3

Subscribe to this mod's changes

mhl-agents is a skill published in the GitHub repository mh-language/mhl-core-runtime (9 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 2,265 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-agents compared with skills from other repositories

mhl-agents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mhl-agentsmh-language/mhl-core-runtimeSkill9todayMITA48Claude Code, Codex
agent-platform-model-registrygoogle/skillsSkill22kyesterdayApache-2.0A60Claude Code, Codex
foundry-config-setupmicrosoft/agent-frameworkSkill15kyesterdayMITA65Claude Code, Codex
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill22kyesterdayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA35Claude Code
nemo-automodel-launcher-configNVIDIA/skillsSkill3.9kyesterdayApache-2.0A30Claude Code
finetuningmicrosoft/skillsSkill3.2kyesterdayMITA132Claude Code