Your next move, on cue.
# install
npm i -g @sf-tools/cue
# usage
cue --help
cue --version
cue --resume
cue --json --prompt "summarize this repo"bun run buildThe build output is written to dist/.
Cue can also run a single headless turn and emit newline-delimited JSON for scripts, CI, or other tools.
cue --json --prompt "read README.md and summarize the project"
printf "inspect src/cli.ts and explain the flags" | cue --jsonUseful flags:
--resumeopens a picker for saved threads in the current workspace.--resume <id>resumes a specific saved thread.--allow-allauto-approves command/edit tools in headless mode.--thinkingincludes reasoning deltas in the JSON stream.--model <id>and--reasoning <mode>override the saved defaults.
There is also a demo consumer script at scripts/demo-headless-json.mjs:
- Use
!to run a shell command. - Use
@path/to/fileto include a file in your prompt. - Some built-in slash commands include
/model,/reasoning,/review,/tools,/compact,/switch, and more. - Typing
review my codebaseruns the same read-only review flow as/review. cue --helpshows CLI help, andcue --versionprints the build version.
