mise-init

mise-init is a command for Claude Code from emadd/mise-en-claude. It costs 47 tokens per session (640 once invoked), scanned A, original, MIT.

A repeatable project setup and recovery command for mise, a project-organisation workflow that configures Git, guidance files, structure, connectors, and task tracking.

In plain words
What is it for?
Use it to set up, rescue, or update a project's mise configuration.
Why use it?
It can initialise a new project or bring an existing mise setup up to date using the project's authoritative instructions.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it to set up, rescue, or update a project's mise configuration.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/emadd/mise-en-claude/mise-init
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.

Clone the repo
git clone --depth 1 https://github.com/emadd/mise-en-claude

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 mise-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/emadd/mise-en-claude/mise-init/github.svg)](https://agentmods.dev/commands/emadd/mise-en-claude/mise-init)
Your own site
<a href="https://agentmods.dev/commands/emadd/mise-en-claude/mise-init"><img src="https://agentmods.dev/badge/commands/emadd/mise-en-claude/mise-init/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 mise-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/emadd/mise-en-claude/mise-init"><img src="https://agentmods.dev/badge/commands/emadd/mise-en-claude/mise-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 640 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.00047 $0.00640
Opus 5 $0.00023 $0.00320
Sonnet 5 $0.00009 $0.00128
Haiku 4.5 $0.00005 $0.00064

Measured 9d ago against content hash 637725225f43, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mise-init 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 9d 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.

commands/mise-init.md · 39 lines

What it actually says

You are running /mise-init — mise's re-runnable setup / rescue / update entry point: the installed equivalent of pasting PROMPT.md. mise is already installed on this machine (that's why this command exists), so your job now is to run the full mise flow against this project.

Load the canonical instructions, then follow them in full. The authoritative mise behavior — the prime directives, the Phase 0 mode detection (new setup vs. Rescue vs. Update), every phase, and the whole safety contract — lives in the vendored mise prompt. This command is only a thin launcher: it does not restate that content, so you must read it live (one source of truth, no forked copy that rots).

Find the prompt in this order and read the first that exists:

  1. ./.claude/mise-PROMPT.md — project-local install
  2. ~/.claude/mise-PROMPT.md — global install
  3. If neither exists, fall back to the network copy: read https://raw.githubusercontent.com/emadd/mise-en-claude/main/PROMPT.md and follow it. Tell the user you're using the network copy because no vendored prompt was found, and offer to re-run mise's install.sh so it's local next time.

If you cannot read it by any of those three routes, STOP and tell the user how to repair the install — do not improvise the setup from memory. A half-remembered mise is exactly the unsafe, non-consensual behavior mise exists to prevent.

Once loaded, execute the prompt exactly — same consent-first, snapshot-first, non-destructive, secrets-by-reference contract; let its Phase 0 detect the mode. Two things are already true because you arrived via the installed command, so act on them instead of re-deriving them:

  • The workflow commands are already installed. /mise-cook, /mise-handoff, and /mise-clean exist on this machine. In the Skills + shortcuts phase, verify they're present and current rather than reinstalling from scratch.
  • $ARGUMENTS, if given, is the user's steer — e.g. update, rescue, "just re-audit CLAUDE.md". Honor it over your own mode guess, but still run the version self-check and take the snapshot first — the steer changes what you do, never whether the work is safe.
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. 9d ago First seen · 39 lines · 47 tokens per session scan A 637725225f43

Subscribe to this mod's changes

mise-init is a command published in the GitHub repository emadd/mise-en-claude (51 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 640 once invoked, about $0.0002 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.