mellos-mapping
v0.28.0Live layered dependency map for bottom-up development, drawn by the agent in a terminal pane.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mmap_declare Declare map structure
Grow the Mellos map: set the title and diagram kind, add layer bands, lanes and groups (labeled subsystems within ONE band — declare them when a single band grows crowded, roughly five or more nodes in that band; a group must be a strict subset of its band, and a map spread thin across many bands needs none), add nodes, add dependency edges. Declare the missing design after reading existing pages with mmap_read; reuse verified nodes. Edges must point strictly downward (a node may only use nodes on lower layers); the batch is all-or-nothing. Title and kind can also be changed with mmap_update…
| Parameter | Type | Description |
|---|---|---|
context | object | |
edges | array | |
expectedRevision | string | Revision from mmap_read; absent requires a new page. A stale revision returns CONFLICT. |
groups | array | |
kind | string | diagram kind. dev (default) = the live progress ledger with status skins. The rest are documentation diagrams rendered neutrally: architecture (layered components; also fits call graphs and module dep… |
lanes | array | vertical columns crossing all bands; declaration order = left-to-right |
layers | array | |
nodes | array | |
page | string | page (parallel map) this call targets; omit for the default page. A new conversation is not a new effort. Read existing pages with mmap_read first; reuse the same page for continued work. Create a new… |
title | map title, e.g. the feature being built; null removes it |
mmap_update Record progress and revise the map
The revision tool, all-or-nothing. Record progress on nodes: in-progress when starting a node (the pane spins), done with evidence when its verification passes, regressed with evidence when a done node breaks. Revise what the ghost design got wrong: move a node to another band, join or leave a group or lane, rename a band (or re-rank it, which reorders the whole map), relabel a group or a lane. Every clearable field takes null to empty it — that is how a field is cleared, never an empty string. Bands, groups and lanes are applied before the node updates, and within one node update `layer` mo…
mmap_read Read and resume saved maps
Read existing pages before creating a map. Returns structured IDs, revisions and bounded results. pages lists summaries; map reads page metadata/context; nodes/edges/layers/groups/lanes read editable records; neighborhood reads related nodes; changes compares saved source hashes with local files. New conversations and compacted context should resume the existing effort. mmap_view remains the picture.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque cursor; reuse the same query. Changes return CONFLICT instead of skipping records. |
depth | integer | |
direction | string | |
fields | array | |
group | string | filter by group |
id | string | Exact ID; missing returns NOT_FOUND. Edge IDs use from->to; default page ID is _default. |
ids | array | |
ifRevision | string | Revision from mmap_read; absent requires a new page. A stale revision returns CONFLICT. |
lane | string | filter by lane |
layer | string | filter by layer |
limit | integer | |
page | string | page (parallel map) this call targets; omit for the default page. A new conversation is not a new effort. Read existing pages with mmap_read first; reuse the same page for continued work. Create a new… |
query | string | |
resource | string | |
status | string |
mmap_batch Commit a single-page transaction
Atomically combine additions, updates and removals on ONE page. Checks the final graph, so a coordinated move or edge replacement needs no intermediate saves. Read IDs and revision with mmap_read first. Cross-page deletion is excluded.
mmap_remove Revise the map
Remove edges, nodes, groups and empty layer bands (in that order, all-or-nothing). Removing a node also removes every edge touching it; removing a group merely ungroups its members. Use when the ghost design turns out wrong — the map is a hypothesis, revising it is honest work. `pages` is the other scale: it DELETES whole page files, so a finished effort can be cleaned up instead of accumulating tabs forever. A bare `{pages: ["slug"]}` with no other field is the normal form; combined with map edits, the edits are applied first and the pages are deleted after. The deletion is permanent and ca…
| Parameter | Type | Description |
|---|---|---|
deletePage | boolean | Delete the page targeted by page, including the default page; cannot be combined with other edits. |
edges | array | |
expectedRevision | string | Revision from mmap_read; absent requires a new page. A stale revision returns CONFLICT. |
groups | array | |
lanes | array | |
layers | array | |
nodes | array | |
page | string | page (parallel map) this call targets; omit for the default page. A new conversation is not a new effort. Read existing pages with mmap_read first; reuse the same page for continued work. Create a new… |
pages | array | pages to delete entirely, after this call's map edits; permanent |
references | string | For deletePage: reject inbound submap references by default, or explicitly keep them. |
mmap_setup Configure when maps open
Get or set the mapping policy — WHEN the assistant opens a Mellos map. Call with no arguments to read it: the reply names the policy chosen for the USER (every project), the one this PROJECT overrides it with if any, and which of them is in effect. If it reports "not set", ask the USER to choose (never pick for them): always = map every structured task — workflows, designs, architecture, technical dependencies; complex = map only medium or complex tasks — several modules, a new subsystem, roughly an hour or more; on-request = map only when the user explicitly asks. Then call again with t…
| Parameter | Type | Description |
|---|---|---|
policy | string | the user's choice to persist; omit to read the current policy |
scope | string | where to record the choice: "user" (default) applies to every project this user opens; "project" overrides that for this project alone. Ignored when reading. |
mmap_view View the current map
Render the current Mellos map as monochrome text — the same picture the split-pane watcher shows live. Use it to check the map state or to show it inline in conversation. Every response ends with a `pages:` line naming the pages this project actually has and which one you are looking at, so this is also how you discover whether a map exists at all and under which slugs — never probe the files.
| Parameter | Type | Description |
|---|---|---|
page | string | page (parallel map) this call targets; omit for the default page. A new conversation is not a new effort. Read existing pages with mmap_read first; reuse the same page for continued work. Create a new… |
zoom | integer | zoom ladder: 1 = detail (notes unfold), 0 = standard (default), -1..-3 = scaled down, -4 = overview glyphs |
mmap_open Open the map pane
For automatic display beside the current ChatGPT desktop conversation in Codex mode, use surface: "web-terminal", then call open_in_codex with the returned browser hostOpen object. No paste or Computer Use is needed. For the native host terminal, use surface: "codex-terminal": prepare absolute watcher commands for the current project, then ask the host to open its right terminal. This does not launch the watcher or type into that terminal. Agent exec PTYs cannot be attached using their numeric session ids. For a document panel, use surface: "markdown": generate MD + SVG files, enable automatic…
| Parameter | Type | Description |
|---|---|---|
page | string | page to show first — the page THIS effort lives on, the same slug you pass to the other tools. Omit only for the default page: without it a fresh pane opens on whichever page was written last, which… |
surface | string | web-terminal = automatically started mmap terminal in a local browser page; codex-terminal = prepare a command for the desktop host terminal; web = local browser viewer; markdown = MD/SVG; terminal =… |
window | boolean | open the map in its own "mellos-mapping" window (a new tmux window on Linux/macOS) instead of splitting this conversation's window. Pass it only when the user asked for the map separate (a second moni… |