Text this: Leveraging Local LLMs for Secure In-System Task Automation With Prompt-Based Agent Classification