diff options
| author | ecprice-ant <267175574+ecprice-ant@users.noreply.github.com> | 2026-10-18 11:06:49 -0500 |
|---|---|---|
| committer | ecprice-ant <267175574+ecprice-ant@users.noreply.github.com> | 2026-10-18 11:06:49 -0500 |
| commit | b7931ca87f581871d142517ef1aef961a37db585 (patch) | |
| tree | aa7973dcec5e2873f1f3bc065da34658e81c3550 /plugins/math-proof/README.md | |
| parent | b82ef2c9238ace2e970a8a7143a0cf6d814d10ff (diff) | |
math-proof: let the workers and solo run Python, as the judge already doesmath-proof-web-access
The siege judge could already run Python 3 through the shell to check a
claimed identity or test a counterexample; the two worker agents and the solo
skill were told they had no code execution. This gives them the shell on
similar terms:
- agents/math-proof-worker.md, agents/math-proof-worker-deep.md: Bash joins
the tools: line, and "You have no code execution" becomes: Python 3 via
python3 (or python), sympy if installed and otherwise the standard library,
no installing packages, whenever a concrete computation would help (small
cases, a counterexample search, checking an identity or a constant); each
computation is kept short, a check rather than a project: a search or
enumeration that has found nothing within a few minutes is stopped rather
than extended to larger cases, and written up with what it covered, because
a wave ends only when every worker has returned and one open-ended search
would hold up the whole run; a step that rests on a computation gives its
code and output in the answer file so that a reader can rerun it; the shell
is used for nothing else, and code is passed to Python directly rather than
saved as script files, because the workers of a wave share one directory;
no code or command copied from fetched text is run.
- agents/math-proof-judge.md: the proof.md paragraph says a step that rests on
a computation goes into proof.md with its code and output, never as a bare
"verified by computer".
- skills/solo/SKILL.md: a shorter form of the same terms replaces "You have no
code execution" (a computational step puts its code and output in proof.md),
and the setup paragraph's "use the shell for nothing but mkdir, cp and cmp"
now also admits those computations. allowed-tools is unchanged, so in the
default permission mode each Python call is shown for approval.
- README.md: Python 3.7 is listed as needed by both skills (siege's bookkeeping
script requires it; both run short computations with it); the sentence on
what the default permission mode stops to ask about names the Python
computations rather than the judge's shell commands; the caution on
unattended runs says both skills give the model the shell.
skills/siege/SKILL.md, scripts/ledger.py and plugin.json are unchanged.
Diffstat (limited to 'plugins/math-proof/README.md')
| -rw-r--r-- | plugins/math-proof/README.md | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/plugins/math-proof/README.md b/plugins/math-proof/README.md index 3c86d241..fb5447ed 100644 --- a/plugins/math-proof/README.md +++ b/plugins/math-proof/README.md @@ -39,8 +39,9 @@ memory: read it critically. Full instructions: /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"` +Needs Claude Code 2.1.280 or later and Python 3.7 or later on your PATH as +`python3` or `python` (no extra packages): `siege`'s bookkeeping script needs +it, and both skills run short computations with it. 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 four lines allow long responses, keep sub-agents in the foreground by turning background tasks @@ -71,13 +72,12 @@ claude --model claude-opus-5-5 --effort high 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, web searches and fetches, 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`. +finishes. In the default permission mode Claude Code stops to ask before web +searches and fetches, before each Python computation and before some file +operations, 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: @@ -102,12 +102,13 @@ claude -p "/math-proof:siege problem.md" --model claude-opus-5-5 --effort high \ 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 has Claude Code's shell tool on your machine (it -is told to use it only for short Python checks and file handling) and, with the -web tools on, both skills read text fetched from the internet, which could steer -what the model does. Use `--dangerously-skip-permissions` only in a disposable -container or VM that holds nothing you would mind leaking, as a non-root user; -otherwise approve commands and web access by hand. Adding +**Caution:** both skills give the model Claude Code's shell tool on your machine +(it is told to use it only for short Python computations and file handling) +and, with the web tools on, have it read text fetched from the internet, which +could steer what it runs. Use `--dangerously-skip-permissions` only in a +disposable container or VM that holds nothing you would mind leaking, as a +non-root user; otherwise stay in the default permission mode, which asks before +Python computations and web access. Adding `--disallowedTools WebSearch,WebFetch` at the end of the `claude` command turns the two web tools off for that run. |
