Skip to content

Commit bb3ae0a

Browse files
fix: only enable 12 core actions by default, rest are on-demand
Fresh installs had all 38 actions enabled, injecting ~1200 tokens of tool definitions into every system prompt. This consumed ~30% of the 4096-token context window, leaving less room for conversation history. Now only 12 frequently-used actions are enabled by default: open_app, create_note, create_reminder, get_battery, get_now_playing, get_wifi, next_track, play_on_spotify, play_pause_music, search_web, set_volume, toggle_dark_mode The remaining 26 actions are registered but disabled — users can enable them via the TUI actions panel or rcli action commands. Existing users with ~/.rcli/actions.json preferences are unaffected. This frees ~800 tokens of context for conversation history on fresh installs. Made-with: Cursor
1 parent d2b427e commit bb3ae0a

11 files changed

Lines changed: 26 additions & 26 deletions

src/actions/app_control_actions.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void register_app_control_actions(ActionRegistry& registry) {
8989
registry.register_action(
9090
{"open_url", "Open a URL in the default browser",
9191
"{\"url\": \"https://...\"}",
92-
true,
92+
false,
9393
"system",
9494
"Go to github.com",
9595
"rcli action open_url '{\"url\": \"https://github.com\"}'"},
@@ -98,7 +98,7 @@ void register_app_control_actions(ActionRegistry& registry) {
9898
registry.register_action(
9999
{"list_apps", "List currently running applications",
100100
"{}",
101-
true,
101+
false,
102102
"system",
103103
"What apps are running?",
104104
"rcli action list_apps '{}'"},
@@ -107,7 +107,7 @@ void register_app_control_actions(ActionRegistry& registry) {
107107
registry.register_action(
108108
{"quit_app", "Quit a macOS application",
109109
"{\"app\": \"application name\"}",
110-
true,
110+
false,
111111
"system",
112112
"Quit Safari",
113113
"rcli action quit_app '{\"app\": \"Safari\"}'"},
@@ -116,7 +116,7 @@ void register_app_control_actions(ActionRegistry& registry) {
116116
registry.register_action(
117117
{"get_frontmost_app", "Get the name of the currently active application",
118118
"{}",
119-
true,
119+
false,
120120
"system",
121121
"What app am I using?",
122122
"rcli action get_frontmost_app '{}'"},

src/actions/browser_actions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void register_browser_actions(ActionRegistry& registry) {
8787
registry.register_action(
8888
{"get_browser_url", "Get the URL of the active browser tab (Safari/Chrome/Arc)",
8989
"{}",
90-
true,
90+
false,
9191
"web",
9292
"What page am I looking at?",
9393
"rcli action get_browser_url '{}'"},
@@ -96,7 +96,7 @@ void register_browser_actions(ActionRegistry& registry) {
9696
registry.register_action(
9797
{"get_browser_tabs", "List all open browser tabs in the front window",
9898
"{}",
99-
true,
99+
false,
100100
"web",
101101
"Show my open tabs",
102102
"rcli action get_browser_tabs '{}'"},

src/actions/clipboard_actions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void register_clipboard_actions(ActionRegistry& registry) {
2323
registry.register_action(
2424
{"clipboard_read", "Read text from clipboard",
2525
"{}",
26-
true,
26+
false,
2727
"system",
2828
"What's on my clipboard?",
2929
"rcli action clipboard_read '{}'"},
@@ -32,7 +32,7 @@ void register_clipboard_actions(ActionRegistry& registry) {
3232
registry.register_action(
3333
{"clipboard_write", "Copy text to clipboard",
3434
"{\"text\": \"text to copy\"}",
35-
true,
35+
false,
3636
"system",
3737
"Copy 'Hello World' to my clipboard",
3838
"rcli action clipboard_write '{\"text\": \"Hello World\"}'"},

src/actions/communication_actions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void register_communication_actions(ActionRegistry& registry) {
7575
registry.register_action(
7676
{"facetime_call", "Start a FaceTime video call",
7777
"{\"contact\": \"name, phone number, or email\"}",
78-
true,
78+
false,
7979
"communication",
8080
"FaceTime John",
8181
"rcli action facetime_call '{\"contact\": \"john@example.com\"}'"},
@@ -84,7 +84,7 @@ void register_communication_actions(ActionRegistry& registry) {
8484
registry.register_action(
8585
{"facetime_audio", "Start a FaceTime audio call (phone call)",
8686
"{\"contact\": \"name, phone number, or email\"}",
87-
true,
87+
false,
8888
"communication",
8989
"Call Mom",
9090
"rcli action facetime_audio '{\"contact\": \"+1234567890\"}'"},
@@ -93,7 +93,7 @@ void register_communication_actions(ActionRegistry& registry) {
9393
registry.register_action(
9494
{"run_shortcut", "Run an Apple Shortcut by name",
9595
"{\"name\": \"shortcut name\", \"input\": \"optional input text\"}",
96-
true,
96+
false,
9797
"productivity",
9898
"Run my Morning Routine shortcut",
9999
"rcli action run_shortcut '{\"name\": \"Morning Routine\"}'"},

src/actions/files_actions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void register_files_actions(ActionRegistry& registry) {
2020
registry.register_action(
2121
{"search_files", "Search for files using Spotlight",
2222
"{\"query\": \"search term\"}",
23-
true,
23+
false,
2424
"system",
2525
"Find files about project plan",
2626
"rcli action search_files '{\"query\": \"project plan\"}'"},

src/actions/media_actions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void register_media_actions(ActionRegistry& registry) {
160160
registry.register_action(
161161
{"previous_track", "Go to the previous track",
162162
"{}",
163-
true,
163+
false,
164164
"media",
165165
"Play the previous song",
166166
"rcli action previous_track '{}'"},
@@ -187,7 +187,7 @@ void register_media_actions(ActionRegistry& registry) {
187187
registry.register_action(
188188
{"play_apple_music", "Play a song on Apple Music by name",
189189
"{\"query\": \"song or artist name\"}",
190-
true,
190+
false,
191191
"media",
192192
"Play Beatles on Apple Music",
193193
"rcli action play_apple_music '{\"query\": \"Beatles\"}'"},

src/actions/messages_actions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void register_messages_actions(ActionRegistry& registry) {
5858
registry.register_action(
5959
{"send_message", "Send an iMessage or SMS via Messages.app",
6060
"{\"to\": \"contact name, phone number, or email\", \"text\": \"message content\"}",
61-
true,
61+
false,
6262
"communication",
6363
"Send a message to John saying I'll be 10 minutes late",
6464
"rcli action send_message '{\"to\": \"+1234567890\", \"text\": \"Running late!\"}'"},

src/actions/navigation_actions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void register_navigation_actions(ActionRegistry& registry) {
1919
registry.register_action(
2020
{"open_maps", "Search for a place or address in Apple Maps",
2121
"{\"query\": \"place or address to search\"}",
22-
true,
22+
false,
2323
"navigation",
2424
"Show me coffee shops nearby",
2525
"rcli action open_maps '{\"query\": \"coffee shops\"}'"},

src/actions/system_actions.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void register_system_actions(ActionRegistry& registry) {
164164
registry.register_action(
165165
{"screenshot", "Take a screenshot",
166166
"{\"path\": \"optional save path\"}",
167-
true,
167+
false,
168168
"system",
169169
"Take a screenshot",
170170
"rcli action screenshot '{}'"},
@@ -191,7 +191,7 @@ void register_system_actions(ActionRegistry& registry) {
191191
registry.register_action(
192192
{"lock_screen", "Lock the screen",
193193
"{}",
194-
true,
194+
false,
195195
"system",
196196
"Lock my screen",
197197
"rcli action lock_screen '{}'"},
@@ -218,7 +218,7 @@ void register_system_actions(ActionRegistry& registry) {
218218
registry.register_action(
219219
{"open_settings", "Open System Settings (optionally to a specific pane: wifi, bluetooth, sound, display, battery, keyboard, privacy, notifications, general, appearance, etc.)",
220220
"{\"pane\": \"optional pane name\"}",
221-
true,
221+
false,
222222
"system",
223223
"Open Wi-Fi settings",
224224
"rcli action open_settings '{\"pane\": \"wifi\"}'"},
@@ -227,7 +227,7 @@ void register_system_actions(ActionRegistry& registry) {
227227
registry.register_action(
228228
{"get_disk_usage", "Show disk space usage",
229229
"{}",
230-
true,
230+
false,
231231
"system",
232232
"How much disk space do I have?",
233233
"rcli action get_disk_usage '{}'"},
@@ -236,7 +236,7 @@ void register_system_actions(ActionRegistry& registry) {
236236
registry.register_action(
237237
{"get_uptime", "Show how long the system has been running",
238238
"{}",
239-
true,
239+
false,
240240
"system",
241241
"How long has my Mac been running?",
242242
"rcli action get_uptime '{}'"},
@@ -245,7 +245,7 @@ void register_system_actions(ActionRegistry& registry) {
245245
registry.register_action(
246246
{"get_ip_address", "Show local and public IP addresses",
247247
"{}",
248-
true,
248+
false,
249249
"system",
250250
"What's my IP address?",
251251
"rcli action get_ip_address '{}'"},

src/actions/web_actions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void register_web_actions(ActionRegistry& registry) {
5050
registry.register_action(
5151
{"search_youtube", "Search YouTube for videos",
5252
"{\"query\": \"search query\"}",
53-
true,
53+
false,
5454
"web",
5555
"Search YouTube for guitar tutorials",
5656
"rcli action search_youtube '{\"query\": \"guitar tutorials\"}'"},

0 commit comments

Comments
 (0)