- Co-Authored-By
- Claude Opus 5 (1M context) <noreply@anthropic.com>
- Claude-Session
- https://claude.ai/code/session_01SoZMfWRSGnf6FZX2Ar9rQ2
Ride the session goal on every outgoing turn instead of behind a tool call
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
packages/openagents-cli/src/cli.ts -
modified
packages/openagents-cli/src/coder-goals.ts -
modified
packages/openagents-cli/src/coder-session.ts -
modified
packages/openagents-cli/test/coder-goals.test.ts -
modified
packages/openagents-cli/test/coder-session.test.ts -
modified
scripts/uncalled-production-symbol-baseline.json
Diff
6 files changed, +138 -35
packages/openagents-cli/src/cli.ts modified +6 -1
@@ -2582,7 +2582,12 @@ const coderCommand = Command.make(
| 2582 | 2582 |
|
| 2583 | 2583 |
|
| 2584 | 2584 |
|
| 2585 |
|
|
| 2585 |
|
|
| 2586 |
|
|
| 2587 |
|
|
| 2588 |
|
|
| 2589 |
|
|
| 2590 |
|
|
| 2586 | 2591 |
|
| 2587 | 2592 |
|
| 2588 | 2593 |
|
packages/openagents-cli/src/coder-goals.ts modified +19 -21
@@ -6,7 +6,10 @@
| 6 | 6 |
|
| 7 | 7 |
|
| 8 | 8 |
|
| 9 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 10 | 13 |
|
| 11 | 14 |
|
| 12 | 15 |
|
@@ -211,19 +214,29 @@ export function goalBudgetExhaustedPrompt(goal: PersistentGoal): string {
| 211 | 214 |
|
| 212 | 215 |
|
| 213 | 216 |
|
| 214 |
|
|
| 217 |
|
|
| 218 |
|
|
| 219 |
|
|
| 220 |
|
|
| 221 |
|
|
| 222 |
|
|
| 223 |
|
|
| 224 |
|
|
| 225 |
|
|
| 226 |
|
|
| 215 | 227 |
|
| 216 | 228 |
|
| 217 | 229 |
|
| 218 | 230 |
|
| 219 |
|
|
| 220 |
|
|
| 231 |
|
|
| 232 |
|
|
| 233 |
|
|
| 221 | 234 |
|
| 222 | 235 |
|
| 223 | 236 |
|
| 224 | 237 |
|
| 225 | 238 |
|
| 226 |
|
|
| 239 |
|
|
| 227 | 240 |
|
| 228 | 241 |
|
| 229 | 242 |
|
@@ -234,24 +247,9 @@ export function goalTool(goalStore: GoalStore): CoderTool {
| 234 | 247 |
|
| 235 | 248 |
|
| 236 | 249 |
|
| 237 |
|
|
| 250 |
|
|
| 238 | 251 |
|
| 239 | 252 |
|
| 240 |
|
|
| 241 |
|
|
| 242 |
|
|
| 243 |
|
|
| 244 |
|
|
| 245 |
|
|
| 246 |
|
|
| 247 |
|
|
| 248 |
|
|
| 249 |
|
|
| 250 |
|
|
| 251 |
|
|
| 252 |
|
|
| 253 |
|
|
| 254 |
|
|
| 255 | 253 |
|
| 256 | 254 |
|
| 257 | 255 |
|
packages/openagents-cli/src/coder-session.ts modified +19 -1
@@ -28,6 +28,8 @@ import type { CoderTask, CoderTaskId, CoderTaskRegistry } from "./coder-tasks.js
| 28 | 28 |
|
| 29 | 29 |
|
| 30 | 30 |
|
| 31 |
|
|
| 32 |
|
|
| 31 | 33 |
|
| 32 | 34 |
|
| 33 | 35 |
|
@@ -1154,7 +1156,23 @@ export class CoderSession {
| 1154 | 1156 |
|
| 1155 | 1157 |
|
| 1156 | 1158 |
|
| 1157 |
|
|
| 1159 |
|
|
| 1160 |
|
|
| 1161 |
|
|
| 1162 |
|
|
| 1163 |
|
|
| 1164 |
|
|
| 1165 |
|
|
| 1166 |
|
|
| 1167 |
|
|
| 1168 |
|
|
| 1169 |
|
|
| 1170 |
|
|
| 1171 |
|
|
| 1172 |
|
|
| 1173 |
|
|
| 1174 |
|
|
| 1175 |
|
|
| 1158 | 1176 |
|
| 1159 | 1177 |
|
| 1160 | 1178 |
|
packages/openagents-cli/test/coder-goals.test.ts modified +19 -4
@@ -78,10 +78,6 @@ describe("InMemoryGoalStore and goalTool", () => {
| 78 | 78 |
|
| 79 | 79 |
|
| 80 | 80 |
|
| 81 |
|
|
| 82 |
|
|
| 83 |
|
|
| 84 |
|
|
| 85 | 81 |
|
| 86 | 82 |
|
| 87 | 83 |
|
@@ -90,6 +86,25 @@ describe("InMemoryGoalStore and goalTool", () => {
| 90 | 86 |
|
| 91 | 87 |
|
| 92 | 88 |
|
| 89 |
|
|
| 90 |
|
|
| 91 |
|
|
| 92 |
|
|
| 93 |
|
|
| 94 |
|
|
| 95 |
|
|
| 96 |
|
|
| 97 |
|
|
| 98 |
|
|
| 99 |
|
|
| 100 |
|
|
| 101 |
|
|
| 102 |
|
|
| 103 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 93 | 108 |
|
| 94 | 109 |
|
| 95 | 110 |
|
packages/openagents-cli/test/coder-session.test.ts modified +75
@@ -681,3 +681,78 @@ describe("the /goal command in CoderSession", () => {
| 681 | 681 |
|
| 682 | 682 |
|
| 683 | 683 |
|
| 684 |
|
|
| 685 |
|
|
| 686 |
|
|
| 687 |
|
|
| 688 |
|
|
| 689 |
|
|
| 690 |
|
|
| 691 |
|
|
| 692 |
|
|
| 693 |
|
|
| 694 |
|
|
| 695 |
|
|
| 696 |
|
|
| 697 |
|
|
| 698 |
|
|
| 699 |
|
|
| 700 |
|
|
| 701 |
|
|
| 702 |
|
|
| 703 |
|
|
| 704 |
|
|
| 705 |
|
|
| 706 |
|
|
| 707 |
|
|
| 708 |
|
|
| 709 |
|
|
| 710 |
|
|
| 711 |
|
|
| 712 |
|
|
| 713 |
|
|
| 714 |
|
|
| 715 |
|
|
| 716 |
|
|
| 717 |
|
|
| 718 |
|
|
| 719 |
|
|
| 720 |
|
|
| 721 |
|
|
| 722 |
|
|
| 723 |
|
|
| 724 |
|
|
| 725 |
|
|
| 726 |
|
|
| 727 |
|
|
| 728 |
|
|
| 729 |
|
|
| 730 |
|
|
| 731 |
|
|
| 732 |
|
|
| 733 |
|
|
| 734 |
|
|
| 735 |
|
|
| 736 |
|
|
| 737 |
|
|
| 738 |
|
|
| 739 |
|
|
| 740 |
|
|
| 741 |
|
|
| 742 |
|
|
| 743 |
|
|
| 744 |
|
|
| 745 |
|
|
| 746 |
|
|
| 747 |
|
|
| 748 |
|
|
| 749 |
|
|
| 750 |
|
|
| 751 |
|
|
| 752 |
|
|
| 753 |
|
|
| 754 |
|
|
| 755 |
|
|
| 756 |
|
|
| 757 |
|
|
| 758 |
|
scripts/uncalled-production-symbol-baseline.json modified -8
@@ -2443,14 +2443,6 @@
| 2443 | 2443 |
|
| 2444 | 2444 |
|
| 2445 | 2445 |
|
| 2446 |
|
|
| 2447 |
|
|
| 2448 |
|
|
| 2449 |
|
|
| 2450 |
|
|
| 2451 |
|
|
| 2452 |
|
|
| 2453 |
|
|
| 2454 | 2446 |
|
| 2455 | 2447 |
|
| 2456 | 2448 |
|