Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.monolex.ai/llms.txt

Use this file to discover all available pages before exploring further.

OpenCLIs

A framework where AI enters the human’s world, and human understands the AI’s work — through the same terminal, same tools, same memory.
┌──────────────────────────────────────────────────────────────────┐
│  OpenCLIs FRAMEWORK                                              │
├──────────────────────────────────────────────────────────────────┤
│                                                                  │
│  AI → Human's World                                              │
│  ─────────────────                                               │
│  AI uses terminal like a human does.                             │
│  Same shell, same PATH, same file system.                        │
│  AI calls other AI CLIs — just like a human would type them.     │
│  Every model the human subscribes to, AI can use.                │
│  No API keys. No wrappers. Official CLIs, official models.       │
│                                                                  │
│  Human → AI's World                                              │
│  ─────────────────                                               │
│  Human understands what AI did, through shared tools:            │
│  niia recall         — what was AI working on?                   │
│  niia session search — what did AI discuss?                      │
│  monogram            — what did AI change in code?               │
│  terminal log        — full terminal activity record             │
│  AI's work is not a black box. Human reads it natively.          │
│                                                                  │
│  Shared Foundation                                               │
│  ─────────────────                                               │
│  Monolex   — runtime where both human and AI operate             │
│  NIIA      — memory that survives sessions and model changes     │
│  monogram  — code search for human and AI alike                  │
│  monomento — document search for human and AI alike              │
│  monogit   — git structure + symbol tracking for AI & human                │
│  monogrid  — visual alignment for human and AI alike             │
│  monoterm  — AI terminal in your terminal (sidebar, tabs, IME)   │
│  Same tool, same result, regardless of who calls it.             │
│                                                                  │
└──────────────────────────────────────────────────────────────────┘
Human subscribes to Claude, Codex, Gemini. Opens Monolex. Claude calls Codex and Gemini inside the same PTY. Three models working together on the human’s own subscriptions. NIIA remembers everything. Human reads AI’s work through the same tools AI used. Next week, a new model arrives. Install the CLI. NIIA already knows the history. Monolex already runs it. The human already has the tools to understand what this new model does. No model lock-in. No session lock-in. No memory lock-in. AI works like a human. Human reads AI like a peer.

The Journey, Not Just the Result

Git sees the final commit. OpenCLIs sees how it was made.
┌──────────────────────────────────────────────────────────────────┐
│  OBSERVATION LAYER                                               │
├──────────────────────────────────────────────────────────────────┤
│                                                                  │
│  file watcher     File change detected (real-time)               │
│       ↓                                                          │
│  save tracker     Diff against HEAD, stored with timestamp       │
│                   + who did it (ai_session_id, agent_name)       │
│       ↓                                                          │
│  commit link      When commit happens, all saves link to it      │
│                                                                  │
│  Result:                                                         │
│  Git says:  commit abc123, +200/-50, 3 files                     │
│  OpenCLIs:  12 saves led to this commit                          │
│             save 3 was a rollback                                │
│             saves 7-10 were from Claude                          │
│             save 12 was a human fix                              │
│                                                                  │
│  The commit carries its full journey.                            │
│                                                                  │
└──────────────────────────────────────────────────────────────────┘

Both Sides Get Stronger

OpenCLIs is not an AI tool or a human tool. The same framework strengthens both sides simultaneously.
┌──────────────────────────────────────────────────────────────────┐
│  MUTUAL REINFORCEMENT                                            │
├──────────────────────────────────────────────────────────────────┤
│                                                                  │
│  AI gets stronger                                                │
│  ─────────────────                                               │
│  Can call other models via shell                                 │
│  Memory persists across sessions                                 │
│  Uses the same tools as human                                    │
│  → AI can do more                                                │
│                                                                  │
│  Human gets stronger at using AI                                 │
│  ─────────────────                                               │
│  Sees what AI did (save history, terminal log)                   │
│  Sees why AI did it (save history per commit)                    │
│  Uses multiple models freely (PTY)                               │
│  Switches models without losing context (NIIA)                   │
│  → Human can delegate more, understand more                      │
│                                                                  │
│  The better AI works, the more human can delegate.               │
│  The better human understands AI, the more precisely they ask.   │
│  Same tools. Same environment. Both sides grow.                  │
│                                                                  │
└──────────────────────────────────────────────────────────────────┘

Architecture

