Run Command Whitelist

It would be great if we could have a whitelist of Run Commands that the Composer Agent could execute without waiting for approval. I often have the agent generate unit tests as it goes, run the tests, and iterate on the results. I don’t want to give the agent the ability to run everything without my approval, but I would like to be able to say that ‘pytest’ commands are ok to run without my approval.

Even if we needed to include the entire command in the whitelist for safety it would be helpful. Then we could have a button in the Composer to ‘Always Run’.

If thats too dangerous still, then just make the approval apply to the current Composer conversation.

Settings JSON: { "composerAgentRunList": ["python -m pytest tests/unit/test_process_file.py -v"] }

3 Likes