Read the routing ladder from routing-ladder.json, which a project replaces with a file of its own in its config's folder
CI / tests (pull_request) Successful in 2m37s
CI / tests (pull_request) Successful in 2m37s
This commit is contained in:
@@ -68,7 +68,21 @@ entry, as on its first run, is asked for one on the terminal; loop-inbox doesn't
|
||||
question. LOOP_CLAUDE_JUDGE_MODEL overrides the model for the judge, LOOP_CLAUDE_WORKER_MODEL for
|
||||
the worker and the session /talk opens; with both set, nothing is asked.
|
||||
|
||||
Where the project's model is on the routing ladder (bin/model_routing/ladder.py), the worker and the
|
||||
The routing ladder is a JSON list of rungs, least competent first, each a model at an effort of low,
|
||||
medium, high, xhigh or max:
|
||||
|
||||
[
|
||||
{"model": "claude-opus-5-5", "effort": "medium"},
|
||||
{"model": "claude-fable-5-2", "effort": "low"}
|
||||
]
|
||||
|
||||
This setup ships one, routing-ladder.json at its root. A project that keeps a routing-ladder.json in
|
||||
its config's folder, ~/.claude-projects/<key>/, runs on that ladder instead, whole: write there
|
||||
every rung the project may run on. loop-claude reads the project's ladder as each cycle starts, and
|
||||
never commits the file. subagent-rung and rule-hook read the same ladder; the routing figures,
|
||||
judge-replay and review-replay, which span every project, read the shipped one.
|
||||
|
||||
Where the project's model is on its routing ladder, the worker and the
|
||||
session /talk opens run on the rung that the chunk's todo.md item picks, and the judge of some
|
||||
models on another; a chunk no item routes runs on the project's model. The worker's prompts name the
|
||||
rungs it launches its reviews on. The worker's rung steps up as a chunk stays unfinished, when the
|
||||
@@ -102,6 +116,7 @@ Exit 1, saying why, when:
|
||||
~/.claude/skills/larv-review/standards/*.md where they exist, cannot be read or is not UTF-8
|
||||
- no config names the checkout, its config cannot be read, or the goals file holds no premises
|
||||
- the models file cannot be read or written
|
||||
- the project's routing ladder cannot be read or holds a fault
|
||||
- claude leaves no transcript
|
||||
- a transcript cannot be read or archived
|
||||
- a finished chunk's session cannot be deleted
|
||||
|
||||
Reference in New Issue
Block a user