/AI13h ago

Google DeepMind's Philipp Schmid shares a workflow to automatically optimize prompts for any CLI agent using the GEPA library

It uses task and reflection models to self-optimize

--0--
Original posts
Reposts
Original post
Philipp Schmid@_philschmid#934inAI

TIL: You can optimize any agent (cli) with GEPA to automatically optimize your prompts.

GEPA accepts any `(str) -> str` callable, it works with your own custom CLI, local models, or API agents. Wrap your agent in a python function and let it self-optimize.

7:43 AM · Jun 2, 2026 · 21.2K Views
Sentiment
Sentiment building, check back later.
Cluster Engagement
-
Views
-
Comments
-
Reposts
-
Bookmarks
Expand data
Posts from X
Most Activity
Most ActivityTimeline
RETWEETS20
Philipp Schmid@_philschmid

TIL: You can optimize any agent (cli) with GEPA to automatically optimize your prompts.

GEPA accepts any `(str) -> str` callable, it works with your own custom CLI, local models, or API agents. Wrap your agent in a python function and let it self-optimize.

13hViews 21.2KLikes 277Bookmarks 254
Google DeepMind's Philipp Schmid shares a workflow to automatically optimize prompts for any CLI agent using the GEPA library · Digg