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

Context Management

Learn how to manage the files, symbols, and codebase resources the AI sees.

For an AI model to write accurate code, it requires relevant context. CoderX automatically handles context window allocation using background indexing and AST references. However, you can manually direct the model's attention using advanced context selectors.


Context Selector Options

When writing prompts in Workspace Chat (Ctrl+L) or Inline Edit (Ctrl+K), type @ to open the context dropdown:

@file

Directly pins a specific file to the prompt context. Inserts the file's content along with line annotations.

@folder

Attaches all files within a directory, useful when explaining module patterns or component structures.

@symbol

Pins a specific Class, function, interface, or struct. Leverages AST indexing to extract the symbol's definition.

@git

Ingests git history, staged changes, unstaged changes, or specific commit logs for analysis.


Codebase Indexing & Symbol Map

When you open a workspace, CoderX builds a localized codebase map to support context searching:

AST Indexing

The indexer parses your files to map symbol relationships, exports, definitions, and class structures.

Vector Embeddings

Your code files are chunked and converted into semantic vector embeddings stored in a local sqlite database.

Search Matching

When you search or ask a question, CoderX runs a local cosine-similarity query on the database to locate the most relevant files instantly.


Pinning Context Resources

If you are working on a specific feature, you can pin assets in the Context Panel:

  • Pinned Files: Keeps target files constantly loaded in the LLM's active prompt.
  • Reference Docs: Pin local markdown files or crawl online reference pages (e.g. https://react.dev) to let the agent consult API standards on the fly.

Excluding Files (.m0xignore)

To keep your index small and save context space, create a .m0xignore file in your workspace root. Files matching these patterns will be skipped during indexing and codebase searches:

.m0xignore
# Ignore build and dependency folders
node_modules/
.next/
dist/

# Ignore binary files and media
*.png
*.zip
*.tar.gz

# Ignore local keys
*.pem
secrets/

Lifecycle Hooks

Automate formatting, linting, auditing, and notifications using lifecycle triggers.

Rules & Instructions

Customize the AI's coding style, conventions, and workspace permissions using rules.

On this page

Context Selector OptionsCodebase Indexing & Symbol MapAST IndexingVector EmbeddingsSearch MatchingPinning Context ResourcesExcluding Files (.m0xignore)