The Assistant could suggest adding tags based on the user's prompt, by means of running a classification prompt on top of a lightweight model (maybe locally, to avoid wasting AI credits). This feature could be optional.
An user prompts the model about some programming question, and the UI adds a modal, inline to the answer, asking if the detected tags should be added.