AI Script Assistant is a built-in AI-powered coding companion that helps you write, understand, and improve your shell scripts directly within the Addigy script editor. Whether you're building a new deployment script from scratch or troubleshooting an existing one, the assistant provides real-time guidance, code suggestions, and automated fixes — all without leaving the editor.
Note: AI Script Assistant is currently available as a premium experiment included for a limited time.
Overview
AI Script Assistant adds a chat panel alongside the script editor, giving you two powerful ways to work with AI:
- Ask Mode — Ask questions about your script's logic, error handling, security implications, or macOS compatibility. The assistant reads your code and provides detailed explanations.
- Edit Mode — Request code changes and the assistant modifies your script directly. You review proposed changes in a side-by-side diff view before accepting or rejecting them.
Additional capabilities include:
- Inline code completion — As you type, the assistant suggests code completions in real time, similar to a copilot experience.
- One-click Explain — Instantly get a detailed breakdown of what your script does.
- One-click Auto Fix — Automatically improve your script's error handling, security, and macOS compatibility.
-
Variable autocomplete — Type
$or${to see available Addigy variables for use in your scripts.
Prerequisites
- An active Addigy account with access to the script editor
- A script editor context that supports the AI Script Assistant (e.g., Custom Scripts, Maintenance scripts)
How to Open AI Script Assistant
AI Script Assistant launches automatically when you open a script in the enhanced editor.
- Navigate to any script editor in Addigy (e.g., Custom Scripts, Maintenance, or any context with a script field).
- Click the script editing area to open the full editor.
- The editor opens with your script on the left and the AI Script Assistant chat panel on the right.
Note: You can resize the chat panel by dragging the divider between the editor and the chat.
How to Ask Questions About a Script
Use Ask mode to understand what a script does, identify potential issues, or learn about specific commands.
- Ensure the mode selector at the bottom of the chat panel is set to Ask.
- Type your question in the message field. For example: "What does this script do?" or "Are there any security concerns with this script?"
- Press Enter to send your message.
- The assistant analyzes your script and responds with a detailed explanation.
You can also use the Explain Script button at the bottom of the chat panel to get a full breakdown of your script in one click, including logic, error handling, and security implications.
Note: The AI assistant can make mistakes. Always verify any generated code or suggestions before saving.
How to Edit a Script with AI
Use Edit mode to have the assistant make changes to your script. All changes are shown in a diff view so you can review them before applying.
- Switch the mode selector at the bottom of the chat panel to Edit.
- Type your request in the message field. For example: "Add error handling for the curl command" or "Make this script compatible with macOS Sequoia."
- Press Enter to send your request.
- The assistant modifies your script and displays a diff view showing the original code on the left and the proposed changes on the right.
- Review the changes. You can toggle between Split View and inline view using the Split View toggle.
- Click Accept to apply the changes, or Reject to discard them and keep your original script.
You can also use the Auto Fix Script button to have the assistant automatically improve your script's error handling, security, and macOS compatibility without writing a specific prompt.
How to Use Inline Code Completion
As you type in the editor, the assistant provides inline code suggestions automatically.
- Begin typing your script in the editor.
- After a brief pause, a ghost text suggestion appears inline showing a proposed completion.
- Press Tab to accept the suggestion, or continue typing to dismiss it.
Inline completions are context-aware and draw from the content of your script to provide relevant suggestions.
Monthly Usage Quota
AI Script Assistant usage is tracked against a monthly quota. A progress bar at the bottom of the editor shows your current usage.
- Green — Under 75% usage
- Yellow — Between 75% and 95% usage
- Red — Above 95% usage
The quota resets monthly. If you reach your limit, the assistant stops generating new responses and inline completions until the quota resets.
Tips for Best Results
-
Be specific — Instead of "fix my script," try "add error handling for the
curlcommand on line 12." - Use Ask mode first — If you are unsure what needs changing, ask the assistant to explain the script before requesting edits.
- Review diffs carefully — Always review proposed changes in the diff view before accepting.
- Start a new thread — If the conversation becomes long or unfocused, click New Thread to clear the chat and start fresh.
-
Use variables — Type
$or${in the editor to see available Addigy variables you can use in your scripts.
Frequently Asked Questions
Is AI Script Assistant available on all plans? AI Script Assistant is currently a premium experiment included for a limited time. Check the banner at the top of the editor for the latest availability information.
Can the AI assistant modify my script without my approval? No. In Edit mode, all proposed changes are displayed in a diff view. You must explicitly click Accept to apply changes. Clicking Reject keeps your original script unchanged.
Can I stop a response while it is generating? Yes. While the assistant is generating a response, an Abort Request button appears. Click it to cancel the current response.
What languages does the AI assistant support? AI Script Assistant is optimized for shell scripts (bash/zsh), which are the primary scripting languages used in Addigy for macOS device management.
Does the AI have access to my other scripts or devices? No. The assistant only has access to the script currently open in the editor. It does not access your other scripts, devices, or account data.
How do I provide feedback? Each AI response includes thumbs up and thumbs down buttons. Use these to rate responses and help improve the assistant. You can also click Give us feedback in the banner at the top of the editor.