Claude Agent SDK

Test agents built on the Claude Agent SDK, gate tools through its permission hooks, and run Claude Code under the daemon.

The Claude Agent SDK runs Claude Code as a child process and asks your code before each tool. Viewport listens to that process for tests and answers those permission questions with your policy.

PackageWith the Claude Agent SDKGuide
Evals On npm and PyPIRecords and replays the child process through a local proxy, so tests stay offline.Evals guide
HITL On npm and PyPIAnswers each permission request with your policy, and asks a person when it says ask.HITL guide
Context On npm and PyPIBuilds the system prompt and allowed tools from the skills a task needs.Context guide

Each guide carries code that runs in that package's repository, in TypeScript and Python where the framework has both. None of them is on npm/PyPI yet; install from source.

Run it on your machines

Claude Code sessions can also run under Viewport Daemon, which is on npm today. Daemon starts them, tracks permission prompts, and lets you answer from the CLI.

On this page