SIGN IN SIGN UP
continuedev / continue UNCLAIMED

⏩ Source-controlled AI checks, enforceable in CI. Powered by the open-source Continue CLI

0 0 78 TypeScript

Remove directory structure from system prompt

Remove the getDirectoryStructure() function and its embedding in the
system prompt. This was walking up to 500 files and embedding them as a
static tree in every API request, adding ~3,500-5,000 tokens per call.

The LLM already has tools (listFiles, Glob, Grep) to discover files on
demand, making the embedded tree redundant. Claude Code does not include
directory structure in its system prompt for the same reason.

This also improves prompt cache hit rates since the system prompt no
longer varies by project directory contents.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
N
Nate committed
d7aa797a94c3a8138835a6cdfebecad05f203898
Parent: c28ffbf