AI Agents Book

Skill

Textgrad prompt optimizer

Optimize a prompt (or system prompt) using TextGrad — "textual gradients" that backpropagate natural-language feedback through a pipeline of LLM calls. Wraps the prompt in a tg.Variable, runs forward passes, computes a TextLoss from a prose rubric (no labeled pairs needed), calls backward() to get text feedback, then optimizer.step() rewrites the prompt. Iterates until the loss narrative converges or step budget exhausts. Works with local Ollama via litellm backend. Use as a pre-ILP auto-refine pass: run on a draft prompt node to produce a better R0 baseline before the 3-reviewer panel starts, reducing ILP rounds. Also covers Promptolution (evolutionary/population prompt search) as a brief follow-up note for when population diversity matters over gradient descent.

Primitives inside (5)

Get the whole skill

All 5 primitives of this skill as one package, with the order to apply them.

Buy only the primitives you need

Each primitive is 1 credit (≈ €0.10). Pick them from the list above — the button is next to each one.

Upgrade your own skill

Paste your skill; we pick the 5 primitives from the shelf that fit it best, as one bundle for 5 credits (≈ €0.50).

Upgrade my skill

Neighbour skills

Skills whose primitives are closest to this one (bge-m3 similarity):

Register interest

Interest only — no payment, no order, no reservation. After you confirm by email we send you one free sample primitive.