主页 / guides
guides/
- doc配置文件DSCC reads JSON settings and Markdown instruction files from multiple locations and merges them.
- doc钩子Hooks are shell commands DSCC runs around tool calls. Declare them in settings.hooks.PreToolUse[] and settings.hooks.PostToolUse[] (arrays of shell commands, config.rs:568–572).
- doc交互模式The interactive REPL is the default DSCC experience. Start it with dscc (no subcommand) on any TTY. The input editor lives at crates/dscc-cli/src/input.rs (1193 lines).
- docMCP 服务器DSCC talks to MCP (Model Context Protocol) servers to expand its tool surface. Configure servers under settings.mcpServers.<name> (crates/runtime/src/config.rs:531–550).
- doc单次执行One-shot mode runs a single prompt and exits. Use it for scripting, CI, and piping DSCC into other tools. Entry point: dscc prompt <text> (main.rs:318).
- doc权限体系DSCC gates every tool call through a permission mode. Modes are defined at crates/runtime/src/permissions.rs:4–23.
- doc会话管理DSCC persists every interactive run to disk so you can inspect, resume, or compact it later.
- doc斜杠命令Slash commands are typed into the REPL starting with /. The full registry is a compile-time static array SLASH_COMMAND_SPECS at crates/commands/src/lib.rs:73–300, parsed by SlashCo…