curl -fsSL https://terminal-plan.sh/install | bashterminal-planterminal-plan set <file>terminal-plan open [--split <direction>] [--size <pane size %>]terminal-plan is a CLI that lets your agent open plans written in HTML inside a split screen within your terminal.
Highlight text to add comments
429s vanish after every deploy · in-memory buckets reset
Each api pod keeps its token buckets in process memory. A deploy replaces the pods, the buckets reset, and for about a minute every client can burst far past its quota. The 429 rate flatlines while the fleet warms up.
Move the buckets to redis so quota state survives rollouts: one lua script does the check-and-decrement atomically, responses carry X-RateLimit-Remaining, and a regression test rolls a pod mid-run to assert the quota holds.
Fail open or fail closed when redis is unreachable? Open risks abuse for the outage window; closed turns a redis blip into a full API outage.
terminal-plan builds on top of terminal-browser to render HTML inside the terminal. You should look into this project if you are interested in the technical details!