Skip to content

StatusLine

Base classes

Name Children Inherits
ClaudeCodeBaseModel
clawd_code_sdk.models.base
Base model for all Claude Code Pydantic models.

⋔ Inheritance diagram

graph TD
  1119650560["settings.StatusLine"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 1119650560
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Custom status line display configuration. See https://code.claude.com/docs/en/statusline.

Source code in src/clawd_code_sdk/models/settings.py
class StatusLine(ClaudeCodeBaseModel):
    """Custom status line display configuration. See https://code.claude.com/docs/en/statusline."""

    model_config = ConfigDict(
        extra="forbid",
    )
    type: Literal["command"] = "command"
    """
    The type of status line handler; must be set to "command" to run a custom shell script that receives JSON session data via stdin.
    """
    command: str
    """
    A shell command or path to a script that displays session information (context usage, costs, git status, etc.) by reading JSON data from stdin and writing output to stdout. See https://code.claude.com/docs/en/statusline
    """
    padding: float | None = None
    """
    Optional number of extra horizontal spacing characters added to the status line content; defaults to 0.
    """
    refresh_interval: int | None = Field(None, alias="refreshInterval", ge=1)
    """
    Re-run the status line command every N seconds in addition to event-driven updates. Leave unset to run only on events. Useful for time-based data like clocks, or when background subagents change git state while the main session is idle. See https://code.claude.com/docs/en/statusline
    """
    hide_vim_mode_indicator: bool | None = Field(None, alias="hideVimModeIndicator")
    """
    Set to true when your status line script renders the vim mode indicator itself, to suppress the built-in vim mode display. See https://code.claude.com/docs/en/statusline#manually-configure-a-status-line
    """

command instance-attribute

command: str

A shell command or path to a script that displays session information (context usage, costs, git status, etc.) by reading JSON data from stdin and writing output to stdout. See https://code.claude.com/docs/en/statusline

hide_vim_mode_indicator class-attribute instance-attribute

hide_vim_mode_indicator: bool | None = Field(None, alias='hideVimModeIndicator')

Set to true when your status line script renders the vim mode indicator itself, to suppress the built-in vim mode display. See https://code.claude.com/docs/en/statusline#manually-configure-a-status-line

padding class-attribute instance-attribute

padding: float | None = None

Optional number of extra horizontal spacing characters added to the status line content; defaults to 0.

refresh_interval class-attribute instance-attribute

refresh_interval: int | None = Field(None, alias='refreshInterval', ge=1)

Re-run the status line command every N seconds in addition to event-driven updates. Leave unset to run only on events. Useful for time-based data like clocks, or when background subagents change git state while the main session is idle. See https://code.claude.com/docs/en/statusline

type class-attribute instance-attribute

type: Literal['command'] = 'command'

The type of status line handler; must be set to "command" to run a custom shell script that receives JSON session data via stdin.

:fa-brands-github: Show source on GitHub