Skip to content

harness: an agent rewrites the PR texts a reader fails - #58

Merged
lneto merged 1 commit into
masterfrom
claude_harness_3050f3a
Nov 26, 2026
Merged

lneto merged 1 commit into
masterfrom
claude_harness_3050f3a

Conversation

@lneto

@lneto lneto commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

When the lunatik-reader agent failed a pull request title or body, review.js opened no pull request, and the session rewrote the text by hand in its own thread, whose context every later request pays for again. The reader failed texts on points no rule names, too, and the line telling the maintainer that a session could be cleared sat inside a reply, where he missed it.

The harness/ mount moves to luainkernel/harness@3050f3a, which carries the three harness pull requests merged since the last move. The reader fails a title or a body only where it cannot restate it or it breaks a rule the pr-prep skill states, and names the rest as remarks that fail nothing (luainkernel/harness#20). review.js hands a title or a body the reader fails to another agent, the writer, which rewrites each passage the reader quoted, and has the reader read the result again, up to the number of times its new argument reads gives, 3 by default (luainkernel/harness#21). Nothing a script calls changes.

A reply that says the session can be cleared now ends on one fixed block, which names /clear, the file the hand-off was written to and continue, the first message that resumes the cleared session. The Stop hook sends back, once, a reply that says so without the block (luainkernel/harness#32).

Each failed read but the last costs one writer and one more read, and each reply the hook sends back costs one more turn.

The mount moves to luainkernel/harness@3050f3a, which carries
luainkernel/harness#20, #21 and #32.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lneto lneto added the complexity: small One line or one file, with a trivial or existing test label Nov 26, 2026
@lneto
lneto merged commit 1dd855c into master Nov 26, 2026
2 checks passed
@lneto
lneto deleted the claude_harness_3050f3a branch November 27, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

complexity: small One line or one file, with a trivial or existing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant