I've found the LLM spinning for an hour, trying to execute a command and eventually believing that the dd binary must be broken.
Instead, I think what happened is that this must've triggered:
|
{regexp.MustCompile(`(?i)\bdd\s+if=`), "dd if="}, |
There is also this error message, apparently:
|
return fmt.Errorf("command contains dangerous pattern: %s", fg.reason) |
But I'm not sure if it makes its way to the LLM, given that here:
|
_generateFeedbackForLLM(_command, _stdout, _stderr, exitCode) { |
|
// Only provide feedback for failed commands |
|
if (exitCode === 0) { |
|
return undefined; |
|
} |
|
return `Command failed with exit code ${exitCode}`; |
|
} |
it only gets the exit code. Which is also what I see in the UI.
I have not yet told an LLM to trace through this, so this might be wrong, but what I can for sure say is:
"dd command failed, repeatedly, without feedback => LLM got very confused, scared and traumatized"
I've found the LLM spinning for an hour, trying to execute a command and eventually believing that the
ddbinary must be broken.Instead, I think what happened is that this must've triggered:
juggler/cmd/juggler/ops/shell_command_parse.go
Line 343 in 7d8a860
There is also this error message, apparently:
juggler/cmd/juggler/ops/shell_command_parse.go
Line 368 in 7d8a860
But I'm not sure if it makes its way to the LLM, given that here:
juggler/web/extensions/juggler-core/context-items/execute-context-item.js
Lines 1009 to 1015 in 7d8a860
it only gets the exit code. Which is also what I see in the UI.
I have not yet told an LLM to trace through this, so this might be wrong, but what I can for sure say is:
"dd command failed, repeatedly, without feedback => LLM got very confused, scared and traumatized"