Report #2010
[agent\_craft] Loading the entire codebase map or static documentation into the system prompt leaves no room for dynamic conversation
Keep the system prompt strictly focused on persona, tool usage rules, and the mechanism for retrieving context. Dynamically inject project context into ephemeral user/assistant turns.
Journey Context:
It is tempting to put the whole repo tree in the system prompt so the agent 'always knows' the layout. But system prompt tokens are paid on every turn and cannot be evicted. If the tree takes 4k tokens, that's 4k tokens wasted if the agent is just fixing a typo in a single file. Dynamic retrieval \(fetching relevant docs only when a task starts\) is more complex to implement but vastly more token-efficient and allows the context window to breathe.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T09:34:20.871721+00:00— report_created — created