mmap

mmap is a command for Claude Code from GuangminJu/mellos-mapping. It costs 14 tokens per session (1,601 once invoked), scanned A, original, MIT.

A command that opens a live Mellos map in a split terminal pane beside the current session. Mellos appears to be a map or watcher for the current project.

In plain words
What is it for?
Use it to open the map for the current project. With `setup`, it instead lets you choose whether the map opens always, for complex tasks, or only when requested.
Why use it?
It keeps the project map visible while you work, avoiding repeated switching to another terminal or view.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the mellos-mapping plugin — 1 skill, 1 command, 1 hook, 1 MCP server shipped together

Good fit Use it to open the map for the current project. With setup, it instead lets you choose whether the map opens always, for complex tasks, or only when requested.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add GuangminJu/mellos-mapping
Claude Code
/plugin install mellos-mapping

Made for: Claude Code.

Or install mellos-mapping, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 hook, 1 MCP server.

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 mmap

README.md
[![agentmods](https://agentmods.dev/badge/commands/guangminju/mellos-mapping/mmap.svg)](https://agentmods.dev/commands/guangminju/mellos-mapping/mmap)
Your own site
<a href="https://agentmods.dev/commands/guangminju/mellos-mapping/mmap"><img src="https://agentmods.dev/badge/commands/guangminju/mellos-mapping/mmap.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,601 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.00014 $0.01601
Opus 5 $0.00007 $0.00800
Sonnet 5 $0.00003 $0.00320
Haiku 4.5 $0.00001 $0.00160

Measured 8d ago against content hash 72aad243f80a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

mmap 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 8d 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/mmap.md · 110 lines

How it starts

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

If $ARGUMENTS contains setup, do NOT open the pane. Run the setup questionnaire instead: call mmap_setup (no arguments) to read the current policy — the reply names the USER-level choice, this project's override if it has one, and which of them is in effect. Then ask the user which mode they want — always (map every structured task: workflows, designs, architecture, technical dependencies), complex (only medium or complex tasks), on-request (only when explicitly asked) — using AskUserQuestion where available, mentioning whatever is already set.

Persist with mmap_setup {policy, scope}. scope defaults to user, which is almost always right: the question is about how this person works, so it is answered once and applies to every project they open. Use scope: "project" only when they say they want THIS project to differ from that — ask which they mean if $ARGUMENTS does not make it obvious. Confirm what was saved, at which scope, and where. Then stop.

Otherwise: open the live Mellos map watcher for this project in a separate terminal pane.

The mmap_open tool does exactly this and is the shorter route — pass the page this conversation is working on (mmap_open {page: "<slug>"}), or window: true for the dedicated window. It reports whether a pane actually came up afterwards. Use the platform routes below when the mmap tools are not available in this session, or when the tool reports it could not open one. (You do not need this command to keep the map visible day to day: every write answers with a pane: line, and a pane: CLOSED is the assistant's cue to call mmap_open itself.) The watcher is at ${CLAUDE_PLUGIN_ROOT}/dist/watch.mjs. The store is MULTI-PAGE: the default page lives at .mellos/map.json and named pages at .mellos/pages/<slug>.json — the watcher takes the default path as its base, polls ALL of these files, and redraws on change. The default file is optional; a project whose work lives on named pages has no .mellos/map.json at all. So never probe that single file to decide whether a map exists — call mmap_view, which reads the real store and ends every response with a pages: line naming the pages that exist (marking the default page absent when it is) and the one it just rendered.

Follow the platform-appropriate route:

  1. Windows with Windows Terminal (wt available — the usual case): run

    node "${CLAUDE_PLUGIN_ROOT}/scripts/open-pane.mjs" "<PROJECT_DIR>" --page <PAGE_SLUG>
    

    replacing <PROJECT_DIR> with the absolute project directory and <PAGE_SLUG> with the page THIS conversation's effort lives on — the same slug you pass to the mmap tools. Care about what the pane actually shows: without --page it opens on the most recently written page, which after a gap or in a multi-effort project may not be the one under discussion. Omit --page only when no particular page is the subject (the user just wants the map open), or for the default page. The launcher identifies the Windows Terminal window hosting THIS session (console-title nonce probe), brings it to the foreground, and splits it vertically — the map lands beside the conversation even with several terminal windows open. If the session window cannot be identified or focused (session tab inactive, screen locked, not hosted in Windows Terminal), it deterministically falls back to a dedicated window named "mellos-mapping" — never a random window — and its output says which mode it used and why; relay that to the user.

    Flags: --page <slug> names the page to show first. Once open, the pane AUTO-FOLLOWS the page being written (the map the agent is operating on), so it tracks the work by itself; the user can toggle that with the f key, and --no-follow starts it off. When a watcher for the project is ALREADY running, the launcher does not open another pane — it retargets the existing one (output says refocused=<slug>, picked up within a poll tick); rerun with --page when the user asks to see a specific page. --window skips the split and opens the map in the dedicated window on purpose — use it when the user prefers the map separate from the chat (second monitor, small screens). --ascii for fonts without box-drawing characters. --force opens another pane even though a watcher for this project is already running (default is to skip). The remaining watcher flags are forwarded verbatim: --no-color, --no-mouse, --interval <ms> (default 250, floored at 50). An unknown flag is a usage error, never dropped in silence — relay the message rather than retrying blind.

Read the full file on GitHub · 110 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. 8d ago First seen · 110 lines · 14 tokens per session scan A 72aad243f80a

Subscribe to this mod's changes

mmap is a command published in the GitHub repository GuangminJu/mellos-mapping (10 stars, last pushed 10d ago), licensed MIT. It adds 14 tokens to every session and 1,601 once invoked, about $0.0001 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-31.