subagenttypescript

.com zod schema catalog

Zod schemas this repo actually defines

5 real schemas from scripts/agents/schema.ts. 1 had real drift from the Rust source of truth — see the story.

object

AgentConfig

scripts/agents/schema.ts

mirrors: crates/schema/src/agent.rs::AgentConfig; scripts/agents/schema.py::AgentConfig

z.object with regex-validated name, min-length description/system_prompt, positive-int max_turns.

enum

AgentModel

scripts/agents/schema.ts

mirrors: crates/schema/src/agent.rs::AgentModel; scripts/agents/schema.py::AgentModel

⚠ drift found + fixed: Was missing claude-fable-5 (present in agent.rs since the 2026-07-01 Fable5 addition) — a real drift caught while building this catalog on 2026-07-01, fixed in the same pass.

z.enum([...]) with 4 members after the fix.

enum

AgentTool

scripts/agents/schema.ts

mirrors: crates/schema/src/agent.rs::AgentTool; scripts/agents/schema.py::AgentTool

21-member z.enum, one per built-in Claude Code tool.

object

ClaudeDesktopProfile

scripts/agents/schema.ts

Backs profiles/claude_desktop_*.json — _profile label, mcpServers record, optional 3P enterpriseConfig.

object

McpServerConfig

scripts/agents/schema.ts

command/args/env shape for claude_desktop_config.json MCP server entries.