Repository navigation
feat: Add safety approval before executing any command - #6
Merged
Merged
Conversation
- Add RequireApproval configuration setting in tools.safety - Implement interactive approval prompt with three options: - Yes: Execute this command - Yes, and don't ask again: Execute this and all future commands - No: Cancel command execution - Add session-based approval tracking to avoid repeated prompts - Integrate approval system into ToolEngine.ExecuteBash method - Add new CLI commands: - `infer tools safety status`: Show current safety approval status - `infer tools safety enable`: Enable safety approval requirement - `infer tools safety disable`: Disable safety approval requirement - Update documentation with new safety configuration options - Safety approval is enabled by default for security Co-authored-by: Eden Reich <[email protected]>
Signed-off-by: Eden Reich <[email protected]>
Signed-off-by: Eden Reich <[email protected]>
Contributor
Author
|
@claude You didn't update the README.md with the information of this feature. |
Contributor
|
Claude finished @edenreich's task —— View job I've successfully updated the README.md with comprehensive documentation for the safety approval system. Todo List
What was added to the README:Configuration Section:
Tool Commands:
Security Features:
Troubleshooting:
Examples:
The documentation now provides complete coverage of the safety approval feature, making it easy for users to understand and configure this security enhancement. |
- Add tools.safety.require_approval configuration option - Document new safety management CLI commands - Update tool security features section - Include interactive safety approval example - Add troubleshooting section for safety prompts Co-authored-by: Eden Reich <[email protected]>
Contributor
|
🎉 This PR is included in version 0.3.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the safety approval system requested in issue #5.
Summary
Adds a comprehensive safety approval system that prompts users before executing any command with three dropdown options:
Changes
RequireApprovalconfiguration setting intools.safetyToolEngine.ExecuteBashmethodTesting
Fixes #5
Generated with Claude Code