AFM CLI 0.2.0 gates prompts by real-tokenizer token budgets

rudrank · x · 2026-11-29

AFM CLI 0.2.0 adds a --max-input-tokens flag that rejects prompts over budget using real tokenizer counts, useful in scripts, local servers, and agent workflows around Apple's Foundation Models.

The 67-star CLI supports runtime availability checks, streaming, token accounting, and structured-output flows. The author also released FoundationModelsKit 4.1.0, which allows disabling tools per request and fixes a conversation-reset race.

Original post →

More from coding & agent

coding & agent channel →