Skip to content

PluginSourceGitSubdir

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: ClaudeCodeBaseModel

External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths.

Source code in src/clawd_code_sdk/models/settings.py
class PluginSourceGitSubdir(ClaudeCodeBaseModel):
    """External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths."""

    model_config = ConfigDict(
        extra="forbid",
    )
    source: Literal["git-subdir"] = "git-subdir"
    """
    Identifies the plugin source type
    """
    url: str
    """
    Git repository URL
    """
    path: str
    """
    Subdirectory within the git repo. Clones sparsely to minimize bandwidth for monorepos
    """
    ref: str | None = None
    """
    Git branch or tag
    """
    sha: str | None = None
    """
    Exact commit SHA to pin the plugin to
    """

path instance-attribute

path: str

Subdirectory within the git repo. Clones sparsely to minimize bandwidth for monorepos

ref class-attribute instance-attribute

ref: str | None = None

Git branch or tag

sha class-attribute instance-attribute

sha: str | None = None

Exact commit SHA to pin the plugin to

source class-attribute instance-attribute

source: Literal['git-subdir'] = 'git-subdir'

Identifies the plugin source type

url instance-attribute

url: str

Git repository URL

:fa-brands-github: Show source on GitHub