---
title: Max Mode — OpenCode V2 Plugin by Jad Madi (@jadmadi)
description: >-
  Runs 2 to 8 candidate answers in parallel for a hard question and returns the
  one a judge picks.
href: /project/opencode-plugins/max-mode/
category: Models
version: 2026.9.0
builtUnder: 2.0.16
license: MIT
repo: 'https://github.com/jadmadi/opencode-max-mode'
author: Jad Madi
runtime: OpenCode V2
telemetry: 0% (Local First)
installCommand: 'opencode plugin add github:jadmadi/opencode-max-mode'
tags:
  - best-of-n
  - judge
  - quality
  - models
---
# Max Mode — OpenCode V2 Plugin

Runs 2 to 8 candidate answers in parallel for a hard question and returns the one a judge picks.

- **Website**: https://jadmadi.net/project/opencode-plugins/max-mode/
- **Repository**: https://github.com/jadmadi/opencode-max-mode
- **Category**: Models
- **Version**: v2026.9.0 (CalVer)
- **Tested Runtime**: OpenCode v2.0.16
- **License**: MIT
- **Artifact**: `max-mode.ts`
- **Updated**: 2026-09-25
- **Author**: [@JadMadi](https://x.com/jadmadi)

## Quick Install

Install with a single command in OpenCode V2:

```bash
opencode plugin add github:jadmadi/opencode-max-mode
```

### Manual / Local Install

Copy max-mode.ts into ~/.config/opencode/plugins/ and restart the TUI.

## The Problem It Solves

Hard prompts benefit from several attempts, but generating them one at a time and comparing them by hand is slow and hides the reasoning.

## What It Does

Runs 2 to 8 candidate answers in parallel for a hard question and returns the one a judge picks.

## Slash Commands

| Command | Description |
| :--- | :--- |
| `/max` | Set the default best-of-N candidate count for the session. |

## Agent Tools Registered

- `best_of_n`

## Limitations & Safety Rules

Cost multiplies with the candidate count. It calls ctx.generate.text, so set MAX_MODE_MODEL on providers that reject transient generation.

## Frequently Asked Questions (Agent Q&A)

### Q: What problem does Max Mode solve?
Hard prompts benefit from several attempts, but generating them one at a time and comparing them by hand is slow and hides the reasoning.

### Q: How do I install and run Max Mode?
Run `opencode plugin add github:jadmadi/opencode-max-mode` in your terminal.

### Q: Does this plugin transmit telemetry or code externally?
No. It operates with 0% telemetry, local-first in ~/.config/opencode/plugins/.

## Links & Resources

- Dedicated Page: https://jadmadi.net/project/opencode-plugins/max-mode/
- All OpenCode Plugins: https://jadmadi.net/project/opencode-plugins/
- GitHub Repository: https://github.com/jadmadi/opencode-max-mode
- Changelog: https://github.com/jadmadi/opencode-max-mode/blob/main/CHANGELOG.md
- Author Profile: https://jadmadi.net/about/
