You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Add safety approval before executing any command #5
This is essential in order to keep the operating system safe.
Every time the LLM wants to execute a tool, prompt the user back to confirmation with a drop down that they can either say yes for this particular command or yes for the entire chat session or completely reject the execution.
Acceptance Criteria
When a tool call is about to get executed the user is prompted
The prompt will contain a drop down with Yes, Yes, and don't ask again, No
If chosen Yes the command will be executed
if chosen Yes, and don't ask again the command and subsequent commands will be executed without a prompt
if chosen No the command will be ignore / not executed
Created ApprovalSession system in internal/safety.go
Integrated approval checks into ToolEngine.ExecuteBash() method
All commands tested successfully ✅
Code formatted and linted ✅
Configuration Example:
tools:
enabled: truesafety:
require_approval: true # Prompt user before executing any command
The safety approval system is now active and will prompt users before executing any tool command, providing the exact dropdown options requested in the acceptance criteria.
Activity
edenreich commentedon Aug 10, 2025
@claude Can you work on this one ?
claude commentedon Aug 10, 2025
Claude finished @edenreich's task —— View job •
claude/issue-5-20250810-1438• Create PR ➔✅ Safety approval system implemented successfully!
I've successfully implemented the safety approval feature that prompts users before executing any command with the requested dropdown options.
Todo List:
✨ Implementation Summary:
Core Features Implemented:
tools.safety.require_approvalsetting (enabled by default)New CLI Commands:
infer tools safety status- Show current safety approval statusinfer tools safety enable- Enable safety approval requirementinfer tools safety disable- Disable safety approval requirementTechnical Implementation:
SafetyConfigstruct inconfig/config.goApprovalSessionsystem ininternal/safety.goToolEngine.ExecuteBash()methodConfiguration Example:
The safety approval system is now active and will prompt users before executing any tool command, providing the exact dropdown options requested in the acceptance criteria.
chore(release): 0.3.0 [skip ci]
inference-gateway-releaser commentedon Aug 10, 2025
🎉 This issue has been resolved in version 0.3.0 🎉
The release is available on:
v0.3.0Your semantic-release bot 📦🚀