Merged
Conversation
kassieclaire
added a commit
to kassieclaire/cerebras-code-cli
that referenced
this pull request
Feb 27, 2026
Phase 01: Exploration & Architecture Validation Changes: - 01-01: Added sidebar split pattern task, combined documentation, added ARCH verification - 01-02: Split from old 01-02 (keyboard infrastructure only, 3 tasks) - 01-03: NEW - keybind audit + documentation (split from old 01-02) - 01-04: Renumbered from 01-03, fixed must_haves for store-agnostic design Issues addressed: - Blocker kevint-cerebras#1: Added sidebar split pattern task to 01-01 (Success Criteria kevint-cerebras#3) - Blocker kevint-cerebras#2: Split 01-02 (5 tasks) into 01-02 (3) + 01-03 (2) - Blocker kevint-cerebras#3: Fixed must_haves/key_links for store-agnostic prototype - Warning kevint-cerebras#4: Fixed wave dependencies (01-02 wave 2, 01-03 wave 3) - Warning kevint-cerebras#5: Added RESEARCH.md to <files> for exploration tasks - Warning kevint-cerebras#6: Added test file to 01-04 files_modified - Warning kevint-cerebras#8: Added ARCH constraint verification to 01-01 and 01-04 Ready for re-verification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CLI has a few different dynamic variables that prevent prompt caching, contained in the
environmentsystem which contains info about the cwd, git status, file tree, etc.As shown in the chart below, these dynamic variables appear before systems like
customand the user's conversation history, both of which are much less likely to change thanenvironment, and thus much more cacheable.So, this PR rearranges the order in which the systems are sent to the LLM so that environment appears as the last possible system before the most recent user message - meaning the only things NOT likely to be cached will be the
environmentsystem and the most recent user message.This will provide a significant cache hit rate improvement, because custom instructions + the entire conversation history can now be easily cached.
Cache flow before PR:
Cache flow after PR: