Plain tool loops

No framework? Wrap your model client and your tools, and every Viewport package works with a hand-written loop.

A tool loop on the Anthropic or OpenAI API is a few dozen lines, and Viewport fits it without a framework. Wrap the model client for tests, wrap tools for approvals, and ask Context for the tools to send.

PackageWith a plain tool loopGuide
Evals On npm and PyPIWraps the Anthropic or OpenAI client, so every model call is recorded and replayed.Evals guide
HITL On npm and PyPIWraps any function as a gated tool.HITL guide
Context On npm and PyPIHands your loop the prompt and tools for the skills that are loaded.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.