К основному содержанию
плагин официальный · Anthropic

math-proof — плагин для Claude Code: что делает и как установить

Решает сложные математические задачи исследовательского уровня и сохраняет итоговое доказательство в proof.md. Содержит одиночный режим и многоагентный протокол осады.

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin install math-proof@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official
Открыть на GitHub

Что делает math-proof

Плагин добавляет две слэш-команды для работы над трудными математическими доказательствами. В режиме /math-proof:solo агент решает задачу сам за один длинный шаг, сохраняя план и промежуточные выкладки в файл заметок. Это страхует от потери результатов при исчерпании лимита токенов вывода. Для более масштабных задач предназначен /math-proof:siege. Текущая сессия в нём не делает вычислений сама. Она запускает субагентов раундами: судья распределяет вопросы, воркеры ищут решения параллельно, а готовый текст проверяют два отдельных верификатора построчно.

Для работы siege на компьютере нужен Python 3.7 или новее в PATH. Версия Claude Code должна быть не ниже 2.1.280. Также в ~/.claude/settings.json потребуется прописать блок переменных окружения env: задать CLAUDE_CODE_MAX_OUTPUT_TOKENS равным 128000, отключить фоновые задачи через CLAUDE_CODE_DISABLE_BACKGROUND_TASKS и выставить таймаут агентов. Без этих параметров долгие раунды могут оборваться.

Судья в режиме siege запускает сгенерированный моделью код на Python через системную консоль. Поэтому флаг --dangerously-skip-permissions допустимо использовать только в изолированном контейнере или виртуальной машине под непривилегированным пользователем.

Какие задачи решает

  • составить строгое доказательство исследовательской математической гипотезы
  • проверить готовые аргументы кандидатов в доказательство построчно двумя агентами
  • распараллелить разбор подзадач сложной теоремы между независимыми воркерами
  • зафиксировать статус доказанных, опровергнутых и открытых частей задачи в ledger

Примеры запросов агенту

  • /math-proof:solo Докажи, что для любого простого p > 3 число p^2 - 1 делится на 24.
  • /math-proof:siege problem.md
  • claude -p "/math-proof:siege problem.md" --model claude-opus-5-5 --effort high --dangerously-skip-permissions

Как установить math-proof

Через маркетплейс плагинов

/plugin install math-proof@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official

По шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой

Вопросы о math-proof

Как установить math-proof в Claude Code?

Сначала добавьте официальный каталог командой /plugin marketplace add anthropics/claude-plugins-official, затем установите сам плагин вызовом /plugin install math-proof@claude-plugins-official.

Чем отличаются режимы solo и siege?

Команда /math-proof:solo ведёт доказательство прямо в текущей сессии с записью промежуточных заметок. Команда /math-proof:siege запускает раунды судьи и параллельных субагентов, проверяющих выкладки часами.

Что нужно настроить перед запуском math-proof:siege?

Требуются Claude Code от версии 2.1.280 и Python 3.7 или новее в PATH. Также в файл ~/.claude/settings.json нужно добавить блок env с переменными CLAUDE_CODE_MAX_OUTPUT_TOKENS, CLAUDE_CODE_DISABLE_BACKGROUND_TASKS и CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS.

Исходный текст

math-proof · Apache-2.0
# math-proof

Two Claude Code skills for hard, research-level mathematics problems. Each
takes one problem stated in full, keeps everything it writes in a run folder,
switches Claude Code's web tools off for its run, and ends with a
self-contained `proof.md`.

**`/math-proof:solo`**: Claude works the problem itself, in your session, as
one long turn. It is instructed to write its plan and each intermediate result
to a notes file before reasoning further, so that a response cut off at the
output limit loses nothing already written. The lighter of the two; try it
first.

**`/math-proof:siege`** (multi-agent): your session does no mathematics itself;
for hours it runs rounds of sub-agents, each starting fresh. Each round a judge
writes a few self-contained questions, independent workers answer them in
parallel, and the judge keeps a ledger of what is proved, refuted and open.
When a worker's answer contains a complete proof (or disproof) of the goal the
judge set, two more workers check that exact text line by line before the judge
concludes; if the opening rounds do not get there, later rounds send more
workers per round, most of them at the one step the proof still lacks.
`proof.md` has a Status section saying plainly what is and is not proved.
Expect dozens of sub-agent runs, and well over a hundred if all fourteen rounds
run: check `/usage` before you start on a subscription, or cap the spend with
`--max-budget-usd` in the unattended form below on an API key.

![How a siege run unfolds](assets/how-a-run-unfolds.png)

