Pi Codemode
It makes typed probabilistic classification an optional primitive inside a sandboxed tool-calling agent.
It makes typed probabilistic classification an optional primitive inside a sandboxed tool-calling agent.
When the optional Jev binding is armed, guest TypeScript can submit an arbitrary state and one or more named Noul, Choice, or Score questions through jev.ask. The host sends the request and returns typed answers to guest code; the repository defines the transport and shapes, but no product-specific decision consumer or fixed question set, so the example below is an explicitly illustrative request shape.
Escalate?
The pinned client test uses state “Customer is angry” and one keyed Noul question. The test uses a mocked response; this is not a captured live Jev call.
The host conditionally exposes jev in guest bindings when an API-backed Jev client is configured.
The agent writes TypeScript state and Noul, Choice, or Score questions; the code is type-checked before running.
The guest jev.ask call forwards state and questions to the client. Typed answers return to the same guest execution, where its code can use them alongside tool results.
It makes typed probabilistic classification an optional primitive inside a sandboxed tool-calling agent. Guest code can pair Jev with discovered MCP tools in one execution, while the host controls whether the capability is available.