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:
@@ -22,10 +22,12 @@ def fresh(task: str, premises: str, route: Route, anchor: Rung | None) -> str:
|
||||
|
||||
def routed_by(route: Route, anchor: Rung | None) -> str:
|
||||
said = f"loop-claude runs you on {route.rung}, routed by item {route.item}'s R + C of {route.risk_and_complexity}. Name each todo.md item this chunk takes, with its R + C, whether or not it is item {route.item}."
|
||||
if anchor is None or highest(route.rung, anchor) == route.rung:
|
||||
if anchor is None or route.rung == anchor:
|
||||
return said
|
||||
# The Agent tool takes a family name, such as opus, and runs that family's latest model; each rung names its family's latest, so the two match.
|
||||
return f"{said} Your rung is below the project's, {anchor}: launch each reviewer, each comprehension seat and the security pass's subagent with the Agent tool's model `{anchor.model.split('-')[1]}` and effort `{anchor.effort}`, and run a full scan only from such a subagent, since the scan's agents run on the model that starts them."
|
||||
# Below the project's rung, the reviewers stay on it to hold quality; above it, the seats score every chunk on one rung, and the security pass spends no more than the project chose.
|
||||
below = highest(route.rung, anchor) == anchor
|
||||
launched = "each reviewer, each comprehension seat and the security pass's subagent" if below else "each comprehension seat and the security pass's subagent"
|
||||
return f"{said} Your rung is {'below' if below else 'above'} the project's, {anchor}: launch {launched} with the Agent tool's model `{anchor.family()}` and effort `{anchor.effort}`, and run a full scan only from such a subagent, since the scan's agents run on the model that starts them."
|
||||
|
||||
|
||||
def resumed(unfinished_evidence: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user