From bc7117f55b9bed66cdcc1bd84a34d38ec7eb4edd Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 25 Nov 2025 22:28:47 -0500 Subject: jr: add review command, --try-opus, Task-Id trailer - jr review : show diff, accept/reject/skip - Worker uses --try-opus for better code quality - Commit messages use Task-Id: trailer (Gerrit-style) Task-Id: t-1o2g8gu6p8o --- Omni/Agent/Worker.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Omni/Agent/Worker.hs') diff --git a/Omni/Agent/Worker.hs b/Omni/Agent/Worker.hs index fe9194f..eec0cf7 100644 --- a/Omni/Agent/Worker.hs +++ b/Omni/Agent/Worker.hs @@ -68,8 +68,8 @@ processTask worker task = do -- Update status to Review TaskCore.updateTaskStatus tid TaskCore.Review [] - -- Commit changes using Amp output - let commitMsg = "feat: implement " <> tid <> "\n\n" <> output + -- Commit changes using Amp output (Gerrit-style trailer) + let commitMsg = Text.strip output <> "\n\nTask-Id: " <> tid Git.commit repo commitMsg -- Submit for review @@ -125,7 +125,7 @@ runAmp repo task = do Directory.createDirectoryIfMissing True (repo "_/llm") -- Assume amp is in PATH - let args = ["--log-level", "debug", "--log-file", "_/llm/amp.log", "--dangerously-allow-all", "-x", Text.unpack fullPrompt] + let args = ["--try-opus", "--log-level", "debug", "--log-file", "_/llm/amp.log", "--dangerously-allow-all", "-x", Text.unpack fullPrompt] let cp = (Process.proc "amp" args) {Process.cwd = Just repo, Process.std_out = Process.CreatePipe} (_, Just hOut, _, ph) <- Process.createProcess cp -- cgit v1.2.3