3. Agentic Development Tools

OpenMC ships a set of tools designed for AI coding agents (such as Claude Code) that agents can use to navigate and understand the codebase.

3.1. Motivation

Agentic tools like Claude Code are skilled at using grep to navigate and understand large code bases. However, grep can only find exact text matches — it cannot discover code that is conceptually related but uses different naming. Without a “global view” of the codebase that a human developer will build up over time, the agent is generally blind to any file it hasn’t tokenized fully. While it can grep to see who else calls a function, it remains blind if other areas might be related but not share identical naming conventions.

This problem is mitigated somewhat by using a model with a longer context window. OpenMC has somewhere around ~1 million tokens of C++ and ~1 million tokens of python. While Claude Code in early 2026 only has a context window of 200k tokens, beta versions have extended context windows of 1M tokens, and it’s not unreasonable to assume that models may be available in the near future that greatly exceed these limits.

However, even assuming the entire repository can be fit within a context window, there are several downsides to doing this. Model performance degrades significantly as context size increases. Benchmark results are greatly improved if the model has less garbage to pick through. Additionally, API usage is typically billed as tokens in/out per turn. As the context file grows these costs become much larger. As such, there is still significant motivation to solving the above problem, so as to ensure only relevant information is drawn into context so as to maximize model performance and minimize costs.

3.2. Setup

The tools are registered as an MCP (Model Context Protocol) server in .mcp.json at the repository root. AI agents that support MCP (such as Claude Code) discover them automatically on session start. The underlying Python scripts can also be run directly from the command line.

All tools run entirely locally — no API keys or external service accounts are required. Python dependencies are installed automatically into an isolated virtual environment at .claude/cache/.venv/ on first use.