AI-generated commands must never execute automatically.
- Detect shell-like commands.
- Classify risk.
- Explain what the command does.
- Explain why it may be needed.
- Explain what can go wrong.
- Show safer alternatives.
- Require explicit confirmation.
- Execute only through a future audited command pipeline.
Commands involving these are risky:
sudosurmrmdirchmodchownddmkfsfdiskpartedmountumountsystemctl disablesystemctl stopapt removeapt purge- firewall, network, disk, user deletion, permission escalation,
/etc,/boot, and system directory changes
- Use Laravel Sanctum tokens.
- Never log tokens.
- Revoke current token on logout.
- Track desktop devices.
- Only backend services can deduct hosted credits.
- Local mode must not consume credits.