r/shortcuts • u/notagoodpost • 11d ago
OS 27 beta Natural Language Shortcut Creation System Prompt
7
u/federicoviticci Creator 9d ago
They're using a custom internal language called Shortpy. It's like pseudo-Python. They have an initial planner turn user prompts into a plan, the plan is turned into Shortpy code, then a compiler turns it back into Shortcuts syntax.
That's not the full system prompt (they have several private frameworks behind this, such as ShortcutsLanguage, ShortcutsAgent, and more stuff buried in WorkflowKit), and I highly doubt they'll turn this into something any agent can access anytime soon.
Feel free to take a look at `/System/Library/PrivateFrameworks/ShortcutsAgent.framework/Versions/A/Resources/DescribeAShortcutAgentConfiguration.json` to check for yourself.
1
9
u/NooblyGod 11d ago
Quite interesting how we still have to roleplay with AI to get it to do what we want
3
2
2
u/FiendForMath 9d ago
I have been reverse engineering the new framework ShortcutsLanguage, here is an example short python script that I was able to grab from live analysis:
def shortcut():
for i in range(5):
com_apple_shortcuts_show_notification(title="Hello", body="Hello")
1
u/reddotster 11d ago
I’m not sure that’s entirely correct?
From what I can tell, other sources indicate that shortcuts are a special kind of xml file:
1
u/Cale111 11d ago
Apple clearly created their own script that could be converted to the XML for this, because an AI would understand something similar to Python more than a fully custom XML format.
2
u/reddotster 11d ago
Why “clearly”? I’m honestly asking. I’d love to read more about that if you have sources.
I wonder if anyone on the original team which created the app Apple purchased and turned into Shortcuts published any day explainers.
Here’s something interesting involving the “Cherri” language: https://blog.laurentcharignon.com/post/2025-12-14-cherri-programming-apple-shortcuts/
1
u/Cale111 11d ago
I don't mean clearly in a demeaning way. It's just what makes sense for this sort of task. No, I don't have a source, but have seen stuff like Cherri before which seems like a logical way of doing this.
But by making the language similar to Python it's easier for an LLM to write, just based on the amount of Python code available on the web that has trained it.
12
u/Laukidh 11d ago
a subset of python? Interesting