zuke.tools.claude
@zuke/claude 1.1.2: @zuke/claude — a typed [Claude Code](https://docs.claude.com/en/docs/claude-code) CLI (claude) task wrapper for Zuke builds.
zuke on PyPI ↗ 6 symbols
Symbols
class ClaudeCommandSettings(SubcommandSettings) Shared builder for claude <group> … subcommand groups (mcp, config): name the verb and operands with .command(...) and pass anything else with .flag(...).
class ClaudeConfigSettings(ClaudeCommandSettings) Settings for a claude config … invocation (manage configuration).
class ClaudeMcpSettings(ClaudeCommandSettings) Settings for a claude mcp … invocation (manage MCP servers).
class ClaudeRunSettings(ToolSettings) Settings for a non-interactive claude --print run — the build-friendly way to send a single prompt and capture the response.
-
prompt(text: str) -> SelfThe prompt to run non-interactively. Required.
-
model(id: str) -> SelfPin the model by name or alias, e.g.
model("sonnet")(--model). -
fallback_model(id: str) -> SelfModel to fall back to when the primary is overloaded (
--fallback-model). -
output_format(format: Literal['text', 'json', 'stream-json']) -> SelfShape of the printed response (
--output-format). -
input_format(format: Literal['text', 'stream-json']) -> SelfShape of the supplied input (
--input-format). -
allowed_tools(*tools: str) -> SelfAllow only these tools, comma-joined into
--allowedTools. Repeatable. -
disallowed_tools(*tools: str) -> SelfDeny these tools, comma-joined into
--disallowedTools. Repeatable. -
add_dir(*dirs: str) -> SelfGrant the session access to extra directories (
--add-dir). Repeatable. -
permission_mode(mode: Literal['default', 'acceptEdits', 'bypassPermissions', 'plan']) -> SelfHow tool permissions are handled for the run (
--permission-mode). -
dangerously_skip_permissions() -> SelfBypass all permission prompts (
--dangerously-skip-permissions). -
append_system_prompt(text: str) -> SelfAppend text to the system prompt (
--append-system-prompt). -
max_turns(turns: float) -> SelfCap the number of agentic turns (
--max-turns). -
mcp_config(path_or_json: str) -> SelfMCP server configuration, as a file path or inline JSON (
--mcp-config). -
settings(path_or_json: str) -> SelfSettings, as a file path or inline JSON (
--settings). -
session_id(id: str) -> SelfRun under a specific session id (
--session-id). -
continue_session() -> SelfContinue the most recent conversation (
--continue). -
resume(session_id: str | None=None) -> SelfResume a conversation, optionally by session id (
--resume). -
verbose() -> SelfEmit verbose logging (
--verbose).
class ClaudeTasks Typed task functions for the Claude Code CLI.
-
static async run(ctx: ServiceContext, configure: Callable[[ClaudeRunSettings], ClaudeRunSettings] | None=None) -> ExecResultRun a prompt non-interactively (
claude --print). -
static async mcp(ctx: ServiceContext, configure: Callable[[ClaudeMcpSettings], ClaudeMcpSettings] | None=None) -> ExecResultManage MCP servers (
claude mcp …). -
static async config(ctx: ServiceContext, configure: Callable[[ClaudeConfigSettings], ClaudeConfigSettings] | None=None) -> ExecResultManage configuration (
claude config …). -
static async update(ctx: ServiceContext, configure: Callable[[ClaudeUpdateSettings], ClaudeUpdateSettings] | None=None) -> ExecResultSelf-update the CLI (
claude update).
class ClaudeUpdateSettings(ToolSettings) Settings for claude update (self-update the CLI).