Skip to main content

Module model

Module model 

Source
Expand description

Model segment: renders the current model’s display name.

Anthropic’s display_name for context-extended variants follows the shape Opus 4.7 (1M context). The default format = "compact" strips the trailing word “context” so the segment renders Opus 4.7 (1M) — the qualifier is the meaningful capability tag, the word “context” is filler. Users who prefer the verbatim wire value set format = "full".

The transform is gated on Tool::ClaudeCode. The (X context) suffix is Claude Code’s documented shape; other tools (Qwen, Codex CLI, Copilot CLI) may use the same suffix with different semantics, so their display_name renders verbatim regardless of format. Cross-tool compaction can grow into a per-tool transform table when a real second case appears.

Structs§

ModelSegment