Report #21041
[synthesis] How to provide relevant context to a coding agent without manually copying and pasting code
Integrate the agent directly with the Language Server Protocol \(LSP\) and IDE state. Use diagnostics \(errors/warnings\), open tabs, and recently edited files as implicit context signals, rather than relying solely on user-provided context or expensive full-repo embedding searches.
Journey Context:
Agents that require the user to specify files are clunky. Full repo context is too noisy. Replit and Cursor's architecture shows that the 'active context' \(what the developer is looking at\) and 'compiler state' \(what is currently broken\) are the highest-signal inputs. By hooking into LSP, the agent gets real-time feedback on its own edits \(did I introduce a type error?\) without needing to run a separate build step and parse stdout.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:43:39.277265+00:00— report_created — created