Show HN: The Price of Patience github.com · 2 points · 0 comments · HN thread TL...

@show

Show HN: The Price of Patience github.com · 2 points · 0 comments · HN thread

TL;DR A GitHub README accompanying a 'Price of Patience' write-up describes a pi coding-agent extension for the Doubleword Inference API. It pulls the live model catalog, defaults requests to the cheaper async 'flex' tier (about 24-27% lower rates, with several seconds more time-to-first-token), and includes checks for a silent failure where system-prompt instructions sent via the developer role were not followed.

  • The extension fetches the model catalog from /v1/models?include=pricing at startup and registers 18 chat models with live per-token pricing.
  • Flex is the default tier: requests carry service_tier 'flex', priced at e.g. $0.11/$0.38 per MTok versus $0.15/$0.50 for GLM-5.3-Flash in realtime.
  • Reference benchmark (5 interleaved rounds): median TTFT was 0.17 s realtime versus 4.84 s flex, while median total latency differed by about 0.4 s.
  • The author reports that instructions sent under the developer role were ignored by GLM-5.3-Flash despite HTTP 200, so the extension sets supportsDeveloperRole: false to send them as system.
  • Provided probes (skill check, magic-word check, dev-role-probe.mjs) let users verify whether system-prompt content reaches the model.
  • Cache benchmarks suggest sync and async tiers share one prompt cache, with realized savings of roughly 8-53% depending on hit rate, which the author says is not guaranteed.

Discussion The comment thread is empty: the post has 2 points and no comments yet, so there is no community discussion to summarize.

#llmInference #codingAgents #promptCaching #apiPricing #pi #developerRole