Elastic Copilot’s auto approve feature allows you to automatically approve and execute certain types of commands and code suggestions, streamlining your development workflow.

How It Works

Auto approve enables Elastic Copilot to execute pre-approved actions without requiring manual confirmation for each operation. This feature is designed to speed up repetitive tasks while maintaining safety through configurable rules.

Safe Operations

Automatically approved actions
  • File reading and analysis
  • Code formatting and linting
  • Documentation generation
  • Simple refactoring operations

Manual Approval

Always requires confirmation
  • File deletion or major changes
  • System configuration modifications
  • External API calls
  • Database operations

Configuration Options

Basic Settings

1

Enable Auto Approve

Open VSCode settings and search for “elastic.autoApproval.enabled”
2

Set Approval Rules

Configure which types of operations should be auto-approved
3

Define Exclusions

Specify files or directories that should always require manual approval

Advanced Configuration

Safety Features

Built-in Protections

High-Risk Operations: Auto approve never applies to operations that could cause data loss or security issues.
Audit Trail: All auto-approved actions are logged for review and debugging purposes.
Gradual Enablement: Start with conservative settings and gradually expand auto approve as you become comfortable with the feature.

Best Practices

Development Environment

Enable auto approve for code analysis, formatting, and documentation tasks

Production Environment

Disable auto approve for deployment and system configuration changes

Team Projects

Use consistent auto approve settings across team members

Security Considerations

Troubleshooting

Common Issues