Route the worker's subagents by their task's R + C, and keep seats and the security pass on the project's rung

This commit is contained in:
2026-10-15 00:09:22 +02:00
parent 1d00d3ee82
commit 258b7e4de5
14 changed files with 123 additions and 24 deletions
+4
View File
@@ -11,6 +11,10 @@ class Rung:
def flags(self) -> list[str]:
return ["--model", self.model, *(["--effort", self.effort] if self.effort else [])]
def family(self) -> str:
"""The model's family, such as opus, which the Agent tool takes as its model and runs that family's latest model; each rung names its family's latest, so the two match."""
return self.model.split("-")[1]
# The archive records this wording, and loop_claude.routing.ROUTED reads it back to resume a chunk on its rung.
def __str__(self) -> str:
return f"{self.model} at {self.effort} effort" if self.effort else self.model