v2.4.02026-11-06
What's changed
Apple platform version 27 support
Cherri now targets version 27 by default.
- Added the 27 platform version and made it the default client version.
- Added automation triggers with a new #trigger directive, so a Shortcut can be configured to run on its own. Supported triggers are screenshot, battery, stageManager, wifi, bluetooth, display and charging. Use more than one #trigger to fire from multiple different events. Automations must be enabled after import, and some additional settings are not embedded in the Shortcut data and must be manually set.
``ruby
#trigger wifi joined
#trigger bluetooth connect
alert("Connected")
`
- Added the new storage actions storeValue(), getStoredValue() and deleteStoredValue(). Content can be stored per Shortcut or globally. Unfortunately, at least currently, storage cannot be preset; you need to use something like:
`ruby
@value = getStoredValue("key")
if !@value {
setStoredValue("key", "default")
@value = "default"
}
`
- Updated the Use Model actions to askModel() and askProModel() to support the new Cloud Pro model option, plus the new allowSearch option (use Broad World Knowledge). askDeviceModel() replaces askDeviceLLM().
- Deprecated askLLM() and askCloudLLM(). They are now limited to versions below 27, since version 27 renamed the Cloud models.
Breaking changes
- #include 'stdlib' is now #include 'stdfunc'. The stdlib file was renamed to avoid confusion with the actions standard library.
- The default target version is now 27 instead of 26. Use #define version to target an earlier version.
- askLLM() and askCloudLLM() are unavailable when targeting version 27 or later. Use askModel() or askProModel() instead.
Fixes and improvements
- Allowed a variable as the body of fileRequest() (#199).
- Fixed decompiling an empty custom separator (#195).
- Declared an output type for rawAction() so its result can be used in conditions.
- Selected ToolKit Tools columns by name (#233).
- Added the paintbrushPointed glyph (#197).
- Fixed inaccurate action indexes for import questions. Import Questions used after function headers, control flow, or variable assignments recorded the wrong index, and a question on the first action had its index omitted.
- Fixed the line number reported by errors being off by one, and the error column highlight being compared against the wrong cursor.
- Fixed cursor accuracy when parsing comma-separated lists.
- Adjusted the compiled Shortcut metadata to better match what Shortcuts produces, including default workflow types and sorted input content item classes. Added the installedapp input type.
- Fixed the --no-ansi flag still producing highlight formatting in search results.
- Updated the generated action documentation to show ! on literal-only parameters and to print version restriction notes in plain language.
New contributors
- @hcgatewood made their first contribution in #233
New repo AI agent skill
During this time, I've added a skill to the repo called shortcuts-sync`. This tells the agent how to read the Shortcuts database and read the plist of Shortcuts, both on your Mac. If you have an iOS simulator installed through Device Hub via Xcode, it will also read that database for iOS-specific actions. I think this should benefit all contributions and reviews on the project and allow us to better verify the compiler output is accurate to what Shortcuts expects.
Other
- Cherri macOS app IDE has been updated to have better syntax highlighting specific to Cherri, a new Import option, fixed inline warnings and errors, and a slightly better Liquid Glass icon.
- Cherri Playground and Shortcut preview have been updated for version 27.
- Cherri iOS app on the App Store made by a contributor; see README.
Full changelog: https://github.com/electrikmilk/cherri/compare/v2.3.0...v2.4.0
v2.3.02026-05-23
Breaking Changes
* Input for runJSAutomation() input is now the second argument, but is also now optional.
* Updates rounding actions to support new rounding places. Ones Place, Tens Place, and Hundreds Place are now Integer, Tens, and Hundreds.
* Collapses some action categories to where they make more sense, or moves some frequently used actions to basic (always included)
* The Scripting actions category has been removed. Most of the actions were moved to basic and are now automatically included (non-breaking). However, some were moved to device actions.
* Some actions were also moved from settings to device actions.
* In any case, the compiler will report which include is missing.
* Adds more non-Mac actions, flashlight, and low power mode.
* Add the new getChargeLimit() action from the Battery Status action "Charging Limit" state.
Highlights
* Add support for device-specific content references by @electrikmilk in https://github.com/electrikmilk/cherri/pull/186
* Raw actions generally improved.
* Improved test coverage with tests we're meant to run to check runtime assumptions.
* bugfix #178: Fixes optional args in openCustomXCallbackURL()
* We now accept a text literal for the location argument of a location() action.
* fix: normalize rawAction nested parameters and variable values by @CorrectRoadH in https://github.com/electrikmilk/cherri/pull/184
New Contributors
* @CorrectRoadH made their first contribution in https://github.com/electrikmilk/cherri/pull/184
Full Changelog: https://github.com/electrikmilk/cherri/compare/v2.2.0...v2.3.0
v2.2.02026-04-29
⭐️ Thank you for 1.5k stars!
Breaking Changes
- @-prefix for variable references is now required and no longer deprecated.
- runAppleScript() argument order and script argument value type change.
What's Changed
* Scripting actions are automatically included if functions are used, meaning you are no longer required to add the scripting actions include to use functions. You can still add the scripting include, and it will not conflict, but it will be included automatically if you do not.
* Date comparisons and operations, though this is mainly enabled by the change below to fix conditionals and expand the types they support; it also includes changes to allow dates to be input into formatDate(), etc., even though they accept the string type. This should enable much easier date comparisons; see the newly added tests, for example, tests/date-comparisons.cherri.
* Compiler should be much simpler and faster due to refactors bringing us closer to parity with Shortcuts.
* Fix & improve conditionals in https://github.com/electrikmilk/cherri/pull/176: This fixes conditional type comparisons and expands to new types like dates and quantities, allowing for more types of comparisons.
* Fixes calling the same function in multiple places; call references were not being enumerated.
* Various improvements to decompilation, we now demarshal data from the Shortcut using the plist package instead of JSON, which will better preserve the types if you have precise number values in your Shortcut. This should also reduce some of the overhead vs converting to JSON, then to a struct. This has also increased type safety.
* The compiler now figures out the right include you need for the action you are trying to use from the standard actions. We were blocking some includes based on a bad regex we didn't need, so the compiler would get confused about which action include was required.
* Fixes issues with quantity values and using references for their values.
* More actions have been moved to being bootstrapped, now defined in Cherri files.
* Shortcuts containing comma decimal notation now decompile to floats.
* Fix two parser bugs in parser.go by @hobostay in https://github.com/electrikmilk/cherri/pull/162
* fix: avoid panic on empty identifier capitalization by @saschabuehrle in https://github.com/electrikmilk/cherri/pull/156
* Use plist omitempty flag more to use more types to build more action data as types by @electrikmilk in https://github.com/electrikmilk/cherri/pull/167
* bugfix #172: Cleanup and consolidate value formatting and Shortcut generation by @electrikmilk in https://github.com/electrikmilk/cherri/pull/175
* Move toggle/set actions and simple actions to definitions by @electrikmilk in https://github.com/electrikmilk/cherri/pull/177
Added actions
* Added orientation and Hotspot actions.
* Added actions for changing multitasking mode and showing the control center.
New Contributors
* @hobostay made their first contribution in https://github.com/electrikmilk/cherri/pull/162
* @saschabuehrle made their first contribution in https://github.com/electrikmilk/cherri/pull/156
and more...
Full Changelog: https://github.com/electrikmilk/cherri/compare/v2.1.1...v2.2.0
---
Adding support for AI agents
If agents are going to be used inherently by contributors, I want to teach those agents how to contribute to Cherri and to verify that their changes are correct. I've been using this to improve my own use of AI agents, mainly to keep documentation in sync, more informative, easier to read, and to do large targeted refactors, all manually reviewed.
This release was partially authored by Claude and reviewed by me to achieve many of the refactoring goals I've been meaning to achieve, which would have taken significantly longer. I continue to write, and always review all of the code for the project.
What's Next?
I think we've simplified a lot of the typing issues where we were not in parity with Shortcuts or producing optimal, minimal output.
- iOS 26.4 and more updates that we have yet to catch up on.
- Defining more actions now that it's easier to do so.
- Refining decompilation out of beta.
- Continuing to refine the Shortcut web preview.
- Allow using different versions of the compiler on the playground.
v2.1.12026-03-30
Thanks for over 1K stars!
We recently got posted on Hacker News!
https://news.ycombinator.com/item?id=47549824
Appreciate the love from HN! ❤️
Highlights
* Finalizes the switch to referencing variables using @ to distinguish them from other references and speed up parsing with fewer identifier lookups. This is not a breaking change, but rather currently produces a warning; apologies in advance if this creates clutter in the output.
* Allows using the expression result as a number in if comparisons.
* Fix timerDuration type not found in actions/music by @mjgardner in https://github.com/electrikmilk/cherri/pull/159
* Add built binary to .gitignore by @mjgardner in https://github.com/electrikmilk/cherri/pull/160
* Fix action definition identifier threshold for third-party apps by @maximilianspitzer in https://github.com/electrikmilk/cherri/pull/158
* fix: rawAction() reuses last call's identifier for all calls by @BTForIT in https://github.com/electrikmilk/cherri/pull/157
New Contributors
* @mjgardner made their first contribution in https://github.com/electrikmilk/cherri/pull/159
* @maximilianspitzer made their first contribution in https://github.com/electrikmilk/cherri/pull/158
* @BTForIT made their first contribution in https://github.com/electrikmilk/cherri/pull/157
Full Changelog: https://github.com/electrikmilk/cherri/compare/v2.1.0...v2.1.1
v2.1.02025-12-28
Happy Holidays! 🎉
Breaking Changes
- [ ! ] Most, if not all, date actions have changed their date argument type from variable to text. This should make using these actions easier going forward.
Highlights
- Packages can be hosted anywhere that uses the Git remote repository schema: https://{host}/{username}/cherri-{package_name}.git. This means Codeberg can now host Cherri packages, etc. Add a URI to a package using the --add-uri= argument.
- Cherri can now be installed using the Nix package manager! Add Nix flake by @0rvar in https://github.com/electrikmilk/cherri/pull/136.
- Actions now decompile using the toolkit DB unless --no-toolkit is used. This should decompile actions in a much more friendly way than raw actions!
- Fixes camel case transformation of action names when importing from Shortcuts DB.
- Fixes splitting text every character with splitText().
- Fixes the CurrentDate global to be a string type.
- Variable references may now be validly prefixed with an @. I'm considering requiring this syntax to speed up reference handling and readability. This could also guarantee the use of constants for function arguments rather than creating variables.
New Contributors
* @0rvar made their first contribution in https://github.com/electrikmilk/cherri/pull/136
THANK YOU!
We reached almost 400 stars this year! Thank you for all of the PRs & issues this year, and for the many years this project has been going! I look forward to many more! I really appreciate all of the support, and it's been amazing to see the ways people have been able to make Cherri useful in their lives!
🎄 Merry Christmas & Happy New Year!
Full Changelog: https://github.com/electrikmilk/cherri/compare/v2.0.0...v2.1.0
v2.02025-11-22
Breaking Changes
- Definitions of inputs, outputs, from, and quick actions now allow overriding and appending.
Highlights
- Package Manager
We now have a package manager based on GitHub repos. Learn more. This now creates an internal ~/.cherri/ directory to store trusted packages.
- Import Actions on macOS
A Shortcuts SQLite database was discovered by r/Shortcuts on Reddit. There is now syntax to support importing actions, argument types, enumerations, and output types for apps you have installed on a macOS system. Use --toolkit-locale= to set the language. Learn more
- Fixes manual use of HubSign and strengthens validation of signing server requests. Adds Cherri user agent to be nice to signing servers.
- Add support for multilingual identifiers - Allows for identifiers in any charset, digits, and _.
- Memory footprint reduction - Unless we need to send the Shortcut to a signing server, we now encode the Shortcut data to the file instead of marshaling the plist XML into memory, then writing it to a file.
- Deterministic UUIDs - Use the new --derive-uuids to get the same UUIDs for the same Cherri code for testing.
What's Changed
* Fix default shortcut icon color.
* Implement package manager based on GitHub repos by @electrikmilk in https://github.com/electrikmilk/cherri/pull/124
* Bugfix #126: Fix decompiling location action and other actions we match in includes by @electrikmilk in https://github.com/electrikmilk/cherri/pull/129
* Implement Quantity Field Values Value Type by @electrikmilk in https://github.com/electrikmilk/cherri/pull/130
* Import actions and types from Shortcuts DB by @electrikmilk in https://github.com/electrikmilk/cherri/pull/135
Full Changelog: https://github.com/electrikmilk/cherri/compare/v1.3.2...v2.0.0
v1.3.22025-11-02
Hotfix
- Fixes issue where using fewer arguments than the number of arguments would leave the params empty or default.
Full Changelog: https://github.com/electrikmilk/cherri/compare/v1.3.1...v1.3.2
v1.3.12025-11-01
Hotfixes
- Fixes a silly bug where if there was no file argument, we panicked 🙃
- Fix issues with doc comments and pre-parsing comment collecting. I thought this was fixed in the last release, but this should finally fix it properly. The previous release wouldn't include comments in the Shortcut at all if you used the --comments argument.
Full Changelog: https://github.com/electrikmilk/cherri/compare/v1.3.0...v1.3.1
v1.3.02025-10-26
Breaking changes
- [ ! ] File name argument MUST be the first argument. Previously, this could be any argument. This has been done for consistency of arguments.
- [ ! ] Custom actions are now called functions to differentiate them from action definitions. https://github.com/electrikmilk/cherri/pull/118
- [ ! ] Action definitions have dropped the #define prefix.
Highlights
- Lots of clean-up, complexity reduction, single responsibility, etc.
- Optimized output file size - Shortcut/Plist files are now with fewer lines, with an optimization to remove some empty values at the top level.
- Search action definitions in a file - You can now run a Cherri file with the --action= argument to search action definitions defined in that file. Keep in mind, this will also search any included files.
- Glyphs search now outputs all glyphs when no input is provided.
Fixes
- Issues with some lines with slashes getting recognized as comments.
- Excluding comments from action include files. This was supposed to have been prevented in the past, but is now fixed.
- Adds alternate color codes to decompilation. Now that we have these codes, more Shortcut colors will decompile.
- Some incorrect file names and line numbers in compiler warnings and errors.
- Multiple Mac definitions being added to decompilations
- Spacing issues with decompilations
- Allow constants to be instantiated that are also assigned to variables later in decompilations
Signing
Signing seems to have been fixed in macOS 26 Tahoe, so you shouldn't be required to use HubSign if you are on a machine running macOS 26.
Everything else
* Added the Shazam logo with its corresponding code by @alexjmiller5 in https://github.com/electrikmilk/cherri/pull/115
* Add ability to optionally use control flow output by @electrikmilk in https://github.com/electrikmilk/cherri/pull/117
* Fix variable interpolation with UTF-16 multi-byte characters by @patrick204nqh in https://github.com/electrikmilk/cherri/pull/121
New Contributors
* @alexjmiller5 made their first contribution in https://github.com/electrikmilk/cherri/pull/115
* @patrick204nqh made their first contribution in https://github.com/electrikmilk/cherri/pull/121
What's Next?
- Playground focus: I've noticed some serious usability issues on mobile that I missed before, and these issues will be addressed. Additionally, I will review the playground's usability experience, responsiveness, and address some known issues and any issues I discover along the way.
- Documentation site fixes: This has already happened, but much of the documentation has been updated for this release and has also been improved in usability.
- Continuing to test and fix issues with decompile/import. I use the iCloud Link of popular Shortcuts on RoutineHub to get their plist and compare the results when decompiled. There still seems to be some issues identifying when we should allow variables and constants to be declared.
Thanks so much!
Full Changelog: https://github.com/electrikmilk/cherri/compare/v1.2.0...v1.3.0
v1.2.02025-09-28
What's Changed
iOS 26 Update
* Adds 26 client version, and now default outputs Shortcuts that use the new client version.
* Add Apple Intelligence actions by @electrikmilk in https://github.com/electrikmilk/cherri/pull/113
* Adds actions like Find Message, Find Email, and more.
* Updates QR code action to accept custom foreground and background colors.
* Adds search and spotlight workflows, use from search to appear in search, from spotlight to also receive input from macOS Spotlight using ShortcutInput.
* Adds 100+ new glyphs.
Homebrew Formulae
We now have a Homebrew Formulae for the CLI: https://github.com/electrikmilk/homebrew-cherri
Breaking changes
* RepeatIndex is now of type integer, so that it can be used for comparison.
Everything else
* Adds actions to get and set Focus Mode.
* Adds constraints to Magnifier actions.
* and even more actions...
Full Changelog: https://github.com/electrikmilk/cherri/compare/v1.1.2...v1.2.0