shortcutxl 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -0
- package/agent-docs/README.md +397 -0
- package/agent-docs/docs/compaction.md +390 -0
- package/agent-docs/docs/custom-provider.md +580 -0
- package/agent-docs/docs/development.md +69 -0
- package/agent-docs/docs/extensions.md +1971 -0
- package/agent-docs/docs/json.md +79 -0
- package/agent-docs/docs/keybindings.md +174 -0
- package/agent-docs/docs/models.md +293 -0
- package/agent-docs/docs/packages.md +209 -0
- package/agent-docs/docs/prompt-templates.md +67 -0
- package/agent-docs/docs/providers.md +186 -0
- package/agent-docs/docs/rpc.md +1317 -0
- package/agent-docs/docs/sdk.md +962 -0
- package/agent-docs/docs/session.md +412 -0
- package/agent-docs/docs/settings.md +223 -0
- package/agent-docs/docs/shell-aliases.md +13 -0
- package/agent-docs/docs/skills.md +231 -0
- package/agent-docs/docs/terminal-setup.md +70 -0
- package/agent-docs/docs/termux.md +127 -0
- package/agent-docs/docs/themes.md +295 -0
- package/agent-docs/docs/tree.md +219 -0
- package/agent-docs/docs/tui.md +887 -0
- package/agent-docs/docs/windows.md +17 -0
- package/agent-docs/examples/README.md +25 -0
- package/agent-docs/examples/extensions/README.md +205 -0
- package/agent-docs/examples/extensions/antigravity-image-gen.ts +447 -0
- package/agent-docs/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/agent-docs/examples/extensions/bash-spawn-hook.ts +30 -0
- package/agent-docs/examples/extensions/bookmark.ts +50 -0
- package/agent-docs/examples/extensions/built-in-tool-renderer.ts +256 -0
- package/agent-docs/examples/extensions/claude-rules.ts +86 -0
- package/agent-docs/examples/extensions/commands.ts +75 -0
- package/agent-docs/examples/extensions/confirm-destructive.ts +59 -0
- package/agent-docs/examples/extensions/custom-compaction.ts +126 -0
- package/agent-docs/examples/extensions/custom-footer.ts +63 -0
- package/agent-docs/examples/extensions/custom-header.ts +73 -0
- package/agent-docs/examples/extensions/custom-provider-anthropic/index.ts +660 -0
- package/agent-docs/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/agent-docs/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/agent-docs/examples/extensions/custom-provider-gitlab-duo/index.ts +362 -0
- package/agent-docs/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/agent-docs/examples/extensions/custom-provider-gitlab-duo/test.ts +88 -0
- package/agent-docs/examples/extensions/custom-provider-qwen-cli/index.ts +349 -0
- package/agent-docs/examples/extensions/custom-provider-qwen-cli/package.json +16 -0
- package/agent-docs/examples/extensions/dirty-repo-guard.ts +56 -0
- package/agent-docs/examples/extensions/doom-overlay/README.md +46 -0
- package/agent-docs/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/agent-docs/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/agent-docs/examples/extensions/doom-overlay/doom-component.ts +133 -0
- package/agent-docs/examples/extensions/doom-overlay/doom-engine.ts +186 -0
- package/agent-docs/examples/extensions/doom-overlay/doom-keys.ts +108 -0
- package/agent-docs/examples/extensions/doom-overlay/index.ts +74 -0
- package/agent-docs/examples/extensions/doom-overlay/wad-finder.ts +51 -0
- package/agent-docs/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/agent-docs/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/agent-docs/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/agent-docs/examples/extensions/dynamic-resources/index.ts +15 -0
- package/agent-docs/examples/extensions/dynamic-tools.ts +77 -0
- package/agent-docs/examples/extensions/event-bus.ts +43 -0
- package/agent-docs/examples/extensions/file-trigger.ts +41 -0
- package/agent-docs/examples/extensions/git-checkpoint.ts +53 -0
- package/agent-docs/examples/extensions/handoff.ts +155 -0
- package/agent-docs/examples/extensions/hello.ts +25 -0
- package/agent-docs/examples/extensions/inline-bash.ts +94 -0
- package/agent-docs/examples/extensions/input-transform.ts +43 -0
- package/agent-docs/examples/extensions/interactive-shell.ts +209 -0
- package/agent-docs/examples/extensions/mac-system-theme.ts +47 -0
- package/agent-docs/examples/extensions/message-renderer.ts +59 -0
- package/agent-docs/examples/extensions/minimal-mode.ts +430 -0
- package/agent-docs/examples/extensions/modal-editor.ts +90 -0
- package/agent-docs/examples/extensions/model-status.ts +31 -0
- package/agent-docs/examples/extensions/notify.ts +55 -0
- package/agent-docs/examples/extensions/overlay-qa-tests.ts +936 -0
- package/agent-docs/examples/extensions/overlay-test.ts +159 -0
- package/agent-docs/examples/extensions/permission-gate.ts +37 -0
- package/agent-docs/examples/extensions/pirate.ts +47 -0
- package/agent-docs/examples/extensions/plan-mode/README.md +65 -0
- package/agent-docs/examples/extensions/plan-mode/index.ts +363 -0
- package/agent-docs/examples/extensions/plan-mode/utils.ts +173 -0
- package/agent-docs/examples/extensions/preset.ts +418 -0
- package/agent-docs/examples/extensions/protected-paths.ts +30 -0
- package/agent-docs/examples/extensions/qna.ts +122 -0
- package/agent-docs/examples/extensions/question.ts +278 -0
- package/agent-docs/examples/extensions/questionnaire.ts +440 -0
- package/agent-docs/examples/extensions/rainbow-editor.ts +90 -0
- package/agent-docs/examples/extensions/reload-runtime.ts +37 -0
- package/agent-docs/examples/extensions/rpc-demo.ts +124 -0
- package/agent-docs/examples/extensions/sandbox/index.ts +324 -0
- package/agent-docs/examples/extensions/sandbox/package-lock.json +92 -0
- package/agent-docs/examples/extensions/sandbox/package.json +19 -0
- package/agent-docs/examples/extensions/send-user-message.ts +97 -0
- package/agent-docs/examples/extensions/session-name.ts +27 -0
- package/agent-docs/examples/extensions/shutdown-command.ts +69 -0
- package/agent-docs/examples/extensions/snake.ts +343 -0
- package/agent-docs/examples/extensions/space-invaders.ts +566 -0
- package/agent-docs/examples/extensions/ssh.ts +233 -0
- package/agent-docs/examples/extensions/status-line.ts +40 -0
- package/agent-docs/examples/extensions/subagent/README.md +172 -0
- package/agent-docs/examples/extensions/subagent/agents/planner.md +37 -0
- package/agent-docs/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/agent-docs/examples/extensions/subagent/agents/scout.md +50 -0
- package/agent-docs/examples/extensions/subagent/agents/worker.md +24 -0
- package/agent-docs/examples/extensions/subagent/agents.ts +130 -0
- package/agent-docs/examples/extensions/subagent/index.ts +1068 -0
- package/agent-docs/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/agent-docs/examples/extensions/subagent/prompts/implement.md +10 -0
- package/agent-docs/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/agent-docs/examples/extensions/summarize.ts +206 -0
- package/agent-docs/examples/extensions/system-prompt-header.ts +17 -0
- package/agent-docs/examples/extensions/timed-confirm.ts +72 -0
- package/agent-docs/examples/extensions/titlebar-spinner.ts +58 -0
- package/agent-docs/examples/extensions/todo.ts +314 -0
- package/agent-docs/examples/extensions/tool-override.ts +146 -0
- package/agent-docs/examples/extensions/tools.ts +145 -0
- package/agent-docs/examples/extensions/trigger-compact.ts +40 -0
- package/agent-docs/examples/extensions/truncated-tool.ts +194 -0
- package/agent-docs/examples/extensions/widget-placement.ts +17 -0
- package/agent-docs/examples/extensions/with-deps/index.ts +37 -0
- package/agent-docs/examples/extensions/with-deps/package-lock.json +31 -0
- package/agent-docs/examples/extensions/with-deps/package.json +22 -0
- package/agent-docs/examples/rpc-extension-ui.ts +654 -0
- package/agent-docs/examples/sdk/01-minimal.ts +22 -0
- package/agent-docs/examples/sdk/02-custom-model.ts +48 -0
- package/agent-docs/examples/sdk/03-custom-prompt.ts +55 -0
- package/agent-docs/examples/sdk/04-skills.ts +53 -0
- package/agent-docs/examples/sdk/05-tools.ts +56 -0
- package/agent-docs/examples/sdk/06-extensions.ts +88 -0
- package/agent-docs/examples/sdk/07-context-files.ts +40 -0
- package/agent-docs/examples/sdk/08-prompt-templates.ts +47 -0
- package/agent-docs/examples/sdk/09-api-keys-and-oauth.ts +48 -0
- package/agent-docs/examples/sdk/10-settings.ts +54 -0
- package/agent-docs/examples/sdk/11-sessions.ts +48 -0
- package/agent-docs/examples/sdk/12-full-control.ts +82 -0
- package/agent-docs/examples/sdk/README.md +144 -0
- package/agent-docs/xll-skill.md +61 -0
- package/agent-docs/xll-spec.md +110 -0
- package/dist/cli/args.js +290 -0
- package/dist/cli/config-selector.js +31 -0
- package/dist/cli/file-processor.js +79 -0
- package/dist/cli/list-models.js +92 -0
- package/dist/cli/package-commands.js +210 -0
- package/dist/cli/report-settings-errors.js +11 -0
- package/dist/cli/session-picker.js +34 -0
- package/dist/cli.js +19 -0
- package/dist/config.js +288 -0
- package/dist/core/abort.js +15 -0
- package/dist/core/agent-loop.js +352 -0
- package/dist/core/agent-session.js +2019 -0
- package/dist/core/agent.js +410 -0
- package/dist/core/auth-storage.js +456 -0
- package/dist/core/bash-executor.js +222 -0
- package/dist/core/compaction/branch-summarization.js +242 -0
- package/dist/core/compaction/compaction.js +610 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/utils.js +139 -0
- package/dist/core/defaults.js +6 -0
- package/dist/core/diagnostics.js +2 -0
- package/dist/core/event-bus.js +25 -0
- package/dist/core/exec.js +71 -0
- package/dist/core/export-html/ansi-to-html.js +256 -0
- package/dist/core/export-html/index.js +238 -0
- package/dist/core/export-html/session-view-model.js +342 -0
- package/dist/core/export-html/template.css +1110 -0
- package/dist/core/export-html/template.html +76 -0
- package/dist/core/export-html/template.js +1990 -0
- package/dist/core/export-html/tool-renderer.js +63 -0
- package/dist/core/export-html/vendor/highlight.min.js +7725 -0
- package/dist/core/export-html/vendor/marked.min.js +1803 -0
- package/dist/core/extensions/index.js +9 -0
- package/dist/core/extensions/loader.js +422 -0
- package/dist/core/extensions/runner.js +651 -0
- package/dist/core/extensions/types.js +35 -0
- package/dist/core/extensions/wrapper.js +102 -0
- package/dist/core/footer-data-provider.js +162 -0
- package/dist/core/index.js +9 -0
- package/dist/core/keybindings.js +153 -0
- package/dist/core/messages.js +133 -0
- package/dist/core/model-registry.js +539 -0
- package/dist/core/model-resolver.js +370 -0
- package/dist/core/package-manager.js +1485 -0
- package/dist/core/prompt-templates.js +253 -0
- package/dist/core/resolve-config-value.js +59 -0
- package/dist/core/resource-loader.js +700 -0
- package/dist/core/sdk.js +197 -0
- package/dist/core/session-bash.js +99 -0
- package/dist/core/session-compaction.js +165 -0
- package/dist/core/session-manager.js +1153 -0
- package/dist/core/session-models.js +99 -0
- package/dist/core/session-retry.js +155 -0
- package/dist/core/settings-manager.js +572 -0
- package/dist/core/skills.js +382 -0
- package/dist/core/slash-commands.js +31 -0
- package/dist/core/system-prompt.js +161 -0
- package/dist/core/theme.js +770 -0
- package/dist/core/timings.js +26 -0
- package/dist/core/tools/bash.js +258 -0
- package/dist/core/tools/edit-diff.js +245 -0
- package/dist/core/tools/edit.js +148 -0
- package/dist/core/tools/find.js +208 -0
- package/dist/core/tools/grep.js +246 -0
- package/dist/core/tools/index.js +67 -0
- package/dist/core/tools/ls.js +123 -0
- package/dist/core/tools/path-utils.js +81 -0
- package/dist/core/tools/read.js +160 -0
- package/dist/core/tools/truncate.js +70 -0
- package/dist/core/tools/write.js +82 -0
- package/dist/custom/agents/action.js +13 -0
- package/dist/custom/agents/document-reader.js +70 -0
- package/dist/custom/agents/general.js +26 -0
- package/dist/custom/agents/index.js +49 -0
- package/dist/custom/agents/installation.js +13 -0
- package/dist/custom/agents/types.js +7 -0
- package/dist/custom/auth/refresh-timer.js +33 -0
- package/dist/custom/auth/shortcut-oauth.js +145 -0
- package/dist/custom/constants.js +21 -0
- package/dist/custom/context/workbook-summary.js +73 -0
- package/dist/custom/credits/shortcut-credits.js +29 -0
- package/dist/custom/cron/cron-daemon-entry.js +18 -0
- package/dist/custom/cron/daemon-ipc.js +131 -0
- package/dist/custom/cron/daemon.js +224 -0
- package/dist/custom/cron/jobs.js +226 -0
- package/dist/custom/cron/run-log.js +51 -0
- package/dist/custom/cron/schedule.js +72 -0
- package/dist/custom/cron/status-line.js +98 -0
- package/dist/custom/cron/store.js +87 -0
- package/dist/custom/cron/types.js +8 -0
- package/dist/custom/dev/index.js +59 -0
- package/dist/custom/dev/trace-export.js +58 -0
- package/dist/custom/ensure-excel.js +63 -0
- package/dist/custom/excel-config.js +36 -0
- package/dist/custom/preflight.js +422 -0
- package/dist/custom/prompts/action.js +100 -0
- package/dist/custom/prompts/api.js +66 -0
- package/dist/custom/prompts/installation.js +124 -0
- package/dist/custom/prompts/shared.js +138 -0
- package/dist/custom/providers/llm-usage.js +42 -0
- package/dist/custom/providers/message-converter.js +74 -0
- package/dist/custom/providers/provider-ids.js +9 -0
- package/dist/custom/providers/register-openai-codex-provider.js +27 -0
- package/dist/custom/providers/register-shortcut-provider.js +52 -0
- package/dist/custom/providers/shortcut-invoke.js +117 -0
- package/dist/custom/providers/shortcut-stream.js +252 -0
- package/dist/custom/providers/sse-protocol.js +38 -0
- package/dist/custom/sync-xll.js +130 -0
- package/dist/custom/tools/cron.js +413 -0
- package/dist/custom/tools/excel-exec.js +167 -0
- package/dist/custom/tools/excel-range.js +50 -0
- package/dist/custom/tools/llm-analysis.js +265 -0
- package/dist/custom/tools/render-helpers.js +38 -0
- package/dist/custom/tools/switch-mode.js +94 -0
- package/dist/custom/tools/task/agents.js +6 -0
- package/dist/custom/tools/task/index.js +8 -0
- package/dist/custom/tools/task/render.js +348 -0
- package/dist/custom/tools/task/subprocess.js +320 -0
- package/dist/custom/tools/task/task.js +205 -0
- package/dist/custom/tools/todo-list.js +195 -0
- package/dist/custom/tracing/session-upload.js +93 -0
- package/dist/index.js +45 -0
- package/dist/main.js +613 -0
- package/dist/migrations.js +265 -0
- package/dist/modes/index.js +8 -0
- package/dist/modes/interactive/components/armin.js +337 -0
- package/dist/modes/interactive/components/assistant-message.js +94 -0
- package/dist/modes/interactive/components/bash-execution.js +171 -0
- package/dist/modes/interactive/components/bordered-loader.js +51 -0
- package/dist/modes/interactive/components/branch-summary-message.js +45 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +46 -0
- package/dist/modes/interactive/components/config-selector.js +488 -0
- package/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/modes/interactive/components/custom-editor.js +93 -0
- package/dist/modes/interactive/components/custom-message.js +81 -0
- package/dist/modes/interactive/components/daxnuts.js +140 -0
- package/dist/modes/interactive/components/diff.js +133 -0
- package/dist/modes/interactive/components/dynamic-border.js +21 -0
- package/dist/modes/interactive/components/extension-editor.js +105 -0
- package/dist/modes/interactive/components/extension-input.js +61 -0
- package/dist/modes/interactive/components/extension-selector.js +78 -0
- package/dist/modes/interactive/components/footer.js +309 -0
- package/dist/modes/interactive/components/index.js +33 -0
- package/dist/modes/interactive/components/keybinding-hints.js +61 -0
- package/dist/modes/interactive/components/layout.js +64 -0
- package/dist/modes/interactive/components/login-dialog.js +148 -0
- package/dist/modes/interactive/components/model-selector.js +237 -0
- package/dist/modes/interactive/components/oauth-selector.js +111 -0
- package/dist/modes/interactive/components/session-selector-search.js +157 -0
- package/dist/modes/interactive/components/session-selector.js +860 -0
- package/dist/modes/interactive/components/settings-selector.js +123 -0
- package/dist/modes/interactive/components/show-images-selector.js +35 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +48 -0
- package/dist/modes/interactive/components/theme-selector.js +47 -0
- package/dist/modes/interactive/components/thinking-selector.js +47 -0
- package/dist/modes/interactive/components/tool-execution.js +789 -0
- package/dist/modes/interactive/components/tool-group.js +106 -0
- package/dist/modes/interactive/components/tree-selector.js +962 -0
- package/dist/modes/interactive/components/user-message-selector.js +115 -0
- package/dist/modes/interactive/components/user-message.js +48 -0
- package/dist/modes/interactive/components/visual-truncate.js +33 -0
- package/dist/modes/interactive/file-attachments.js +135 -0
- package/dist/modes/interactive/interactive-mode.js +3775 -0
- package/dist/modes/interactive/theme/dark.json +85 -0
- package/dist/modes/interactive/theme/light.json +85 -0
- package/dist/modes/interactive/theme/theme-schema.json +335 -0
- package/dist/modes/interactive/theme/theme.js +177 -0
- package/dist/modes/print-mode.js +101 -0
- package/dist/modes/rpc/rpc-client.js +387 -0
- package/dist/modes/rpc/rpc-mode.js +509 -0
- package/dist/modes/rpc/rpc-types.js +8 -0
- package/dist/subagent-entry.js +145 -0
- package/dist/tool-names.js +34 -0
- package/dist/tui/autocomplete.js +596 -0
- package/dist/tui/components/box.js +104 -0
- package/dist/tui/components/cancellable-loader.js +35 -0
- package/dist/tui/components/editor.js +1679 -0
- package/dist/tui/components/image.js +69 -0
- package/dist/tui/components/input.js +433 -0
- package/dist/tui/components/loader.js +49 -0
- package/dist/tui/components/markdown.js +629 -0
- package/dist/tui/components/select-list.js +152 -0
- package/dist/tui/components/settings-list.js +185 -0
- package/dist/tui/components/spacer.js +23 -0
- package/dist/tui/components/text.js +89 -0
- package/dist/tui/components/truncated-text.js +51 -0
- package/dist/tui/editor-component.js +2 -0
- package/dist/tui/fuzzy.js +107 -0
- package/dist/tui/get-east-asian-width/index.js +32 -0
- package/dist/tui/get-east-asian-width/lookup.js +404 -0
- package/dist/tui/index.js +32 -0
- package/dist/tui/keybindings.js +114 -0
- package/dist/tui/keys.js +959 -0
- package/dist/tui/kill-ring.js +44 -0
- package/dist/tui/stdin-buffer.js +317 -0
- package/dist/tui/terminal-image.js +288 -0
- package/dist/tui/terminal.js +249 -0
- package/dist/tui/tui/autocomplete.js +596 -0
- package/dist/tui/tui/components/box.js +106 -0
- package/dist/tui/tui/components/cancellable-loader.js +35 -0
- package/dist/tui/tui/components/editor.js +1679 -0
- package/dist/tui/tui/components/image.js +69 -0
- package/dist/tui/tui/components/input.js +433 -0
- package/dist/tui/tui/components/loader.js +49 -0
- package/dist/tui/tui/components/markdown.js +629 -0
- package/dist/tui/tui/components/select-list.js +152 -0
- package/dist/tui/tui/components/settings-list.js +185 -0
- package/dist/tui/tui/components/spacer.js +23 -0
- package/dist/tui/tui/components/text.js +91 -0
- package/dist/tui/tui/components/truncated-text.js +51 -0
- package/dist/tui/tui/editor-component.js +2 -0
- package/dist/tui/tui/fuzzy.js +107 -0
- package/dist/tui/tui/get-east-asian-width/index.js +32 -0
- package/dist/tui/tui/get-east-asian-width/lookup.js +404 -0
- package/dist/tui/tui/index.js +32 -0
- package/dist/tui/tui/keybindings.js +114 -0
- package/dist/tui/tui/keys.js +959 -0
- package/dist/tui/tui/kill-ring.js +44 -0
- package/dist/tui/tui/stdin-buffer.js +317 -0
- package/dist/tui/tui/terminal-image.js +288 -0
- package/dist/tui/tui/terminal.js +249 -0
- package/dist/tui/tui/tui.js +955 -0
- package/dist/tui/tui/undo-stack.js +25 -0
- package/dist/tui/tui/utils.js +800 -0
- package/dist/tui/tui.js +955 -0
- package/dist/tui/undo-stack.js +25 -0
- package/dist/tui/utils.js +800 -0
- package/dist/utils/changelog.js +87 -0
- package/dist/utils/clipboard-image.js +164 -0
- package/dist/utils/clipboard-native.js +14 -0
- package/dist/utils/clipboard.js +67 -0
- package/dist/utils/frontmatter.js +26 -0
- package/dist/utils/git.js +166 -0
- package/dist/utils/image-convert.js +35 -0
- package/dist/utils/image-resize.js +183 -0
- package/dist/utils/mime.js +26 -0
- package/dist/utils/photon.js +121 -0
- package/dist/utils/shell.js +217 -0
- package/dist/utils/sleep.js +17 -0
- package/dist/utils/tools-manager.js +259 -0
- package/package.json +78 -0
- package/skills/excel-com-api/SKILL.md +74 -0
- package/skills/excel-com-api/excel-type-library.py +27767 -0
- package/skills/excel-com-api/office-type-library.py +10867 -0
- package/skills/integrations/SKILL.md +138 -0
- package/skills/integrations/alphasense.md +457 -0
- package/skills/integrations/bloomberg.md +803 -0
- package/skills/integrations/calcbench.md +315 -0
- package/skills/integrations/capiq.md +848 -0
- package/skills/integrations/dynamics-365-finance.md +354 -0
- package/skills/integrations/earnings_transcripts.md +387 -0
- package/skills/integrations/factset.md +758 -0
- package/skills/integrations/ice-fixed-income.md +344 -0
- package/skills/integrations/moodys-analytics.md +313 -0
- package/skills/integrations/morningstar.md +433 -0
- package/skills/integrations/nasdaq-data-link.md +249 -0
- package/skills/integrations/pitchbook.md +413 -0
- package/skills/integrations/preqin.md +422 -0
- package/skills/integrations/quickbooks.md +289 -0
- package/skills/integrations/quickfs.md +314 -0
- package/skills/integrations/refinitiv.md +473 -0
- package/skills/integrations/sage-intacct.md +401 -0
- package/skills/integrations/visible-alpha.md +320 -0
- package/skills/integrations/xero.md +393 -0
- package/skills/integrations/ycharts.md +306 -0
- package/skills/pdf-creation/SKILL.md +93 -0
- package/skills/pdf-extraction/SKILL.md +32 -0
- package/skills/powerpoint-creation/SKILL.md +110 -0
- package/skills/sec-edgar/SKILL.md +127 -0
- package/skills/sec-edgar/sec_to_pdf.py +109 -0
- package/xll/ShortcutXL.xll +0 -0
- package/xll/modules/debug_render.py +272 -0
- package/xll/modules/gameboy.py +241 -0
- package/xll/modules/pong.py +188 -0
- package/xll/modules/shortcut_xl/__init__.py +18 -0
- package/xll/modules/shortcut_xl/_categorize.py +200 -0
- package/xll/modules/shortcut_xl/_com.py +108 -0
- package/xll/modules/shortcut_xl/_format.py +252 -0
- package/xll/modules/shortcut_xl/_log.py +12 -0
- package/xll/modules/shortcut_xl/_managed.py +116 -0
- package/xll/modules/shortcut_xl/_registry.py +44 -0
- package/xll/modules/shortcut_xl/_threading.py +161 -0
- package/xll/modules/shortcut_xl/_tracking.py +283 -0
- package/xll/modules/stocks.py +100 -0
- package/xll/python3.dll +0 -0
- package/xll/python312.dll +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Shortcut Desktop Agent
|
|
2
|
+
|
|
3
|
+
A general agent that lives on your computer and has Excel superpowers through [Shortcut](https://shortcut.ai).
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install -g shortcutxl
|
|
7
|
+
shortcut
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
> **Important:** This is a CLI tool. You must install it globally with `-g`. Do not use `npm install shortcutxl` without the `-g` flag — it won't work as intended.
|
|
11
|
+
|
|
12
|
+
## Capabilities
|
|
13
|
+
|
|
14
|
+
Shortcut Desktop Agent full power compared to any Excel plugin:
|
|
15
|
+
|
|
16
|
+
- **Data lives locally** - Your workbooks, files, and skills stay on your machine and are never sent to our servers.
|
|
17
|
+
- **Multi-workbook operations** — Read and write across multiple open workbooks simultaneously.
|
|
18
|
+
- **Deep feature control** — Full manipulation of pivots, charts, sensitivity tables, iterative recalculations, and more.
|
|
19
|
+
- **VBA access** — Read, write, and run macros. Create VBA modules programmatically.
|
|
20
|
+
- **File system access** — Save to arbitrary paths, open files from disk, export PDFs.
|
|
21
|
+
- **Extensible** — Integrate any API or data source (Daloopa, Box, internal tools, etc.) by adding a skill file or a custom tool extension. Your API key is local.
|
|
22
|
+
- **User-defined functions (UDFs)** — Create custom Excel formulas powered by Python to pull live data from APIs, run calculations, or query databases.
|
|
23
|
+
- **External data connections** — ODBC, OLE DB, QueryTables, Power Query.
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
### Prerequisites
|
|
28
|
+
|
|
29
|
+
- **Windows 10 or 11** with **Microsoft Excel 2016 or later** (64-bit)
|
|
30
|
+
- **Node.js >= 20** — This gives you `npm`, the package manager used to install the agent.
|
|
31
|
+
|
|
32
|
+
If you don't have Node.js installed, open a terminal (Command Prompt, PowerShell, or Windows Terminal) and run:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
winget install OpenJS.NodeJS.LTS
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
This will prompt you to approve a Windows admin dialog (UAC) — click **Yes**. After it finishes, **close and reopen your terminal** so the `npm` command is available.
|
|
39
|
+
|
|
40
|
+
> **No winget?** Download the installer directly from [nodejs.org](https://nodejs.org) and run it — accept the defaults.
|
|
41
|
+
|
|
42
|
+
### Install
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install -g shortcutxl
|
|
46
|
+
shortcut
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
On first launch the agent guides you through setup step by step:
|
|
50
|
+
|
|
51
|
+
1. **Git Bash** — Required for the agent's shell. If missing, the agent installs it for you via `winget` (admin approval needed).
|
|
52
|
+
2. **Python 3.12** — The agent checks for Python 3.12 and installs it if needed (with your permission, per-user, no admin required).
|
|
53
|
+
3. **Excel add-in** — Registered with Excel so it loads automatically on startup. The agent opens Excel for you after this step.
|
|
54
|
+
|
|
55
|
+
After setup, just run `shortcut` — Excel opens automatically with the agent connected.
|
|
56
|
+
|
|
57
|
+
## Links
|
|
58
|
+
|
|
59
|
+
- [shortcut.ai](https://shortcut.ai)
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
# Shortcut Agent
|
|
2
|
+
|
|
3
|
+
Shortcut is an AI agent that controls Excel spreadsheets through ShortcutXL. It runs as a terminal CLI on Windows alongside Excel.
|
|
4
|
+
|
|
5
|
+
Adapt Shortcut to your workflows, not the other way around, without having to fork and modify Shortcut internals. Extend it with TypeScript [Extensions](#extensions), [Skills](#skills), [Prompt Templates](#prompt-templates), and [Themes](#themes). Put your extensions, skills, prompt templates, and themes in [Shortcut Packages](#shortcut-packages) and share them with others via npm or git.
|
|
6
|
+
|
|
7
|
+
Shortcut runs in four modes: interactive, print or JSON, RPC for process integration, and an SDK for embedding in your own apps.
|
|
8
|
+
|
|
9
|
+
Shortcut ships with ShortcutXL. Launch it from a terminal:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
shortcut
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Authentication is handled via `/login`.
|
|
16
|
+
|
|
17
|
+
Then just talk to Shortcut. By default, Shortcut gives the model tools for reading, writing, editing files, running bash commands, and executing Python inside Excel via `excel_exec`. Add capabilities via [skills](#skills), [prompt templates](#prompt-templates), [extensions](#extensions), or [Shortcut packages](#shortcut-packages).
|
|
18
|
+
|
|
19
|
+
## Table of Contents
|
|
20
|
+
|
|
21
|
+
- [Models](#models)
|
|
22
|
+
- [Interactive Mode](#interactive-mode)
|
|
23
|
+
- [Editor](#editor)
|
|
24
|
+
- [Commands](#commands)
|
|
25
|
+
- [Keyboard Shortcuts](#keyboard-shortcuts)
|
|
26
|
+
- [Message Queue](#message-queue)
|
|
27
|
+
- [Sessions](#sessions)
|
|
28
|
+
- [Branching](#branching)
|
|
29
|
+
- [Compaction](#compaction)
|
|
30
|
+
- [Settings](#settings)
|
|
31
|
+
- [Context Files](#context-files)
|
|
32
|
+
- [Customization](#customization)
|
|
33
|
+
- [Prompt Templates](#prompt-templates)
|
|
34
|
+
- [Skills](#skills)
|
|
35
|
+
- [Extensions](#extensions)
|
|
36
|
+
- [Themes](#themes)
|
|
37
|
+
- [Shortcut Packages](#shortcut-packages)
|
|
38
|
+
- [Programmatic Usage](#programmatic-usage)
|
|
39
|
+
- [Philosophy](#philosophy)
|
|
40
|
+
- [CLI Reference](#cli-reference)
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Models
|
|
45
|
+
|
|
46
|
+
Shortcut routes through the Shortcut platform (`agent.shortcut.ai`). You do not need to set API keys directly. Use `/model` or Ctrl+L to switch between available models.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### Editor
|
|
51
|
+
|
|
52
|
+
| Feature | How |
|
|
53
|
+
|---------|-----|
|
|
54
|
+
| File reference | Type `@` to fuzzy-search project files |
|
|
55
|
+
| Path completion | Tab to complete paths |
|
|
56
|
+
| Multi-line | Shift+Enter (or Ctrl+Enter on Windows Terminal) |
|
|
57
|
+
| Images | Ctrl+V to paste (Alt+V on Windows), or drag onto terminal |
|
|
58
|
+
| Bash commands | `!command` runs and sends output to LLM, `!!command` runs without sending |
|
|
59
|
+
|
|
60
|
+
Standard editing keybindings for delete word, undo, etc. See [docs/keybindings.md](docs/keybindings.md).
|
|
61
|
+
|
|
62
|
+
### Commands
|
|
63
|
+
|
|
64
|
+
Type `/` in the editor to trigger commands. [Extensions](#extensions) can register custom commands, [skills](#skills) are available as `/skill:name`, and [prompt templates](#prompt-templates) expand via `/templatename`.
|
|
65
|
+
|
|
66
|
+
### Keyboard Shortcuts
|
|
67
|
+
|
|
68
|
+
See `/hotkeys` for the full list. Customize via `~/.shortcut/agent/keybindings.json`. See [docs/keybindings.md](docs/keybindings.md).
|
|
69
|
+
|
|
70
|
+
### Message Queue
|
|
71
|
+
|
|
72
|
+
Submit messages while the agent is working:
|
|
73
|
+
|
|
74
|
+
- **Enter** queues a *steering* message, delivered after current tool execution (interrupts remaining tools)
|
|
75
|
+
- **Alt+Enter** queues a *follow-up* message, delivered only after the agent finishes all work
|
|
76
|
+
- **Escape** aborts and restores queued messages to editor
|
|
77
|
+
- **Alt+Up** retrieves queued messages back to editor
|
|
78
|
+
|
|
79
|
+
Configure delivery in [settings](docs/settings.md): `steeringMode` and `followUpMode` can be `"one-at-a-time"` (default, waits for response) or `"all"` (delivers all queued at once). `transport` selects provider transport preference (`"sse"`, `"websocket"`, or `"auto"`) for providers that support multiple transports.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Sessions
|
|
84
|
+
|
|
85
|
+
Sessions are stored as JSONL files with a tree structure. Each entry has an `id` and `parentId`, enabling in-place branching without creating new files. See [docs/session.md](docs/session.md) for file format.
|
|
86
|
+
|
|
87
|
+
### Management
|
|
88
|
+
|
|
89
|
+
Sessions auto-save to `~/.shortcut/agent/sessions/` organized by working directory.
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
shortcut -c # Continue most recent session
|
|
93
|
+
shortcut -r # Browse and select from past sessions
|
|
94
|
+
shortcut --no-session # Ephemeral mode (don't save)
|
|
95
|
+
shortcut --session <path> # Use specific session file or ID
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Branching
|
|
99
|
+
|
|
100
|
+
**`/tree`** - Navigate the session tree in-place. Select any previous point, continue from there, and switch between branches. All history preserved in a single file.
|
|
101
|
+
|
|
102
|
+
- Search by typing, page with left/right arrows
|
|
103
|
+
- Filter modes (Ctrl+O): default, no-tools, user-only, labeled-only, all
|
|
104
|
+
- Press `l` to label entries as bookmarks
|
|
105
|
+
|
|
106
|
+
### Compaction
|
|
107
|
+
|
|
108
|
+
Long sessions can exhaust context windows. Compaction summarizes older messages while keeping recent ones.
|
|
109
|
+
|
|
110
|
+
**Automatic:** Enabled by default. Triggers on context overflow (recovers and retries) or when approaching the limit (proactive). Configure via `/settings` or `settings.json`.
|
|
111
|
+
|
|
112
|
+
Compaction is lossy. The full history remains in the JSONL file; use `/tree` to revisit. Customize compaction behavior via [extensions](#extensions). See [docs/compaction.md](docs/compaction.md) for internals.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Settings
|
|
117
|
+
|
|
118
|
+
Use `/settings` to modify common options, or edit JSON files directly:
|
|
119
|
+
|
|
120
|
+
| Location | Scope |
|
|
121
|
+
|----------|-------|
|
|
122
|
+
| `~/.shortcut/agent/settings.json` | Global (all projects) |
|
|
123
|
+
| `.shortcut/settings.json` | Project (overrides global) |
|
|
124
|
+
|
|
125
|
+
See [docs/settings.md](docs/settings.md) for all options.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
### System Prompt
|
|
130
|
+
|
|
131
|
+
Replace the default system prompt with `.shortcut/SYSTEM.md` (project) or `~/.shortcut/agent/SYSTEM.md` (global). Append without replacing via `APPEND_SYSTEM.md`.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Customization
|
|
136
|
+
|
|
137
|
+
Shortcut is aggressively extensible so it doesn't have to dictate your workflow. Features that other tools bake in can be built with [extensions](#extensions), [skills](#skills), or installed from third-party [Shortcut packages](#shortcut-packages). This keeps the core minimal while letting you shape Shortcut to fit how you work.
|
|
138
|
+
|
|
139
|
+
### Prompt Templates
|
|
140
|
+
|
|
141
|
+
Reusable prompts as Markdown files. Type `/name` to expand.
|
|
142
|
+
|
|
143
|
+
```markdown
|
|
144
|
+
<!-- ~/.shortcut/agent/prompts/review.md -->
|
|
145
|
+
Review this code for bugs, security issues, and performance problems.
|
|
146
|
+
Focus on: {{focus}}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Place in `~/.shortcut/agent/prompts/`, `.shortcut/prompts/`, or a [Shortcut package](#shortcut-packages) to share with others. See [docs/prompt-templates.md](docs/prompt-templates.md).
|
|
150
|
+
|
|
151
|
+
### Skills
|
|
152
|
+
|
|
153
|
+
On-demand capability packages following the [Agent Skills standard](https://agentskills.io). Invoke via `/skill:name` or let the agent load them automatically.
|
|
154
|
+
|
|
155
|
+
```markdown
|
|
156
|
+
<!-- ~/.shortcut/agent/skills/my-skill/SKILL.md -->
|
|
157
|
+
# My Skill
|
|
158
|
+
Use this skill when the user asks about X.
|
|
159
|
+
|
|
160
|
+
## Steps
|
|
161
|
+
1. Do this
|
|
162
|
+
2. Then that
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Place in `~/.shortcut/agent/skills/`, `~/.agents/skills/`, `.shortcut/skills/`, or `.agents/skills/` (from `cwd` up through parent directories) or a [Shortcut package](#shortcut-packages) to share with others. See [docs/skills.md](docs/skills.md).
|
|
166
|
+
|
|
167
|
+
### Extensions
|
|
168
|
+
|
|
169
|
+
TypeScript modules that extend Shortcut with custom tools, commands, keyboard shortcuts, event handlers, and UI components.
|
|
170
|
+
|
|
171
|
+
```typescript
|
|
172
|
+
export default function (shortcut: ExtensionAPI) {
|
|
173
|
+
shortcut.registerTool({ name: "deploy", ... });
|
|
174
|
+
shortcut.registerCommand("stats", { ... });
|
|
175
|
+
shortcut.on("tool_call", async (event, ctx) => { ... });
|
|
176
|
+
}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**What's possible:**
|
|
180
|
+
- Custom tools (or replace built-in tools entirely)
|
|
181
|
+
- Sub-agents and plan mode
|
|
182
|
+
- Custom compaction and summarization
|
|
183
|
+
- Permission gates and path protection
|
|
184
|
+
- Custom editors and UI components
|
|
185
|
+
- Status lines, headers, footers
|
|
186
|
+
- Git checkpointing and auto-commit
|
|
187
|
+
- SSH and sandbox execution
|
|
188
|
+
- MCP server integration
|
|
189
|
+
- ...anything you can dream up
|
|
190
|
+
|
|
191
|
+
Place in `~/.shortcut/agent/extensions/`, `.shortcut/extensions/`, or a [Shortcut package](#shortcut-packages) to share with others. See [docs/extensions.md](docs/extensions.md) and [examples/extensions/](examples/extensions/).
|
|
192
|
+
|
|
193
|
+
### Themes
|
|
194
|
+
|
|
195
|
+
Built-in: `dark`, `light`. Themes hot-reload: modify the active theme file and Shortcut immediately applies changes.
|
|
196
|
+
|
|
197
|
+
Place in `~/.shortcut/agent/themes/`, `.shortcut/themes/`, or a [Shortcut package](#shortcut-packages) to share with others. See [docs/themes.md](docs/themes.md).
|
|
198
|
+
|
|
199
|
+
### Shortcut Packages
|
|
200
|
+
|
|
201
|
+
Bundle and share extensions, skills, prompts, and themes via npm or git.
|
|
202
|
+
|
|
203
|
+
> **Security:** Shortcut packages run with full system access. Extensions execute arbitrary code, and skills can instruct the model to perform any action including running executables. Review source code before installing third-party packages.
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
shortcut install npm:@foo/shortcut-tools
|
|
207
|
+
shortcut install npm:@foo/shortcut-tools@1.2.3 # pinned version
|
|
208
|
+
shortcut install git:github.com/user/repo
|
|
209
|
+
shortcut install git:github.com/user/repo@v1 # tag or commit
|
|
210
|
+
shortcut install git:git@github.com:user/repo
|
|
211
|
+
shortcut install git:git@github.com:user/repo@v1 # tag or commit
|
|
212
|
+
shortcut install https://github.com/user/repo
|
|
213
|
+
shortcut install https://github.com/user/repo@v1 # tag or commit
|
|
214
|
+
shortcut install ssh://git@github.com/user/repo
|
|
215
|
+
shortcut install ssh://git@github.com/user/repo@v1 # tag or commit
|
|
216
|
+
shortcut remove npm:@foo/shortcut-tools
|
|
217
|
+
shortcut list
|
|
218
|
+
shortcut update # skips pinned packages
|
|
219
|
+
shortcut config # enable/disable extensions, skills, prompts, themes
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Packages install to `~/.shortcut/agent/git/` (git) or global npm. Use `-l` for project-local installs (`.shortcut/git/`, `.shortcut/npm/`).
|
|
223
|
+
|
|
224
|
+
Create a package by adding a `shortcut` key to `package.json`:
|
|
225
|
+
|
|
226
|
+
```json
|
|
227
|
+
{
|
|
228
|
+
"name": "my-shortcut-package",
|
|
229
|
+
"keywords": ["shortcut-package"],
|
|
230
|
+
"shortcut": {
|
|
231
|
+
"extensions": ["./extensions"],
|
|
232
|
+
"skills": ["./skills"],
|
|
233
|
+
"prompts": ["./prompts"],
|
|
234
|
+
"themes": ["./themes"]
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
Without a `shortcut` manifest, Shortcut auto-discovers from conventional directories (`extensions/`, `skills/`, `prompts/`, `themes/`).
|
|
240
|
+
|
|
241
|
+
See [docs/packages.md](docs/packages.md).
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## Programmatic Usage
|
|
246
|
+
|
|
247
|
+
### SDK
|
|
248
|
+
|
|
249
|
+
```typescript
|
|
250
|
+
import { AuthStorage, createAgentSession, ModelRegistry, SessionManager } from "shortcutxl";
|
|
251
|
+
|
|
252
|
+
const { session } = await createAgentSession({
|
|
253
|
+
sessionManager: SessionManager.inMemory(),
|
|
254
|
+
authStorage: AuthStorage.create(),
|
|
255
|
+
modelRegistry: new ModelRegistry(authStorage),
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
await session.prompt("What files are in the current directory?");
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
See [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Philosophy
|
|
266
|
+
|
|
267
|
+
Shortcut is aggressively extensible so it doesn't have to dictate your workflow. Features that other tools bake in can be built with [extensions](#extensions), [skills](#skills), or installed from third-party [Shortcut packages](#shortcut-packages). This keeps the core minimal while letting you shape Shortcut to fit how you work.
|
|
268
|
+
|
|
269
|
+
**No MCP.** Build CLI tools with READMEs (see [Skills](#skills)), or build an extension that adds MCP support.
|
|
270
|
+
|
|
271
|
+
**No permission popups.** Run in a container, or build your own confirmation flow with [extensions](#extensions) inline with your environment and security requirements.
|
|
272
|
+
|
|
273
|
+
**No built-in to-dos.** They confuse models. Use a TODO.md file, or build your own with [extensions](#extensions).
|
|
274
|
+
|
|
275
|
+
**No background bash.** Use tmux. Full observability, direct interaction.
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## CLI Reference
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
shortcut [options] [@files...] [messages...]
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### Package Commands
|
|
286
|
+
|
|
287
|
+
```bash
|
|
288
|
+
shortcut install <source> [-l] # Install package, -l for project-local
|
|
289
|
+
shortcut remove <source> [-l] # Remove package
|
|
290
|
+
shortcut update [source] # Update packages (skips pinned)
|
|
291
|
+
shortcut list # List installed packages
|
|
292
|
+
shortcut config # Enable/disable package resources
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### Modes
|
|
296
|
+
|
|
297
|
+
| Flag | Description |
|
|
298
|
+
|------|-------------|
|
|
299
|
+
| (default) | Interactive mode |
|
|
300
|
+
| `-p`, `--print` | Print response and exit |
|
|
301
|
+
| `--mode json` | Output all events as JSON lines (see [docs/json.md](docs/json.md)) |
|
|
302
|
+
| `--mode rpc` | RPC mode for process integration (see [docs/rpc.md](docs/rpc.md)) |
|
|
303
|
+
| `--export <in> [out]` | Export session to HTML |
|
|
304
|
+
|
|
305
|
+
### Model Options
|
|
306
|
+
|
|
307
|
+
| Option | Description |
|
|
308
|
+
|--------|-------------|
|
|
309
|
+
| `--provider <name>` | Provider |
|
|
310
|
+
| `--model <pattern>` | Model pattern or ID (supports `provider/id` and optional `:<thinking>`) |
|
|
311
|
+
| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |
|
|
312
|
+
| `--list-models [search]` | List available models |
|
|
313
|
+
|
|
314
|
+
### Session Options
|
|
315
|
+
|
|
316
|
+
| Option | Description |
|
|
317
|
+
|--------|-------------|
|
|
318
|
+
| `-c`, `--continue` | Continue most recent session |
|
|
319
|
+
| `-r`, `--resume` | Browse and select session |
|
|
320
|
+
| `--session <path>` | Use specific session file or partial UUID |
|
|
321
|
+
| `--session-dir <dir>` | Custom session storage directory |
|
|
322
|
+
| `--no-session` | Ephemeral mode (don't save) |
|
|
323
|
+
|
|
324
|
+
### Tool Options
|
|
325
|
+
|
|
326
|
+
| Option | Description |
|
|
327
|
+
|--------|-------------|
|
|
328
|
+
| `--tools <list>` | Enable specific built-in tools (default: `read,bash,edit,write`) |
|
|
329
|
+
| `--no-tools` | Disable all built-in tools (extension tools still work) |
|
|
330
|
+
|
|
331
|
+
Available built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`, `task`
|
|
332
|
+
|
|
333
|
+
### Resource Options
|
|
334
|
+
|
|
335
|
+
| Option | Description |
|
|
336
|
+
|--------|-------------|
|
|
337
|
+
| `-e`, `--extension <source>` | Load extension from path, npm, or git (repeatable) |
|
|
338
|
+
| `--no-extensions` | Disable extension discovery |
|
|
339
|
+
| `--skill <path>` | Load skill (repeatable) |
|
|
340
|
+
| `--no-skills` | Disable skill discovery |
|
|
341
|
+
| `--prompt-template <path>` | Load prompt template (repeatable) |
|
|
342
|
+
| `--no-prompt-templates` | Disable prompt template discovery |
|
|
343
|
+
| `--theme <path>` | Load theme (repeatable) |
|
|
344
|
+
| `--no-themes` | Disable theme discovery |
|
|
345
|
+
|
|
346
|
+
Combine `--no-*` with explicit flags to load exactly what you need, ignoring settings.json (e.g., `--no-extensions -e ./my-ext.ts`).
|
|
347
|
+
|
|
348
|
+
### Other Options
|
|
349
|
+
|
|
350
|
+
| Option | Description |
|
|
351
|
+
|--------|-------------|
|
|
352
|
+
| `--system-prompt <text>` | Replace default prompt (context files and skills still appended) |
|
|
353
|
+
| `--append-system-prompt <text>` | Append to system prompt |
|
|
354
|
+
| `--verbose` | Force verbose startup |
|
|
355
|
+
| `-h`, `--help` | Show help |
|
|
356
|
+
| `-v`, `--version` | Show version |
|
|
357
|
+
|
|
358
|
+
### File Arguments
|
|
359
|
+
|
|
360
|
+
Prefix files with `@` to include in the message:
|
|
361
|
+
|
|
362
|
+
```bash
|
|
363
|
+
shortcut @prompt.md "Answer this"
|
|
364
|
+
shortcut -p @screenshot.png "What's in this image?"
|
|
365
|
+
shortcut @code.ts @test.ts "Review these files"
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
### Examples
|
|
369
|
+
|
|
370
|
+
```bash
|
|
371
|
+
# Interactive with initial prompt
|
|
372
|
+
shortcut "List all .ts files in src/"
|
|
373
|
+
|
|
374
|
+
# Non-interactive
|
|
375
|
+
shortcut -p "Summarize this codebase"
|
|
376
|
+
|
|
377
|
+
# Different model
|
|
378
|
+
shortcut --model sonnet "Help me refactor"
|
|
379
|
+
|
|
380
|
+
# Model with thinking level shorthand
|
|
381
|
+
shortcut --model sonnet:high "Solve this complex problem"
|
|
382
|
+
|
|
383
|
+
# Read-only mode
|
|
384
|
+
shortcut --tools read,grep,find,ls -p "Review the code"
|
|
385
|
+
|
|
386
|
+
# High thinking level
|
|
387
|
+
shortcut --thinking high "Solve this complex problem"
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Environment Variables
|
|
391
|
+
|
|
392
|
+
| Variable | Description |
|
|
393
|
+
|----------|-------------|
|
|
394
|
+
| `SHORTCUT_CODING_AGENT_DIR` | Override config directory (default: `~/.shortcut/agent`) |
|
|
395
|
+
| `SHORTCUT_PACKAGE_DIR` | Override package directory |
|
|
396
|
+
| `SHORTCUT_SKIP_VERSION_CHECK` | Skip version check at startup |
|
|
397
|
+
| `VISUAL`, `EDITOR` | External editor for Ctrl+G |
|