whereismyai
Agent Mcts
Agent Mcts is an open-source test-time search system wrapping coding agents with Monte Carlo Tree Search.
Agent Mcts wraps coding agent command line tools with Monte Carlo Tree Search to explore multiple solution branches, backtrack from dead ends, and concentrate budget on promising paths. It creates an isolated git worktree and forked agent session for every node so your working directory remains untouched until you apply a result. It evaluates states using your test suite or an optional language model judge, and displays the tree live in your terminal. The tool supports Claude Code natively and Codex CLI via an adapter, with Kimi CLI planned. It is designed for developers who want to improve software engineering agent reliability through principled exploration.
Agent Mcts at a glance
- Best for: Software engineer
- Runs on: CLI, open source
- Pricing: Free and open source under the MIT license
- Released: November 2026
- Category: AI agent tool
- Website: github.com/natsu0529/agent-mcts
Key features
- Monte Carlo Tree Search with UCT selection
- Isolated git worktree state for every node
- Native session forking for Claude Code
- Automated test evaluation with partial credit
- Optional language model judge for scoring diffs
- Live terminal user interface displaying the tree
- Append-only jsonl journaling for run recovery
Use it for
- Exploring multiple solution branches for complex coding tasks
- Backtracking from dead ends during automated code generation
- Running automated software tests across branched agent sessions
- Managing test-time search over coding agent command line interfaces
Companions
Tools that articles about Agent Mcts recommend using with it, each with its job.
- Context7 — Provides up-to-date documentation for AI agents and code editors.
- Ollama — Run local models at zero marginal cost, with code kept on your machine.
- OpenRouter — Access over 500 models and 80 providers through one unified API.
- Daytona — Runs sessions in isolated sandboxes synced to git branches.
- Composio — Equips AI agents with tools, managed user auth, and sandboxes across 1,500+ apps
- Oh My OpenCode Slim — Lightweight multi-agent orchestration and background tasks.
Alternatives to Agent Mcts
- AgentsView — It keeps your AI coding session archive local by default while tracking costs and activity.
- Agent Trials — Test if an agent fixes your bugs in your stack at a sane price before deployment.
- Orca — Runs multiple AI coding agents simultaneously in isolated workspaces.
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- fast-agent — Improves agent accuracy and cost efficiency via MCP integration.
- AGENTS.md — It separates agent-specific instructions from human-focused README files.
- Agent Skills — Encodes senior-engineer workflows and quality gates into 24 skills.
- pstack — Improves AI coding agent outcomes with rigorous workflows.
- OpenCode — Works with 75+ model providers, local models, and existing subscriptions
- Agent Beacon — Retains coding agent knowledge across tools so errors do not repeat.
- Mindwalk — Visualize how coding agents explore and edit files on a 3D repository map.
- MyAgent — It features built-in permission controls, long-term memory, and skill self-evolution.
All Agent Mcts alternatives