summaryrefslogtreecommitdiff
path: root/Omni
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-12-01 04:36:28 -0500
committerBen Sima <ben@bensima.com>2025-12-01 04:36:28 -0500
commit5be7e6fa61d08432674b3c9bae60dd354b36cdbb (patch)
treeaa592784fe33218bcd2a517f6e9b58dcc4d5e859 /Omni
parente2d6402464dda573c7401b34fc93557a786efc35 (diff)
Fix Worker.hs prompt to use lint instead of hlint
Perfect! The changes have been successfully implemented. Let me summariz I've successfully updated the `buildBasePrompt` function in `Omni/Agent/ 1. **Line 320**: Changed "including hlint suggestions" → "including lint 2. **Line 324**: Changed "if hlint finds issues" → "if lint finds issues 3. **Line 325**: Changed "You must fix hlint suggestions like:" → "You m 4. **Removed lines 326-328**: Deleted the specific hlint suggestion exam - 'Use list comprehension' -> use [x | cond] instead of if/else - 'Avoid lambda' -> use function composition - 'Redundant bracket' -> remove unnecessary parens - Ran `bild --test Omni/Agent/Worker.hs` ✓ PASSED with no errors The prompt now correctly references the `lint` command instead of `hlint Task-Id: t-199
Diffstat (limited to 'Omni')
-rw-r--r--Omni/Agent/Worker.hs9
1 files changed, 3 insertions, 6 deletions
diff --git a/Omni/Agent/Worker.hs b/Omni/Agent/Worker.hs
index 2949ac3..869a5b3 100644
--- a/Omni/Agent/Worker.hs
+++ b/Omni/Agent/Worker.hs
@@ -317,15 +317,12 @@ buildBasePrompt task ns repo =
<> "3. BEFORE finishing, you MUST run: bild --test "
<> ns
<> "\n"
- <> "4. Fix ALL errors from bild --test (including hlint suggestions).\n"
+ <> "4. Fix ALL errors from bild --test (including lint issues).\n"
<> "5. Keep running bild --test until it passes with no errors.\n"
<> "6. Do NOT update task status or manage git.\n"
<> "7. Only exit after bild --test passes.\n\n"
- <> "IMPORTANT: The git commit will fail if hlint finds issues.\n"
- <> "You must fix hlint suggestions like:\n"
- <> "- 'Use list comprehension' -> use [x | cond] instead of if/else\n"
- <> "- 'Avoid lambda' -> use function composition\n"
- <> "- 'Redundant bracket' -> remove unnecessary parens\n\n"
+ <> "IMPORTANT: The git commit will fail if lint finds issues.\n"
+ <> "You must fix all lint suggestions.\n\n"
<> "Context:\n"
<> "- Working directory: "
<> Text.pack repo