Expand description
Newt-Agent provider-plugin protocol.
Provider plugins run as separate processes and speak JSON-RPC over stdio. They register opt-in inference backends — most notably the cloud backends (OpenAI, Anthropic) that the default Newt binary deliberately does not link.
v0 surface: initialize, list_models, complete, stream, shutdown.
Modules§
- emission_
shape - Emission shapes a coder plugin can produce, surfaced in
TaskReply.emission_shapewhen the newt-coder plugin processed the request.
Structs§
Constants§
- AGENT_
KEY_ ENV - Environment variable a Newt host sets when spawning a provider plugin to
hand the plugin a base64-encoded JSON
CertChain(an attenuatedAgentKey) for this dispatch. - PROTOCOL_
VERSION
Functions§
- read_
agent_ key_ envelope_ from_ env - Read the agent-key envelope from the
AGENT_KEY_ENVenv var, if set.