Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Initial suspicious commands #917

Merged
merged 12 commits into from
Feb 5, 2025
Merged

Initial suspicious commands #917

merged 12 commits into from
Feb 5, 2025

Conversation

therealnb
Copy link
Contributor

@therealnb therealnb commented Feb 4, 2025

Initial implementation of the prototype in https://github.com/stacklok/research/blob/command-detection/command_detection/command_models.ipynb. Closes #844

Note that:

  • There has been little optimisation of the ANN
  • We need to work on getting better data
  • Performance may not be good enough - testing required

Accuracy: 0.88
Precision: 0.8823529411764706
Recall: 0.7894736842105263
F1 Score: 0.8333333333333333

Signed-off-by: nigel brown <[email protected]>
Signed-off-by: nigel brown <[email protected]>
@therealnb therealnb requested review from ptelang, jhrozek and blkt February 4, 2025 15:53
@yrobla
Copy link
Contributor

yrobla commented Feb 5, 2025

It's great to have that! Have we measure how much time does it normally add to the pipeline?

@therealnb
Copy link
Contributor Author

@yrobla there is some timing info in https://github.com/stacklok/research/blob/command-detection/command_detection/command_models.ipynb (some charts). This model takes about 0.03-0.05 seconds.

@therealnb therealnb merged commit f0c387f into main Feb 5, 2025
4 checks passed
@therealnb therealnb deleted the codegate-844 branch February 5, 2025 11:39
rdimitrov added a commit that referenced this pull request Feb 5, 2025
therealnb pushed a commit that referenced this pull request Feb 5, 2025
@therealnb therealnb restored the codegate-844 branch February 5, 2025 12:51
@therealnb therealnb mentioned this pull request Feb 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Spotting commands in the stream from coding assistants like cline
3 participants