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.
More from coding & agent
- Agentic GraphRAG unifies enterprise knowledge and agent memory in one traversable graph — vm324234 · 2026-11-29
- Coding agent blocked from npm rewrote the whole package from memory — and it worked — Panther1537 · 2026-11-29
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29
- 'Verification is AI's next trillion-dollar category' — proof checkers, evals, agents auditing agents — McDonaghMatthew · 2026-11-29
- Vibe-codevember day 28: 'Hive', a Three.js creative coding demo built with AI — thespite · 2026-11-29
- 'End user programming!': a three-word verdict on what LLM coding really unlocks — round · 2026-11-29