castle-web-cli 0.4.32 → 0.4.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/agent.js +7 -3
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -429,9 +429,13 @@ async function runTaskAgentIn(ctx, task) {
429
429
  notesPath: path.join(relDir, 'notes.md'),
430
430
  depsSummary: ctx.depsSummary,
431
431
  });
432
- // Claude task runs get /goal (claude code's built-in commit-to-completion
433
- // command) plus the system-prompt autonomy reminder.
434
- const invocation = buildAgentInvocation(ctx.backend, 'task', ctx.backend === 'claude' ? `/goal ${taskPrompt}` : taskPrompt, ctx.claudeModel);
432
+ // No /goal wrapper: it makes a fresh evaluator re-check the WHOLE task
433
+ // prompt (including user-only "done when you reach wave 5"-style play
434
+ // criteria) after every turn, which traps the agent in an endless
435
+ // can't-verify-live-play loop. A single message + the autonomy reminder
436
+ // appended to the system prompt (CLAUDE_TASK_SYSTEM_REMINDER) is enough to
437
+ // get the work done; the agent stops when the code is in, the user verifies.
438
+ const invocation = buildAgentInvocation(ctx.backend, 'task', taskPrompt, ctx.claudeModel);
435
439
  let result = { ok: false, finalText: '', error: 'not run' };
436
440
  let lineBuf = '';
437
441
  const flushFeedLines = (delta) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "castle-web-cli",
3
- "version": "0.4.32",
3
+ "version": "0.4.33",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "castle-web": "./dist/index.js"