agent-mcts is a test-time search harness that wraps a coding-agent CLI such as Claude Code in Monte Carlo Tree Search.
Share
Follow agent-mcts to get an email when its listing changes, such as new pricing or features. One digest a day at most, and you can unsubscribe anytime.
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.
- 01
Real MCTS with UCT selection, expansion, evaluation and backup rather than best-of-N
- 02
Every node is an isolated git worktree plus a forked agent session
- 03
Value function from your test command, an optional --judge, or --generate-tests
- 04
Live tree view in the terminal, with show, resume and apply commands
- 05
Budget and cost shown before the search starts; Ctrl-C keeps the partial tree
- 06
Verified with Claude Code; Codex CLI adapter tested only against a fake binary; Kimi CLI planned
- 07
Install with uv tool install agent-mcts
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.
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.
An early but working way to bring tree search to the coding agent you already use, with published benchmark caveats.
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.
As of
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.