magi-code 0.80.0

Repository-aware CLI coding agent for terminal work
Documentation
# Slash-command guide

Defines shared slash-command grammar and runtime selection helpers.

## Where to look

| Task | Path |
| --- | --- |
| Built-ins, registry, parsing, Fast arguments | `mod.rs` |
| Model selection, runtime refresh, logout outcomes | `runtime.rs` |
| Rewind argument regression tests | `rewind.rs` |

## Local rules

- `parse_slash_command` distinguishes empty input, ordinary prompts, built-ins and unknown slash commands. Preserve those distinctions in Mission Control.
- Keep names/descriptions with registry entries; do not add caller-specific shared-command grammars.
- `/settings` is a Mission Control editor command, not service protocol or provider input. Parse here; drafts/keys belong in `../tui/settings_editor.rs`, writes in `../config/settings/editor.rs`.
- `/models` is retired; availability lives in `/settings` → Models. `/model` selects cached models only: never refresh catalogs during opening/selection. Retired names stay out of registry/help/autocomplete.
- `switch_model_selection` delegates catalog selection; `switch_shell_model` then refreshes shared active provider/config/auth state.
- Distinguish logout that removed credentials/configuration from missing entries.
- `rewind.rs` only tests checkpoint argument parsing. Filesystem restore logic does not belong there.
- Command messages remain local status; durable changes go through settings/session owners, not provider conversation items.