Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions hooks/stop-hook.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@ function formatIterationPromptLine({ iteration, prompt }) {
}

function formatPredictedPromptSection({ iteration, predictedResponse, predictedConfidence, cloneThreshold, prediction }) {
const roundedConfidence = Number(predictedConfidence).toFixed(5)
return `${formatIterationPromptLine({ iteration, prompt: predictedResponse })}

Confidence: ${predictedConfidence} / threshold: ${cloneThreshold}
Confidence: ${roundedConfidence} / threshold: ${cloneThreshold}
Prediction status: ${prediction.status || ''}
Prediction id: ${prediction.id || ''}`
}
Expand Down Expand Up @@ -412,12 +413,10 @@ The loop state file has been removed. Tell the user Clone could not produce a sa
predicted_response: predictedResponse,
})

block(`You are continuing a Clone Loop.

${predictedPromptSection}
block(`${predictedPromptSection}

The user-configured confidence threshold was met. The prediction cleared
confidence ${predictedConfidence}. Evaluate
confidence ${Number(predictedConfidence).toFixed(5)}. Evaluate
the prediction in context, then continue as if the user had provided the
predicted prompt when it is consistent with the current task state.
Prediction reasoning: ${prediction.reasoning || ''}
Expand Down Expand Up @@ -447,7 +446,7 @@ Prediction reasoning: ${prediction.reasoning || ''}

Clone was not confident enough to continue automatically.
- status: ${prediction.status || ''}
- confidence: ${predictedConfidence}
- confidence: ${Number(predictedConfidence).toFixed(5)}
- threshold: ${cloneThreshold}

${predictedPromptSection}
Expand Down
Loading