A coding agent with exec security configured as an allowlist. Commands matching the allowlist patterns run immediately; everything else suspends for user approval. Users can reject commands and provide feedback so the agent adjusts its approach.Documentation Index
Fetch the complete documentation index at: https://polos.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Configure exec security
Define the agent
Handle approval events
When the agent tries to run a command that isn’t in the allowlist, the workflow suspends. The client catches the suspend event, shows the command, and collects the user’s decision.How it works
- The
exectool checks each command against the allowlist patterns - Matching commands (e.g.,
node hello.js) run immediately - Non-matching commands (e.g.,
npm install chalk) suspend the workflow - The client receives a suspend event with the command details
- If rejected with feedback, the agent reads the feedback and tries a different approach
- The
ask_usertool lets the agent proactively ask for clarification