Core Concepts
Understand the fundamental building blocks of M0X CoderX and M0X IDE.
The M0X ecosystem comprises two environments designed for different styles of coding: M0X CoderX (Tauri + Next.js local Agentic Workspace) and M0X IDE (VS Code engine-compatible AI-native editor). Here are the core concepts that power them.
🧠 Deep Context Awareness
Traditional coding assistants operate on a single file or selection. M0X, however, acts with full awareness of your entire project:
- Vector Database Indexing: On first workspace launch, M0X scans and chunks your codebase, generating semantic embeddings stored locally. It automatically ignores files specified in
.gitignoreor.m0xignore. - Semantic Search Retrievability: When you chat or edit, M0X retrieves code snippets that match your intent, resolving dependencies and reference patterns automatically without you needing to open or pinpoint files.
🌌 M0X CoderX Concepts
M0X CoderX is designed around the concept of autonomous software engineering loops.
1. Stateful Agent Loop
When you enter a task in CoderX (e.g. "Install package X, write a model, and verify it builds"), the agent initiates an action loop:
- Read Context: It scans the directory, reads files, and analyzes configuration.
- Execute Tool: It writes files, replaces code blocks, or runs compiler tests in the integrated PTY terminal.
- Analyze Feedback: It reads the console compiler output or test logs. If the test fails, it rewrites the code to fix the issue and compiles again.
- Repeat: The loop continues automatically up to a safety limit (default: 25 steps) or until the goal is fully achieved.
2. Human-in-the-Loop & Visual Approvals
Because the agent can perform file writes and run terminal commands, security is critical:
- Visual Diffs: Before applying changes, CoderX pauses the loop and presents a colored side-by-side git diff card in the chat.
- Command Verification: All terminal scripts are presented with a command preview.
- Approval Controls: You can click Approve to execute the step, Reject to abort, or type feedback to direct the agent (e.g. "Use async/await here instead of promises").
🚀 M0X IDE Concepts
M0X IDE is designed for high-speed inline editing and seamless developer workflow integration.
1. VS Code compatibility
Built on a VS Code core, M0X IDE gives you access to the entire developer ecosystem:
- Native Extension Host: Run your favorite linters, formatters, database clients, and themes out of the box.
- Zero-Config Migration: Automatically migrates settings, keyboard maps, and extensions from standard installations on first launch.
2. Fill-in-the-Middle (FIM) Autocomplete
- M0X IDE runs a low-latency background completions loop.
- As you type, it analyzes the code before and after your cursor (prefix and suffix) and suggests inline ghost text.
- Suggestions are rendered in real-time (< 50ms) and can be accepted instantly by pressing
Tab.
3. Inline Edit (Ctrl+K / Cmd+K)
- Highlight a section of code and open the inline prompt.
- This uses a fast coding model to update the highlighted lines in place, showing inline diffs directly in your editor viewport.
4. Model Context Protocol (MCP) Integration
- M0X IDE supports the Model Context Protocol (MCP), an open standard that allows the AI editor to connect to external data sources.
- You can connect the IDE to local databases, API documentations, or specialized CLI tools to extend the AI's contextual awareness beyond the codebase files.