coaxer
Online: https://thekevinscott.github.io/coaxer/
Label examples. Derive the prompt. Consume it as a string.
The prompt is a build artifact; your labeled examples are the source of truth. When the prompt drifts, add more examples and recompile.
Install
Quick start
Label a handful of examples in a folder (see Getting Started for the shape), then:
Use the compiled prompt:
Core concepts
- Label folder — one directory per record.
record.jsonholds scalar fields; sibling files (readme.md,logo.png) carry large text or binary inputs. coax— reads the folder, builds a DSPy signature internally, optionally runs GEPA, writes a prompt artifact.CoaxedPrompt(path)— astrsubclass in Python (callable instance in TS). The raw template is the string value; calling renders it. Drops in anywhere a string is accepted. Exposes a structured-output schema (p.response_format/p.responseFormat()) for OpenAI's.parse()and Anthropic's tool-use.AgentLM/OpenAILM— LLM backends for the optional compile-time optimizer. See the API reference.