diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-25 22:28:47 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-25 22:28:47 -0500 |
| commit | bc7117f55b9bed66cdcc1bd84a34d38ec7eb4edd (patch) | |
| tree | 6ad89927832a4f0e11354bafa1cff7f11b79b0ff /Omni/Agent | |
| parent | 683c8d597f3570c3c5bacead331298c7925b6bce (diff) | |
jr: add review command, --try-opus, Task-Id trailer
- jr review <task-id>: 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
Diffstat (limited to 'Omni/Agent')
| -rw-r--r-- | Omni/Agent/Worker.hs | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
