Skip to content

PolicyHelper

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Admin-deployed executable that computes managed settings dynamically at startup. Honored only from MDM or the system managed-settings.json. Requires Claude Code v2.1.136 or later. See https://code.claude.com/docs/en/settings#available-settings.

Source code in src/clawd_code_sdk/models/settings.py
class PolicyHelper(ClaudeCodeBaseModel):
    """Admin-deployed executable that computes managed settings dynamically at startup. Honored only from MDM or the system managed-settings.json. Requires Claude Code v2.1.136 or later. See https://code.claude.com/docs/en/settings#available-settings."""

    model_config = ConfigDict(
        extra="forbid",
    )
    path: str
    """
    Absolute path to the policy helper executable
    """
    timeout_ms: int | None = Field(None, alias="timeoutMs")
    """
    How long in milliseconds to wait for the helper before treating the run as failed
    """
    refresh_interval_ms: Literal[0] | RefreshIntervalMs | None = Field(
        None, alias="refreshIntervalMs"
    )
    """
    How often in milliseconds to re-run the helper in the background; set to 0 to disable refresh, or to at least 60000
    """

path instance-attribute

path: str

Absolute path to the policy helper executable

refresh_interval_ms class-attribute instance-attribute

refresh_interval_ms: Literal[0] | RefreshIntervalMs | None = Field(None, alias='refreshIntervalMs')

How often in milliseconds to re-run the helper in the background; set to 0 to disable refresh, or to at least 60000

timeout_ms class-attribute instance-attribute

timeout_ms: int | None = Field(None, alias='timeoutMs')

How long in milliseconds to wait for the helper before treating the run as failed

:fa-brands-github: Show source on GitHub