Launch comprehension seats as an agent type of their own, without CLAUDE.md
CI / tests (pull_request) Successful in 4m45s

This commit is contained in:
2026-11-17 09:30:54 +01:00
parent 641645c081
commit aa2815ba75
14 changed files with 83 additions and 167 deletions
+5 -7
View File
@@ -93,9 +93,7 @@ skills/comprehension-panel/seat-prompts.md builds them. It prints the worktree's
prompt's. It takes {{language}}, {{kind}}, {{domain}}, {{domain docs}} and {{3am question}} from the
checkout's AGENTS.md → "Scoring run". claude-config keeps no AGENTS.md, so there it takes them from
seat-prompts.md → "claude-config's values". It fills the other placeholders from the worktree and
the panel's SKILL.md. --preloaded replaces {{preloaded}}, which by default names each CLAUDE.md the main checkout's claudeMdExcludes doesn't exclude, its
imports and each rule file without `paths:` that Claude Code loads into a seat. Where any one of
the five values is missing, it exits 1 and doesn't write anything. Where a setup that
the panel's SKILL.md. Where any one of the five values is missing, it exits 1 and doesn't write anything. Where a setup that
record-scoring never removed is still there, it removes it first and says so.
record-scoring takes the scores file of a run needs-scoring-run calls, whose first line names no
@@ -213,7 +211,7 @@ def run_needs_scoring_run(given: list[str]) -> Failure | None:
def fits_prepare_scoring(given: list[str]) -> bool:
return not given or len(given) == 2 and given[0] == "--preloaded"
return not given
def run_record_scoring(given: list[str]) -> Failure | None:
@@ -236,7 +234,7 @@ COMMANDS = {
"needs-scoring-run": Command("needs-scoring-run [<item ID>...]", are_ids, run_needs_scoring_run, ids_from=0),
"scoring-run-owed": Command("scoring-run-owed", no_arguments, lambda given: with_default_branch(lambda default: owed(default, pathlib.Path.home()), stale_ok=False)),
"record-ruling": Command("record-ruling <votes file>", lambda given: len(given) == 1, lambda given: printed(record_ruling(pathlib.Path(given[0]), pathlib.Path.home(), time.time()))),
"prepare-scoring": Command("prepare-scoring [--preloaded <text>]", fits_prepare_scoring, lambda given: prepared_scoring(given[1] if given else None)),
"prepare-scoring": Command("prepare-scoring", fits_prepare_scoring, lambda given: prepared_scoring()),
"record-scoring": Command("record-scoring <scores file> [<item ID>...]", lambda given: bool(given) and are_ids(given[1:]), run_record_scoring, ids_from=1),
"places": Command("places", no_arguments, lambda given: printed(read_places(pathlib.Path.home()))),
"agreement": Command("agreement", no_arguments, lambda given: printed(read_agreement(pathlib.Path.home()))),
@@ -293,9 +291,9 @@ def with_default_branch(command: typing.Callable[[str], Failure | None], stale_o
return command(branch)
def prepared_scoring(preloaded: str | None) -> Failure | None:
def prepared_scoring() -> Failure | None:
worktree = top()
return worktree if isinstance(worktree, Failure) else printed(prepare_scoring(worktree, preloaded, pathlib.Path.home()))
return worktree if isinstance(worktree, Failure) else printed(prepare_scoring(worktree, pathlib.Path.home()))
def make_review_folder() -> Failure | None: