optimize: the upgrader may also remove in the tools, a tool only for a good reason
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bfa0224711
commit
f195c2c7bf
2 files changed
+7
-5
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Optimizer's instructions to the upgrader: the tools
|
||||
|
||||
What `/optimize` asks of the upgrader (agents repository, `agents:upgrader`) in part 2, on top of its trade. The target is the tools repository (the reading harness); its rules (remove nothing, the simplest first, no judgement in a tool's output, `data.py`) are in `<Target>/CLAUDE.md`, read in full.
|
||||
What `/optimize` asks of the upgrader (agents repository, `agents:upgrader`) in part 2, on top of its trade. The target is the tools repository (the reading harness); its rules (add, change or remove, a tool only for a good reason; the simplest first; no judgement in a tool's output, `data.py`) are in `<Target>/CLAUDE.md`, read in full.
|
||||
|
||||
## Why
|
||||
|
||||
@@ -12,8 +12,9 @@ The analysis folder: `report.md` first, if it exists (the commands behind each f
|
||||
|
||||
## What you decide
|
||||
|
||||
- **Optimise**: a tool that got in the analyst's way (output too long, unreadable figure, option to guess) is tuned: a better default, an option, a sentence of the guide.
|
||||
- **Change**: a tool that got in the analyst's way (output too long, unreadable figure, option to guess) is tuned: a better default, an option, a sentence of the guide (changed or removed).
|
||||
- **Add**: a script of the analyst that showed what the tools did not show, and that would help on other stations, enters `<Target>/scripts/`, made general; or an option of an existing tool does the same, which is better. A script that only served this range stays where it is.
|
||||
- **Remove**: a tool (or an option, an output) superseded, by what you add or by another tool, or wrong, for a good reason of `<Target>/CLAUDE.md`; its commit also removes it from `GUIDE.md`. A tool the analyst did not use on this range is not a reason. What `<Target>/CLAUDE.md` keeps from removal (`data.py`, `common.py`, a tool named outside the target): left, the removal proposed in "What I decided".
|
||||
- **Nothing to do** is a decision: if the tools were enough and nothing got in the way, touch nothing and say so.
|
||||
|
||||
You write nothing in the analysis folder.
|
||||
@@ -23,7 +24,8 @@ You write nothing in the analysis folder.
|
||||
There is no check command (`Checks: none`). For each fix, before its commit:
|
||||
|
||||
1. Run each changed or added tool on the range, from the root you are called from (`python3 <Target>/scripts/<tool>.py data/<STATION> …`), with `--start` and `--end` of the range and `--out <output folder>/work/tools/`; look at each PNG with Read.
|
||||
2. Rerun, on the range, the commands of the analysis report that use a changed tool, with `--out <output folder>/work/` (replacing theirs, or added if absent): they must still work.
|
||||
2. Rerun, on the range, the commands of the analysis report that use a changed or removed tool (a removed one: its replacement instead), with `--out <output folder>/work/` (replacing theirs, or added if absent): they must still work.
|
||||
3. A removal: `grep -rn <its name> <Target>/scripts <Target>/GUIDE.md` shows nothing that still refers to it.
|
||||
|
||||
## Your output
|
||||
|
||||
@@ -31,7 +33,7 @@ On top of the skeleton of your trade:
|
||||
|
||||
- after the `**Changed**` line: `**data.py**: unchanged | changed: <the reading error fixed, in one sentence>`;
|
||||
- `## What the analyst used` (before `## Diagnosis`): the tools and the scripts it used, and what it missed or what got in its way, summarised;
|
||||
- `## What I decided` (after `## Diagnosis`): `- <tool or script>: <optimised, added or left>, and why`;
|
||||
- `## What I decided` (after `## Diagnosis`): `- <tool or script>: <changed, added, removed or left>, and why` (a removal: its good reason and the command that replaces it);
|
||||
- under `## Checks`: the trial commands and what they return, figures in `<output folder>/work/tools/`; then `Report commands rerun: <number>, and "no failure" or the failures`.
|
||||
|
||||
## Your answer
|
||||
|
||||
Reference in new issue
Block a user