Skip to content

v1.3.4

Choose a tag to compare

@github-actions github-actions released this 27 Nov 16:13
· 7 commits to main since this release
5e6625f

Blitz 1.3.4: smarter token caching, leaner history, and tool churn protection

Long coding sessions and sub-agent loops no longer burn through your token limits or prompt cache. Blitz 1.3.4 introduces rolling prompt caching for Anthropic models, request-only history pruning for old outputs and screenshots, deduplicated directory listings, and automated circuit breakers that halt repetitive tool failures before they blow up context windows.

What's better

  • Rolling prompt cache for Anthropic models. Multi-turn chats now place an ephemeral cache breakpoint on the conversation’s previous turn (Messages[len-2]). Your multi-turn history consistently hits Anthropic's prompt cache, dramatically lowering latency and API costs on long-running tasks.
  • Request-only history pruning. Older outputs sent over the wire are automatically trimmed without mutating your stored conversation history or breaking replay/rewind:
    • File reads (read_file) superseded by later edits to the same path are stubbed out.
    • Shell command outputs larger than 4 KiB that are older than 4 user turns are trimmed into concise head/tail summaries.
    • Heavy browser screenshots older than 3 user turns are replaced with lightweight text notes.
  • Deduplicated list_files and glob. Directory inspection now shares the same digest-based deduplication as file reads. Repeated listings of unchanged directories return unchanged: true rather than echoing entire trees back into the context.
  • Targeted search with progressive grep. grep gains content (default), files_only, and count modes. Default results are capped at 20 matches (with total match and file counts reported on truncation) to encourage progressive discovery rather than dumping hundreds of matching lines into the prompt.
  • Distilled sub-agent results. Delegated agents (invoke_agent) now distill their return text down to the final response (capped at 8,000 characters) instead of cluttering parent sessions with pages of intermediate scratchpad tool loops.
  • Tool-churn circuit breakers. If a tool fails with identical arguments four consecutive times, the engine refuses the fourth attempt with a circuit breaker refusal, preventing expensive death spirals on broken commands.
  • Lean tool schemas and bounded outputs. Plan-only, read-only, and restricted-tool modes omit disallowed tool declarations from outgoing model requests, saving prompt tokens. MCP server outputs are bounded by 100 KiB head/tail buffers, and browser console snapshots are capped at 50 lines.

Good to know

  • Session integrity is preserved. Pruning only applies to outgoing model request copies. Your persisted ADK session events, replay traces, and rewind points remain completely intact.
  • Cache prefix stability. Non-essential tool filtering only kicks in during plan-only or explicit tool-restricted modes, preserving Anthropic prompt cache prefixes during standard conversational turns.
  • Traceable specifications: Implements MDL-21a, CA-28, CA-28a, FS-83a, FS-84, ENG-30a, ENG-70c, AG-31b, HE-07a, WEB-36a, and MCP-23.