mitsuhiko explains why Pi's classify() only makes sense via codemode with a custom harness

mitsuhiko · x · 2026-10-28

Armin Ronacher (mitsuhiko) replied to manojlds asking why models.classify() and models.generateImages() in Pi are only reachable from codemode rather than exposed as regular tools.

The takeaway is a design stance: prefer programmable model access from code over raw agent tools, saving a model turn on every invocation.

Related event: mitsuhiko explains why Pi's classify is codemode-only(2 posts)→

Original post →

More from coding & agent

coding & agent channel →