Hand a reviewer the shared goal too, and describe the hook and the replay mode in the README
This commit is contained in:
@@ -121,8 +121,9 @@ it. It exits 1 when the pass takes no more rounds, or, with --rerun, when the re
|
||||
missing.
|
||||
|
||||
reviewer-context is the SubagentStart hook. It reads the hook's input on stdin. For an agent under
|
||||
agents/, which starts without CLAUDE.md, it prints the hook reply that hands the agent the Prose
|
||||
and Vocabulary sections of ~/.claude/CLAUDE.md; for any other agent it doesn't print anything.
|
||||
agents/, which starts without CLAUDE.md, it prints the hook reply that hands the agent the Shared
|
||||
goal, Prose and Vocabulary sections of ~/.claude/CLAUDE.md; for any other agent it doesn't print
|
||||
anything.
|
||||
|
||||
Exit 1, saying why, on unknown arguments, an unknown item ID, a seats file it cannot read or that
|
||||
breaks the shape above, a todo.md that fails rank_todo.py after record-scoring records a run, or
|
||||
|
||||
@@ -1005,7 +1005,7 @@ class LarvReviewTool(unittest.TestCase):
|
||||
self.assertEqual((missing.returncode, missing.stdout), (1, ""))
|
||||
self.assertIn("CLAUDE.md", missing.stderr)
|
||||
(self.checkout.parent / ".claude").mkdir(exist_ok=True)
|
||||
(self.checkout.parent / ".claude" / "CLAUDE.md").write_text("## Prose\n\nShort.\n\n## Vocabulary\n\nWords.\n")
|
||||
(self.checkout.parent / ".claude" / "CLAUDE.md").write_text("## Shared goal\n\nHealth.\n\n## Prose\n\nShort.\n\n## Vocabulary\n\nWords.\n")
|
||||
ran = hook("prose-reviewer")
|
||||
self.assertEqual(ran.returncode, 0, ran.stderr)
|
||||
self.assertIn("## Prose\n\nShort.\n\n## Vocabulary\n\nWords.", json.loads(ran.stdout)["hookSpecificOutput"]["additionalContext"])
|
||||
|
||||
Reference in New Issue
Block a user