M0X Docs
M0X Docs

Get Started

Quickstart GuideCore ConceptsAI ModelsPricing Plans

Core Features

Feature OverviewThe CoderX AgentOperating ModesReviewTerminal IntegrationBrowserSecurity

Customization

Lifecycle HooksContext ManagementRules & InstructionsCommandsSkills & Custom ToolsSub-Agents & Parallel OrchestrationSemantic Search@ Mentions

MCP

Model Context Protocol (MCP)MCP FeaturesMCP Tab

Tools

Cloud FeaturesCLIInline Edit (Ctrl+K)BugbotShared TranscriptsSlack IntegrationLinear IntegrationGitHub IntegrationGit SupportGitLab IntegrationDeep Links

Settings

ConfigurationIgnore FilesExtensionsKeyboard ShortcutsShell Commands

Advanced

Parallel AgentsBring Your Own Key (BYOK)Language SupportMigrations

Account

Account ManagementBilling & SubscriptionsUpdate AccessTeamsEnterprise

Guides

CookbookAgent WorkflowsWeb DevelopmentData ScienceLarge Codebases & MonoreposMermaid DiagramsBugbot Rules

Support

TroubleshootingCommon IssuesRequest IDTroubleshooting GuideDownload
Documentation

Agent Workflows

Understand how the CoderX agent structures planning, execution, and verification phases.

CoderX coordinates complex, multi-file code modifications by dividing them into structured lifecycle phases. Understanding these workflows allows developers to direct the agent's behavior and collaborate effectively during active runs.


Workflow Phases

Every agent task moves through three major phases: Planning, Execution, and Verification.

1. Planning Phase

Before writing any code, the agent gathers codebase context and outlines its steps in the implementation_plan.md artifact.

  • Context Gathering: Runs semantic and symbol searches to locate target files and dependencies.
  • Conflict Resolution: Evaluates if the requested changes conflict with existing structures.
  • User Checkpoint: Presents the proposed edits for user approval before modifying files.

2. Execution Phase

Once the plan is approved, the agent converts the plan into actionable tasks tracking them in a dynamic task.md checklist.

  • Checklist Execution: Progresses through checklist items systematically, marking tasks as completed ([x]).
  • Atomic Operations: Performs discrete, line-specific edits to minimize syntax regressions.
  • File Generation: Creates new helper modules, configurations, or unit tests as needed.

3. Verification Phase

The agent verifies all modifications to ensure code compiles and operates as expected.

  • Build Audits: Proposes shell commands (e.g. npm run build or go build) to verify compilation.
  • Test Runs: Executes matching unit tests or testing suites.
  • Linter Checks: Runs ESLint or equivalent static analysis checkers to verify syntax formatting.

Self-Correction Loop

One of CoderX's most powerful behaviors is its ability to learn from execution errors. If a step fails during the verification phase, the agent triggers the self-correction loop:

Capture Error Output

The agent intercepts stdout, stderr, and exit codes of the failed command (e.g., test suite failure or compiler syntax error).

Diagnostic Assessment

The agent analyzes the traceback to locate the exact file path and line number responsible for the error.

Patch Application

The agent generates a targeted code replacement to resolve the bug, applies the edit to the file, and resets the verification check.

Re-Verification

The verification suite runs again. If it succeeds, the agent completes the workflow; if it fails, it repeats the loop (capped at a maximum of 5 iterations to prevent infinite runs).


Live Monitoring and Logs

During execution, you can monitor the agent's state in real time:

[!TIP] Use the Agent Panel in your sidebar to track currently running tasks, inspect intermediate diffs, and view raw terminal outputs as they happen.

Execution Logs

All intermediate actions and outputs are saved to the workspace log directory. If you run into issues or want to audit the agent's logic history, inspect the JSON logs located at: C:\Users\<user>\.m0x\(m0x-coderx),(m0x-ide)\brain\<conversation-id>\.system_generated\logs\transcript.jsonl

Cookbook

Recipes for common tasks.

Web Development

Building web apps with M0X.

On this page

Workflow Phases1. Planning Phase2. Execution Phase3. Verification PhaseSelf-Correction LoopCapture Error OutputDiagnostic AssessmentPatch ApplicationRe-VerificationLive Monitoring and LogsExecution Logs