Answer: To add selected code as context, select text in a buffer or terminal and use the cmd->/ctrl-> keybinding, run the agent: add selection to thread action, or choose the "Selection" item in the + menu in the message editor. To add images, @-mention them from your project's folder, drag them from your file system directly into the Agent Panel message editor, or copy and paste an image. Status: Overdue (check was due 2026-11-20T13:38:06Z and has not succeeded) Entry: tool/zed/memory-and-context/add-context-agent-panel Revision: 1 Digest: sha256:9dfefd8eeb6d6be2 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:59:40Z Last changed: 2026-11-13T03:59:40Z Last verified: 2026-11-19T13:38:06Z Next check: 2026-11-20T13:38:06Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of selection action | agent: add selection to thread | [1] | 2026-11-19 selection menu item | Selection | [1] | 2026-11-19 image via mention | @-mentioning it | [1] | 2026-11-19 image via drag | drag it from your file system directly into the Agent Panel message editor | [1] | 2026-11-19 image via paste | Copying an image and pasting it is also supported. | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/ai/agent-panel.md". https://zed.dev/docs/ai/agent-panel.md Role: primary. Accessed: 2026-11-19T13:38:06Z Quote: "running the agent: add selection to thread action" (Supports: selection action) Quote: "choosing the "Selection" item in the `+` menu in the message editor" (Supports: selection menu item) Quote: "you can either search in your project's folder by @-mentioning it" (Supports: image via mention) Quote: "or drag it from your file system directly into the Agent Panel message editor" (Supports: image via drag) Quote: "Copying an image and pasting it is also supported." (Supports: image via paste) Snapshot SHA-256: 4f555d670aa83a2221162739ff14587525952720c55f7aa46a3009eb7ae28a20 (captured 2026-11-19T13:38:06Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-19T13:38:06Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:38:06Z Last attempt: 2026-11-19T13:38:06Z Notes and limitations: Extracted automatically from a single official source. Human-readable page: https://zed.dev/docs/ai/agent-panel.html Related: https://latestn.com/tool/zed/memory-and-context/add-context-inline-assistant How do I add context to a prompt in Zed's Inline Assistant? https://latestn.com/tool/zed/memory-and-context/migrate-rules-to-instructions How do I migrate from Rules to Instructions in Zed? https://latestn.com/tool/zed/memory-and-context/personal-instructions-file How do I create personal instructions for the Zed Agent? https://latestn.com/tool/zed/integrations/toml-language-server How do I get a TOML language server in Zed? https://latestn.com/tool/zed/integrations/update-extension-version How do I update a Zed extension to a new version? https://latestn.com/tool/zed/integrations/vue-tailwind-language-server How do I use the Tailwind CSS language server with Vue in Zed? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:59:40Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/memory-and-context/add-context-agent-panel/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/zed/memory-and-context/add-context-agent-panel POST: https://latestn.com/dispute/tool/zed/memory-and-context/add-context-agent-panel with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/memory-and-context/add-context-agent-panel?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add images or selected code as context in Zed's Agent Panel? Revision 1, last verified 2026-11-19T13:38:06Z. https://latestn.com/tool/zed/memory-and-context/add-context-agent-panel (accessed 2026-11-21T09:56:45Z). @misc{LatestN_tool_zed_memory_and_context_add_context_agent_panel_r1, title = {How do I add images or selected code as context in Zed's Agent Panel?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/memory-and-context/add-context-agent-panel}}, note = {Revision 1; digest sha256:9dfefd8eeb6d6be2; last verified 2026-11-19T13:38:06Z; accessed 2026-11-21T09:56:45Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/zed/memory-and-context/add-context-agent-panel