-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add excel-agent-raycast extension #24985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
BoTigrou
wants to merge
1
commit into
raycast:main
Choose a base branch
from
BoTigrou:ext/excel-agent-raycast
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6,468
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| .DS_Store | ||
| node_modules | ||
| dist | ||
| .raycast | ||
| raycast-env.d.ts | ||
| *.log |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Changelog | ||
|
|
||
| ## [1.0.0] - 2026-01-29 | ||
|
|
||
| ### Added | ||
| - **AI Chat Integration**: Use `@Excel Agent` in Raycast Chat to manipulate spreadsheets with full context. | ||
| - **Batch Execution**: The AI now groups instructions into single transactions for 3-4x faster execution. | ||
| - **Test Connection**: Dedicated feature to verify Excel connectivity and Accessibility permissions. | ||
| - **Built-in Scripts**: Reliability layer that uses pre-built AppleScript for common tasks (Bold, Financial Style, Borders) bypassing AI generation errors. | ||
| - **Context Awareness**: The agent now reads "Sheet Name" and "Selection" before complying with requests. | ||
|
|
||
| ### Improved | ||
| - **Speed**: Reduced context gathering latency by 80% (removed scanning entire used range by default). | ||
| - **Reliability**: Rewrote AppleScript execution to using strict `tell active sheet` scoping to prevent silent failures. | ||
| - **Error Handling**: Clearer error messages when Excel is not running or permissions are missing. | ||
| - **UI**: Streamlined "Ask Excel" command interface with Quick Actions and History. | ||
|
|
||
| ### Fixed | ||
| - Fixed an issue where AppleScript would run successfully but not apply changes to the active workbook. | ||
| - Fixed timeouts on slower machines by optimizing script generation. | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2026 Julien Archambault | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| # Excel Agent for Raycast | ||
|
|
||
| Control Microsoft Excel with natural language. Ask questions, format cells, create tables, and more — all from Raycast. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| ## Features | ||
|
|
||
| - **Natural Language Control** — Just type what you want to do in Excel | ||
| - **AI Chat Integration** — Use `@Excel Agent` in Raycast Chat to build complex models | ||
| - **Quick Actions** — One-click formatting for common tasks (Financial Style, Borders, etc.) | ||
| - **Robust & Fast** — Optimized specifically for speed and reliability on Mac | ||
| - **Multiple AI Providers** — Works with Raycast AI, OpenAI, Google Gemini, or Anthropic Claude | ||
|
|
||
| ## Requirements | ||
|
|
||
| - **macOS** — Uses AppleScript to control Excel | ||
| - **Microsoft Excel** — Must be installed and running | ||
| - **Raycast v1.104.3+** | ||
|
|
||
| ## Setup | ||
|
|
||
| ### 1. Install the Extension | ||
|
|
||
| Install from the Raycast Store or build from source. | ||
|
|
||
| ### 2. Grant Accessibility Permissions | ||
|
|
||
| The first time you run a command, macOS will ask you to grant Raycast Accessibility permissions: | ||
|
|
||
| 1. Open **System Settings** → **Privacy & Security** → **Accessibility** | ||
| 2. Add and enable **Raycast** | ||
|
|
||
| ### 3. Configure AI Provider | ||
|
|
||
| Open the extension preferences and choose your AI provider: | ||
|
|
||
| | Provider | Setup Required | | ||
| |----------|---------------| | ||
| | **Raycast AI** | Raycast Pro subscription | | ||
| | **OpenAI** | API key from [platform.openai.com](https://platform.openai.com) | | ||
| | **Google Gemini** | API key from [Google AI Studio](https://makersuite.google.com) | | ||
| | **Anthropic Claude** | API key from [console.anthropic.com](https://console.anthropic.com) | | ||
|
|
||
| ## Usage | ||
|
|
||
| ### 1. AI Chat (@Excel Agent) | ||
|
|
||
| The most powerful way to use this extension. In Raycast AI Chat, type **@Excel Agent** followed by your request: | ||
|
|
||
| - *"Create a DCF model template with assumptions for revenue growth and WACC"* | ||
| - *"Analyze this data and format the outliers in red"* | ||
| - *"Build a sales table for Q1-Q4 and add a Total column"* | ||
|
|
||
| The agent will intelligently break down tasks, write data, format cells, and confirm actions. | ||
|
|
||
| ### 2. "Ask Excel" Command | ||
|
|
||
| Quickly execute single commands or apply presets: | ||
|
|
||
| - **Quick Actions** — Instant formatting (Financial Style, Bold Headers, Currency, etc.) | ||
| - **Recent Commands** — Your history of custom commands | ||
| - **Custom Command** — Type one-off instructions like *"Make A1:E1 bold"* | ||
|
|
||
| ### 3. "Read Excel" Command | ||
|
|
||
| Quickly view the current selection and sheet information without leaving Raycast. | ||
|
|
||
| ## Tips | ||
|
|
||
| - **Be specific** — Instead of "make it bold", try "make row 1 bold" | ||
| - **Combine actions** — "Bold headers and add borders to used range" | ||
| - **Use Quick Actions** — They're instant and don't require AI | ||
| - **Check Excel is running** — The extension will remind you if Excel isn't open | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| | Issue | Solution | | ||
| |-------|----------| | ||
| | "Excel not running" | Open Microsoft Excel with a workbook | | ||
| | "Accessibility permissions" | Add Raycast to System Settings → Privacy & Security → Accessibility | | ||
| | "No workbook open" | Open or create an Excel file | | ||
| | AI not responding | Check your API key in preferences | | ||
|
|
||
| ## Privacy | ||
|
|
||
| - Your Excel data stays on your Mac | ||
| - AI providers only receive the minimal context needed (sheet name, selection address) | ||
| - No data is stored on external servers by this extension | ||
|
|
||
| ## License | ||
|
|
||
| MIT License — See [LICENSE](LICENSE) for details. | ||
|
|
||
| --- | ||
|
|
||
| Made with ❤️ for Excel power users. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| const typescriptParser = require("@typescript-eslint/parser"); | ||
| const typescriptPlugin = require("@typescript-eslint/eslint-plugin"); | ||
| const reactPlugin = require("eslint-plugin-react"); | ||
|
|
||
| module.exports = [ | ||
| { | ||
| files: ["src/**/*.ts", "src/**/*.tsx"], | ||
| languageOptions: { | ||
| parser: typescriptParser, | ||
| ecmaVersion: "latest", | ||
| sourceType: "module", | ||
| }, | ||
| plugins: { | ||
| "@typescript-eslint": typescriptPlugin, | ||
| react: reactPlugin, | ||
| }, | ||
| rules: { | ||
| ...typescriptPlugin.configs.recommended.rules, | ||
| "react/jsx-uses-react": "error", | ||
| "react/jsx-uses-vars": "error", | ||
| }, | ||
| }, | ||
| ]; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
{PR_MERGE_DATE}placeholder instead of hardcoded date.Context Used: Rule from
dashboard- What: Changelog entries must use{PR_MERGE_DATE}placeholder in titles, be placed at the top of th... (source)Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!