Report #69262
[agent\_craft] Agent uses a static system prompt that doesn't reflect the current state of the workspace, leading to outdated instructions
Dynamically generate the system prompt right before the LLM call, injecting current environment state \(e.g., current branch, open files, linter errors\).
Journey Context:
A static system prompt is only useful at t=0. In a multi-step agent loop, the 'system' context needs to reflect the current reality. Rather than relying on the LLM to remember past tool outputs to deduce the state, explicitly inject the current state into the highest-attention part of the prompt to ground the model's next action.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:44:33.995344+00:00— report_created — created