Answer prose round 1: 0 🔴, 7 🟡; say what subagent-rung takes and prints in one reading, split the prompt's rung sentence, and sort README's tools

This commit is contained in:
2026-10-15 00:20:15 +02:00
parent d5bc4c00d1
commit 17e1ebe8f1
12 changed files with 21 additions and 20 deletions
+4 -4
View File
@@ -4,9 +4,9 @@ usage: subagent-rung <model> <R+C>
<model> is the project's model, such as claude-opus-5-5, and <R+C> the task's R + C, a whole
number from 2 to 20, scored as for a todo.md item. It prints the rung that R + C picks from the
model's cheapest rung, as the Agent tool takes it: `model sonnet, effort high`. A model off the
routing ladder routes nothing: it prints nothing, says so on stderr and exits 0, and the subagent
takes no model or effort.
model's cheapest rung, in the Agent tool's words, such as `model sonnet, effort high`. For a model
off the routing ladder, the tool prints nothing on stdout, says so on stderr and exits 0; launch the
subagent with no model or effort.
Exit 1, saying why, on bad arguments.
"""
@@ -29,7 +29,7 @@ def main(argv: list[str]) -> int:
print(__doc__.strip())
return 0
if len(argv) != 2 or not re.fullmatch(r"[2-9]|1[0-9]|20", argv[1]):
print(f"subagent-rung: cannot read the arguments {' '.join(argv)}; {USAGE}", file=sys.stderr)
print(f"subagent-rung: cannot read the arguments{' ' + ' '.join(argv) if argv else ''}; {USAGE}", file=sys.stderr)
return 1
model, total = argv
args = agent_args(model, int(total))