Skip to content

Feedback of shellFootGuns check doesn't seem to make its way to the LLM #137

Description

@Hypfer

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions