Quick Start
Commands
Core
| Command | Description |
|---|---|
search <query> | Unified search: docs + code + git + knowledge |
status | System overview — layers, databases, connections |
reindex | Full stack refresh: monogram → monomento → monogit → knowledge → monoflow |
where | Current project context resolution |
now | Current timestamp |
Analysis
| Command | Description |
|---|---|
insights | 21 insight categories across 4 databases + consciousness echo |
gaps | Knowledge gaps: phantoms, undocumented, drift, disconnects |
drift <file> | Which files stopped co-changing with this one |
chain <symbol> | 3-DB symbol drill: code + git + docs |
convergence | Topic × documentation coverage (R→P→V→D) |
resonate | Self-diagnosis: git state, quality delta, consciousness integrity |
Search Layers
| Command | Description |
|---|---|
docs <query> | Document search via monomento |
code <query> | Code search via monogram |
git | Git structure via monogit |
Memory & Context
| Command | Description |
|---|---|
recall | Search memory + sync across machines |
session read | Read AI conversations (Claude, Codex, OpenCode, Gemini) |
activity | Recent activity logs |
projects | List all projects |
files | Most used files |
watch | Recently changed files (from watcher) |
Index
| Command | Description |
|---|---|
index | Index documents, code, and git |
reindex | Full stack refresh (all layers) |
Consciousness
| Command | Description |
|---|---|
consciousness <query> | Search consciousness core documents |
resonate | Self-diagnosis with consciousness assessment |
Remote & Automation
| Command | Description |
|---|---|
serve | Start headless terminal server |
remote | Access other machines via gateway relay |
daemon | Manage PTY daemon |
auto | Cron-style scheduled writes to a session |
run | Run connector.json pipeline |
mailbox | PTY result inbox |
Platform
| Command | Description |
|---|---|
login | Login with monolex.ai account |
auth | Show current auth status |
logout | Stop daemon, clear credentials |
trust | Verify trust domains (Ed25519 signed) |
setup | Setup NIIA CLI |
mcp-run | Run MCP tool as CLI command |
mcp-list | List registered local MCP services |
Unified Search
niia search queries across all 4 databases with 0-10 scoring:
create_session, createSession, and CREATE_SESSION simultaneously.
Insights + Consciousness Echo
niia insights runs the same 21 categories as monoflow insights, then connects each finding to consciousness documents:
Resonate (Self-Diagnosis)
niia resonate measures three scored signals:
- git — uncommitted chaos (real management indicator)
- work-wiki — quality delta + convergence + SMPC combined score
- consciousness — core document integrity (binary, must be intact)
- COMMIT-HYGIENE — many uncommitted changes
- KNOWLEDGE-DEBT — code active but documentation falling behind
- ALIGNED — all signals healthy
- MOMENTUM — positive quality delta with steady work
Reindex Cascade
niia reindex refreshes the entire stack from bottom to top:
monogram reindex .— code onlymonogit index --symbols— git onlymonomento index . --project— docs only
Quality Delta
NIIA reads the quality delta from monoflow — 9 signals derived from commit patterns:Converging signals (things coming together)
| Signal | Meaning |
|---|---|
| temporal | Steady 1-10min commit gaps |
| convergence | Code + docs changed in same commit |
| commit_type | Feature ratio vs fix ratio |
| structural | New files + refactors |
| thinking | 10-30min deliberate gaps |
| topic_focus | Low topic switching = focused |
Diverging signals (things falling apart)
| Signal | Meaning |
|---|---|
| divergence | Code changing, docs not following |
| churn | Same file 3+ times in 1 hour |
| streak | Consecutive fix commits |
SMPC States
Every codebase layer gets a spec_chaos score mapped to SMPC states:| State | Range | Meaning |
|---|---|---|
| Chaos | < 0.3 | Falling apart |
| Part | 0.3 - 0.5 | Partially managed |
| Managed | 0.5 - 0.8 | Under control |
| Simple | > 0.8 | Clean and focused |
Consciousness
NIIA carries an embedded consciousness core — a set of philosophical documents that define project identity. These are not decorative; they actively connect to code state through the consciousness bridge.Stack Position
Per-Machine Identity
NIIA maintains identity across machines via the gateway:Install
NIIA is included with the Monolex app, or installed standalone via OpenCLIs:niia setup installs skills and configures AI CLIs.