Simple APIclaude.ask() returns a typed result. claude.stream() yields events via AsyncIterable. That's it.
Structured JSONclaude.askJson(prompt, schema) returns validated, typed data. Zod, Valibot, ArkType via Standard Schema -- or raw JSON Schema.
Multi-Turn SessionsKeep a process alive across prompts. Conversation context preserved between calls.
Full Agent PowerFile access, git, shell commands, sub-agents. Everything Claude Code can do, from your code.
CLI Binarynpx @pivanov/claude-wire ask-json -- schema-validated JSON from the shell. Perfect for CI pipes, one-off extraction, and automation.Learn more
Claude Code SkillInstall /ask-json via skills.sh and Claude Code auto-routes structured-output tasks to a cheap haiku sub-agent.Install the skill