Skip to content

CommandConfiguredHookHandler

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  2124024135["v2_protocol.CommandConfiguredHookHandler"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 2124024135
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class CommandConfiguredHookHandler(CodexBaseModel):
    additional_context_limit: int | None = Field(None, ge=0)
    """
    Approximate token threshold for spilling this hook's `additionalContext` to disk. `null` uses 2,500 tokens; `0` disables spilling for this hook. The threshold is evaluated against the original context; a spilled preview also includes recovery metadata.
    """
    async_: bool
    command: str
    command_windows: str | None = None
    status_message: str | None = None
    timeout_sec: int | None = Field(None, ge=0)
    type: Literal["command"] = "command"

additional_context_limit class-attribute instance-attribute

additional_context_limit: int | None = Field(None, ge=0)

Approximate token threshold for spilling this hook's additionalContext to disk. null uses 2,500 tokens; 0 disables spilling for this hook. The threshold is evaluated against the original context; a spilled preview also includes recovery metadata.

:fa-brands-github: Show source on GitHub