Quick Start
Installation
Included with the Monolex app, or install via:Commands
check — Inspect Without Modifying
Implicit check:
monogrid file.md works without the check keyword.
Exit code 0 if no issues, 1 if issues found.
fix — Auto-Fix with Loop
Repeats check-fix cycles until 0 issues or max iterations reached.
qed — Q.E.D Deep Verification
- Calculates visual width of every line
- Lists every non-ASCII character with its Unicode codepoint and width
- Groups by category (COMBINING, BMP_WIDE, HIGH_WIDE, DEFAULT)
- Verifies recalculated width matches expected
structure — Structural Analysis
report — Compact File Survey
Workflow
What It Checks
Monogrid enforces 9 alignment rules:
Rules 1 and 6 are auto-fixable. All other rules require manual correction because they need semantic understanding of the diagram.
Width Rules
CodexMono renders characters at these widths:Self-Verification
Monogrid’s own--help output passes monogrid check with 0 issues:
Origin
Monogrid is an exact port ofcheck-boxes.py v5.7 (Python, 1,984 lines) to Rust (2,719 lines). The Unicode width tables were verified through ASURA 3-Phase Research across three terminal emulators. Both versions produce identical results on all test files.