Skip to main content
Monoflow is the temporal composition layer in the Mono stack. It joins code structure, git history, document references, file-system events, and saved diffs; writes reusable topic and co-change analysis; and supplies the results consumed by Work Wiki and NIIA. Documents Monoflow 0.4.0, OpenCLIs build 2026-07-12-192448. Registry ownership: the canonical docs_url is this page, the public product homepage is https://monolex.ai, and Monoflow pairs with Monogram, Monogit, Monomento, Work Wiki, and NIIA across its evidence graph. Repository ownership remains monolex/monolex; no public source URL is advertised while that repository is private.

Install and identify the contract

The installed guide is the first command reference. This page adds the commands that are implemented but intentionally omitted from its short command table, the 24-command typed MCP boundary, and the read/write ownership rules.

Where Monoflow sits

Monoflow owns the derived analysis database, not the upstream facts:
The per-repository result is stored under ~/.monolex/monoflow/{name}-{hash}.db. Repositories do not share one analysis result set.

Normal workflow

monoflow analyze --full is the explicit cascade. It runs Monogram reindex, Monomento project indexing, and Monogit symbol indexing before computing topics, co-change patterns, and the insight cache. Plain monoflow analyze does not refresh those upstream owners first.

Complete 31-command CLI inventory

The inventory below counts canonical feature commands. help and version are terminal metadata and are not included. “MCP” means the command appears in monoflow --mcp-schema; it does not mean the operation is read-only.

Focused drills

Temporal and topic views

Git analytics

Management, embedded docs, and compatibility

The dispatcher also accepts --help, -h, help, --version, -V, and version.

The 24-command typed MCP surface

The schema contains every command marked “Yes” above, in this order:
Typed arguments are generated for positional values, options, and flags. The schema currently omits the CLI-only analyze --full flag even though analyze itself is an MCP-visible command. Treat monoflow_analyze as a writer.

Read and write contract

Project Monomento readiness is counted only while a published generation is ready and held under its project read lease. Pending, tombstoned, missing, or generation-racing document corpora are not reported as ready data.

The 21 insight fields

monoflow insights --json returns 21 evidence families plus the layer_chaos aggregate. layer_chaos reports CSS, documentation, structural, rhythm, temporal, and overall scores. These are diagnostic aggregates over the evidence above; they are not proof that a particular file is correct or incorrect.

Quality-delta controls

The quality-delta calculation is owned by Monogit’s history model; Monoflow exposes its controls and combines the result with the insight report.
scaling and exponent are additional calculation controls accepted by the command. Changing weights does not rewrite past analysis by itself; follow the command’s Monogit reindex instruction.

Continue through the stack

Turn topics into knowledge coverage

Work Wiki owns project artifacts, sessions, intent, and topic convergence.

Inspect the code evidence

Use Monogram when a Monoflow finding needs exact definitions, callers, or coupling proof.

Use the integrated entry point

NIIA composes Monoflow findings with memory, orchestration, and system diagnostics.