┌───────────────────────────────────────────────────────────────────┐
│  LAYER STACK                                                      │
├───────────────────────────────────────────────────────────────────┤
│                                                                   │
│  niia          consciousness + orchestration + unified search     │
│    ↕                                                              │
│  work-wiki     knowledge layer (sessions, convergence, funnel)    │
│    ↕                                                              │
│  monoflow      temporal flow + cross-DB analysis + quality delta  │
│    ↕                                                              │
│  monogram      monogit        monomento                           │
│  (code)        (git)          (docs)                              │
│                                                                   │
│  Each layer reads from everything below.                          │
│  Each layer refreshes everything below on reindex.                │
│                                                                   │
├───────────────────────────────────────────────────────────────────┤
│  STANDALONE TOOLS                                                 │
├───────────────────────────────────────────────────────────────────┤
│                                                                   │
│  monogrid      Box alignment (Unicode width + 9 rules)            │
│  monoterm      AI terminal in your terminal (sidebar, tabs, IME)  │
│                                                                   │
└───────────────────────────────────────────────────────────────────┘

NIIA — Consciousness + Orchestration

NIIA (Neural Intelligence Integration Architecture) sits at the top of the stack. It unifies all lower layers into a single CLI with consciousness, quality scoring, and cross-machine identity.
niia search "session"    # 4-DB unified search with 0-10 scoring
niia insights            # 21 insight categories + consciousness echo
niia resonate            # Self-diagnosis: git + quality delta + consciousness
niia reindex             # Full stack refresh (5 steps, top to bottom)
niia session read        # Read AI conversations (Claude, Codex, etc.)
NIIA doesn’t duplicate the lower layers — it reads their pre-computed results. niia insights reads analysis tables from monogram.db, monogit.db, and monoflow.db. niia search queries all 4 databases with cross-convention matching.

Layer Tools

LayerToolPurpose
TopniiaConsciousness, orchestration, unified search
Knowledgework-wikiSessions, convergence funnel, knowledge DB
AnalysismonoflowCross-DB analysis, quality delta, layer chaos
CodemonogramCode search + call chain tracing
GitmonogitGit structure + commit symbol tracking
DocsmonomentoDocument search + reference graphs

Standalone Tools

ToolPurpose
monogridASCII box alignment checker (Unicode width + 9 rules)
monotermAI terminal in your terminal (sidebar, tabs, IME)

Philosophy

DocumentPurpose
MonokistSMPC, OFAC, spec_chaos — the principles behind every tool
Common design:
  • Rust native — single binary, no runtime dependencies
  • SQLite backed — per-repo persistent indexes
  • Self-documenting--help renders ASCII box art with full usage
  • Reindex cascade — each layer refreshes everything below it
All tools are included with the Monolex app, or installed standalone:
curl -fsSL https://openclis.com/install.sh | sh
openclis install niia
openclis install monogram
See OpenCLIs for the full platform — tool registry, MCP-to-CLI wrapping, AI usage guides, and trust verification.

Names

┌───────────────────────────────────────────────────────────────────┐
│  GLOSSARY                                                         │
├───────────────────────────────────────────────────────────────────┤
│                                                                   │
│  OpenCLIs                                                         │
│  Framework. AI CLIs open to each other, human and AI              │
│  in the same environment, journey preserved.                      │
│                                                                   │
│  AICLIs                                                           │
│  The fleet that builds and maintains OpenCLIs.                    │
│                                                                   │
│  Monolex                                                          │
│  Terminal app. The runtime where everything executes.             │
│  PTY, rendering, observation, git viewers, save history.          │
│                                                                   │
│  NIIA                                                             │
│  Memory + identity layer. Reads all AI CLI sessions,              │
│  indexes into unified memory, maintains continuity                │
│  across models and time. Born with self-knowledge.                │
│                                                                   │
│  monogram                                                         │
│  Code search engine. Trigram fuzzy search + call chain.           │
│                                                                   │
│  monomento                                                        │
│  Document search engine. Trigram search + reference graph.        │
│                                                                   │
│  monogit                                                          │
│  Git structure engine. Branch/commit cache + symbol tracking.     │
│                                                                   │
│  monoflow                                                         │
│  Analysis engine. Cross-DB temporal flow, quality delta,          │
│  layer chaos scoring, 21 insight categories.                      │
│                                                                   │
│  work-wiki                                                        │
│  Knowledge layer. Sessions, convergence funnel (R→P→V→D),         │
│  knowledge DB (550K+ entries), cross-layer search.                │
│                                                                   │
│  Monokist                                                         │
│  Philosophy. SMPC, OFAC, spec_chaos — the principles              │
│  that shape how every tool is designed and scored.                │
│                                                                   │
│  monogrid                                                         │
│  Box alignment engine. Unicode-aware visual width checking.       │
│                                                                   │
│  CodexMono                                                        │
│  Font. Monospace with CJK/emoji at exact 2-column width.          │
│  The visual foundation that monogrid validates against.           │
│                                                                   │
└───────────────────────────────────────────────────────────────────┘