# agent-mcts — AI Coding Tool Review & Pricing

> agent-mcts is a test-time search harness that wraps a coding-agent CLI such as Claude Code in Monte Carlo Tree Search. Instead of one linear run, it explores several solution branches in isolated git worktrees, scores each attempt with your tests, a diff-reading judge or tests an agent writes from the task, and lets you apply the best branch.

Source: https://ai.dosa.dev/tools/agent-mcts · Updated Nov 22, 2026 · Category: Terminal & CLI Agents · Published by dosa.dev

## At a glance

- **Tool**: agent-mcts
- **Company**: natsu0529
- **Category**: [Terminal & CLI Agents](https://ai.dosa.dev/category/cli-agents)
- **Pricing model**: Open Source
- **Official website**: https://github.com/natsu0529/agent-mcts

## Key features

- Real MCTS with UCT selection, expansion, evaluation and backup rather than best-of-N
- Every node is an isolated git worktree plus a forked agent session
- Value function from your test command, an optional --judge, or --generate-tests
- Live tree view in the terminal, with show, resume and apply commands
- Budget and cost shown before the search starts; Ctrl-C keeps the partial tree
- Verified with Claude Code; Codex CLI adapter tested only against a fake binary; Kimi CLI planned
- Install with uv tool install agent-mcts

## Pricing

**Model**: Open Source

Free and open source under the MIT license. You pay only for the coding agent and model usage it drives; the run shows a node and dollar budget (for example 12 nodes / $10.00) before spending anything.

## Who it is for

- **Best for**: Developers who want more reliable answers from Claude Code on well-specified tasks and can spend extra time and tokens on search.
- **Not ideal for**: Quick edits, vague bug reports without good tests, or teams that need a production-ready Codex integration today.

## Verdict

An early but working way to bring tree search to the coding agent you already use, with published benchmark caveats.

## Recent updates

agent-mcts v0.4.1 was published on PyPI on November 22, 2026, hours after v0.4.0 and two days after v0.3.0 on November 20, 2026.

## Frequently asked questions

### Is agent-mcts free?

Yes - agent-mcts is Open Source. Free and open source under the MIT license. You pay only for the coding agent and model usage it drives; the run shows a node and dollar budget (for example 12 nodes / $10.00) before spending anything.

### Is agent-mcts open source?

Yes - agent-mcts is open source. Free and open source under the MIT license. You pay only for the coding agent and model usage it drives; the run shows a node and dollar budget (for example 12 nodes / $10.00) before spending anything.

### Who is agent-mcts best for?

Developers who want more reliable answers from Claude Code on well-specified tasks and can spend extra time and tokens on search.

### Who is agent-mcts not ideal for?

Quick edits, vague bug reports without good tests, or teams that need a production-ready Codex integration today.

### What are the best agent-mcts alternatives?

The closest agent-mcts alternatives on ai.dosa.dev are Claude Code, Codex CLI, Amp - all listed under Terminal & CLI Agents.

### Who makes agent-mcts?

agent-mcts is developed by natsu0529. It is listed in the Terminal & CLI Agents category on ai.dosa.dev.

## Top alternatives

- [Claude Code](https://ai.dosa.dev/tools/claude-code) (Freemium) — Developers comfortable with terminal-based workflows who need an assistant to handle multi-hour tasks like complex refactors, full-stack bug fixes, and project migrations.
- [Codex CLI](https://ai.dosa.dev/tools/codex-cli) (Freemium) — Handling mechanical, well-scoped engineering tasks like updating dependencies, refactoring based on clear patterns, writing unit tests, and CI/CD configuration.
- [Amp](https://ai.dosa.dev/tools/amp) (Freemium) — Terminal-comfortable developers requiring parallel, long-running agent tasks on remote infrastructure.
- [Aider](https://ai.dosa.dev/tools/aider) (Open Source) — Developers who live in the terminal, prioritize granular git history, or require AI coding assistance in IDE-less or remote SSH/Docker environments.
- [Gemini CLI](https://ai.dosa.dev/tools/gemini-cli) (Freemium) — Enterprise organizations and professional developers using Gemini Code Assist or Google Cloud infrastructure who require a persistent, agentic coding assistant in the terminal.
- [Goose](https://ai.dosa.dev/tools/goose) (Free) — Developers and teams who require a vendor-neutral, highly extensible agent platform that supports local execution and complex, multi-step workflow automation.
- Full alternatives guide: https://ai.dosa.dev/tools/agent-mcts/alternatives
