diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-30 00:12:05 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-30 00:12:05 -0500 |
| commit | c4c5556c2906dbbdca0d884479b4fb67d032de07 (patch) | |
| tree | 28cb7f1966cd837ef71bfcbc9b4dd8c40a842158 /Omni/Task/RaceTest.hs | |
| parent | 1f38531d3184c30ad8a4f365f78288cc23d7baf2 (diff) | |
Replace amp subprocess with native Engine in Worker
Implementation complete. Summary of changes to
[Omni/Agent/Worker.hs](fi
1. **Added imports**: `Omni.Agent.Engine`, `Omni.Agent.Tools`,
`System.E
2. **Added `shouldUseEngine`** (L323-327): Checks `JR_USE_ENGINE=1`
envi
3. **Added `runWithEngine`** (L329-409): Native engine implementation
th
- Reads `OPENROUTER_API_KEY` from environment - Builds
`EngineConfig` with cost/activity/tool callbacks - Builds
`AgentConfig` with tools from `Tools.allTools` - Injects AGENTS.md,
facts, retry context - Returns `(ExitCode, Text, Int)` tuple
4. **Added `buildBasePrompt`** and `buildRetryPrompt`** (L411-465):
Help
5. **Added `selectModel`** (L467-471): Model selection (currently
always
6. **Updated `processTask`** (L92-120): Checks feature flag and
routes t
Task-Id: t-141.4
Diffstat (limited to 'Omni/Task/RaceTest.hs')
0 files changed, 0 insertions, 0 deletions
