Refuse a review launch below the rung loop-claude gives its worker

This commit is contained in:
2026-10-16 06:26:38 +02:00
parent 661170cc4a
commit 66c98281a6
15 changed files with 221 additions and 25 deletions
+5 -1
View File
@@ -11,9 +11,13 @@ class Rung:
def flags(self) -> list[str]:
return ["--model", self.model, *(["--effort", self.effort] if self.effort else [])]
def family(self) -> str:
"""The Agent tool's name for the model, such as opus for claude-opus-5-5."""
return self.model.split("-")[1]
def agent_args(self) -> str:
"""The rung in the Agent tool's words. The tool takes a family name, such as opus, and runs that family's latest model, which is the model each rung names."""
return f"model {self.model.split('-')[1]}, effort {self.effort}"
return f"model {self.family()}, effort {self.effort}"
# The archive records this wording, and model_routing.route.ROUTED reads it back to resume a chunk on its rung.
def __str__(self) -> str: