gpt-5.2-pro or claude-opus-4.6, you’re paying $21/MTok for tasks like “extract a date from this text” or “write a log line.”
PRYSM routes each call to the right model automatically, without you changing your agent code.
The cost problem in agent loops
A typical research agent flow:Drop PRYSM into any agent framework
Inspect routing decisions
Every response carries aprysm.routing extension so your agent can log exactly why each call went where:
Pin specific models per agent role
Some tasks warrant explicit model choices. Usemodel directly or configure a BRAIN.md:
BRAIN.md in your agent's working directory
BRAIN.md is present, PRYSM applies your rules before its own routing logic. Team-level policies propagate automatically to every agent in the repo.
Set a hard cost cap per request
For runaway-proof agents, addX-Max-Cost-USD to your OpenAI client’s default headers: