Your first session
Once dscc is installed, a provider key is exported, and
a model id is chosen, you can launch DSCC in two modes: an interactive
REPL and a one-shot prompt. Both use the same binary and the same
model-selection rules from model-selection.md.
Interactive REPL
Launch a session:
cargo run --bin dscc -- --model claude-sonnet-4-6 # [交互] opens the REPL
# or, after cargo install
dscc --model claude-sonnet-4-6 # [交互] opens the REPL
Useful first-session slash commands:
| Command | Purpose |
|---|---|
/help |
List every slash command available in the current session |
/status |
Show the active model, provider, permission mode, cwd |
/cost |
Show token usage and cost so far |
/exit |
Leave the REPL (or press Ctrl+C) |
Full slash-command reference: reference/slash-commands.md.
One-shot prompt
Run a single prompt and exit:
dscc --model claude-sonnet-4-6 prompt "summarize this workspace"
The prompt subcommand accepts the prompt as the
remaining positional arguments. DSCC executes, prints the final answer,
and exits with a zero status on success.
Scripting with JSON output
For pipelines and scripting, request structured output:
dscc --model claude-sonnet-4-6 \
--output-format json \
prompt "list every crate under crates/"
JSON mode emits a single JSON document to stdout, suitable for
jq or other downstream tools. See guides/one-shot-mode.md for the
full schema and exit-code contract.
Next
- guides/interactive-mode.md — keybindings, vim mode, history, completion.
- guides/one-shot-mode.md — scripting DSCC, JSON output, allowed-tool filtering.