Either way `proof.md` is the model's own account, and any result it cites from
the literature is quoted from memory: read it critically. Full instructions:
[skills/solo/SKILL.md](skills/solo/SKILL.md) and
[skills/siege/SKILL.md](skills/siege/SKILL.md); the sub-agents are defined in
[agents/](agents/).

## Install

```
/plugin install math-proof@claude-plugins-official
```

Needs Claude Code 2.1.280 or later and, for `siege`, Python 3.7 or later on
your PATH as `python3` or `python` (no extra packages). Then add this `"env"`
block once to `~/.claude/settings.json` (or to `.claude/settings.json` in the
directory you run from, to limit it to that directory). The three lines allow
long responses, keep sub-agents in the foreground by turning background tasks
off, and give a silent worker four hours before it is cut off; they affect every
session that reads the file, so remove them when you stop using the plugin.

```json
{
  "env": {
    "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "128000",
    "CLAUDE_CODE_DISABLE_BACKGROUND_TASKS": "1",
    "CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS": "14400000"
  }
}
```

## Use

In an empty working directory, one per problem and one run at a time:

```
claude --model claude-opus-5-5 --effort high
> /math-proof:solo <the complete problem statement, or the path of a file holding it>
```

or `/math-proof:siege <…>` likewise. `solo` writes under `./math-proof-solo/`,
`siege` under `./math-proof-run/`; the session says where `proof.md` is when it
finishes. In the default permission mode Claude Code asks you to approve file
writes and the `siege` judge's shell commands (short Python checks and file
copies), so stay within reach or use the unattended form below; other than
that, type nothing while it runs. While `siege` runs, `state.md` in the run
folder shows the current round, and if the judge proves its goal and goes
after a stronger one, the result already proved is copied to `result-so-far.md`.

If a run stops (an error, a closed terminal, a usage limit, Ctrl-C), give the
same `/math-proof:…` line again in the same directory, not a free-form message:
that reloads the skill's instructions and permissions, and the run continues
from its folder with the settings it started with.

Options go before the problem: `DIR=path` picks another run folder, and
`siege` takes settings such as `MAX_ROUNDS=8` (its SKILL.md lists them). To
change a sub-agent's thinking effort, copy its file from [agents/](agents/)
into `~/.claude/agents/`, leave its `name:` line unchanged, and edit the
`effort:` line; your copy takes precedence over the plugin's.

Unattended, with the problem in a file (likewise for `solo`):

```
claude -p "/math-proof:siege problem.md" --model claude-opus-5-5 --effort high \
  --dangerously-skip-permissions
```

With an API key, adding `--max-budget-usd <amount>` to that `-p` command stops
the run once that much has been spent; giving the command again resumes it.

**Caution:** `siege`'s judge runs model-written Python through Claude Code's
shell tool on your machine. Use `--dangerously-skip-permissions` only in a
disposable container or VM, as a non-root user; otherwise approve its commands
by hand.

## License

Apache-2.0; see [LICENSE](LICENSE).

© Anthropic · Apache-2.0 · anthropics/claude-plugins-official

Похожие плагины

Всё по теме «Наука и исследования» →

Из того же набора123

Весь набор →
playground Собирает одностраничный HTML с ползунками, живым превью и готовым промптом, который можно скопировать обратно в Claude. ★ 44 635звёзд репо php-lsp Плагин подключает языковой сервер Intelephense к Claude Code. Он передаёт агенту диагностику и подсказки по коду для файлов с расширением .php. ★ 44 635звёзд репо mcp-tunnels Соединяет Claude с MCP-сервером внутри вашей сети через туннель Anthropic: без входящих портов и публичного доступа. ★ 44 635звёзд репо mcp-server-dev Три скилла, которые проведут от вопроса «что я вообще подключаю» до готового MCP-сервера с инструментами, авторизацией и, если нужно, виджетами в чате. ★ 44 635звёзд репо math-olympiad Решает задачи уровня IMO, Putnam и USAMO и проверяет доказательства отдельными агентами, которые не видят ход рассуждений. ★ 44 635звёзд репо lua-lsp Подключает языковой сервер Lua к Claude: подсказки по коду и диагностика для файлов .lua. ★ 44 635звёзд репо linear Интеграция с таск-трекером Linear для Claude Code. Позволяет создавать задачи, менять статусы и искать тикеты прямо из диалога с агентом. ★ 44 635звёзд репо learning-output-style Включает интерактивный режим: Claude просит вас дописать 5–10 строк в ключевых местах и объясняет свои решения по ходу работы. ★ 44 635звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой