插件低风险未认领
math-proof
Two skills for hard mathematics problems, each ending in a self-contained proof.md: /math-proof:solo has the session work the problem itself in stages with a notes file; /math-proof:siege works on it for hours in rounds of judge and worker sub-agents and says plainly what is and is not proved.
anthropicsanthropics/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]
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 and
skills/siege/SKILL.md; the sub-agents are defined in
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.
{
"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/
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.
宿主
成员2 个技能 · 3 个助手
siegeWork on one hard mathematics problem in rounds: each round a judge writes a few self-contained questions, independent workers answer them, and the judge keeps a ledger of what is proved, refuted and open, until the judge concludes or the rounds run out, and then a proof.md says plainly what is and is not proved. A run takes hours and dozens of worker runs. Usage: /math-proof:siege [NAME=value settings] <the problem, stated in full, or the path of a file holding it>.
soloWork on one hard mathematics problem in this session yourself, with no sub-agents: reason in stages, record each settled step in a notes file so that nothing written is lost if a response is cut off, and end with a self-contained proof.md. Usage: /math-proof:solo <the problem, stated in full, or the path of a file holding it>.
math-proof-judge助手The math-proof judge: it plans each round's questions, reads the answers, keeps the summary and ledger, and writes up, revises and finalizes proof.md. It does one step per launch and is launched only by the math-proof plugin's siege skill.
math-proof-worker助手A math-proof worker: it answers one self-contained question from a file, writing its answer to a file as it reasons. It has no memory between questions and is launched only by the math-proof plugin's siege skill.
math-proof-worker-deep助手The higher-effort math-proof worker, used from the escalation round on (round 4, unless the siege setting ESC_ROUND says otherwise). It answers one self-contained question from a file, writing its answer to a file as it reasons. It has no memory between questions and is launched only by the math-proof plugin's siege skill.
权限
- 完整安装
- #1
python~/.claude检查
低风险 · 没有发现需要提醒的地方。
未经人工审核 · 已做规则检查;模型审核尚未开启。
另有 5 处低风险标记:常见命令之类,只记录、不提醒
- 规则 · resource_abuse
agents/math-proof-judge.md:15 - 规则 · command_injection
skills/siege/SKILL.md:7 - 规则 · command_injection
skills/siege/SKILL.md:239 - 规则 · resource_abuse
skills/siege/SKILL.md:639 - 规则 · command_injection
skills/siege/scripts/ledger.py:528
文件10 个文件 · 273.8 KB
- LICENSE11.1 KB
- README.md4.7 KB
.claude-plugin/1
- plugin.json423 B
agents/3
- math-proof-judge.md3.6 KB
- math-proof-worker-deep.md3.2 KB
- math-proof-worker.md3.1 KB
assets/1
- how-a-run-unfolds.png137.7 KB
skills/siege/1
- SKILL.md73.7 KB
skills/siege/scripts/1
- ledger.pyx30.2 KB
skills/solo/1
- SKILL.md6.1 KB
版本
- #1—最新2026年11月19日