promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Aider

/copy-context

Copies the current code context (files, repo map, instructions) as markdown to the clipboard, suitable for pasting into a web chat UI.

/copy-context <instructions> copies all files added via /add, all reference files added via /read-only, plus Aider's repository map and an instruction telling the LLM to output changes concisely. Any <instructions> appended are copied too. The docs describe this as a way to use a web-chat LLM as the "big brain" for planning, while Aider locally applies the edits with a cheaper model (via /paste of the reply).

โœ… WHEN TO USE IT?

Use a capable web-chat LLM as architect without API access

/copy-context Suggest how to add rate limiting to this API โ€” paste the result into an LLM web chat UI when only web-chat, not API, access is available

Share context with colleagues or in a ticket

/copy-context โ€” paste the resulting markdown into an issue or doc so others can follow the current code context

โ›” WHEN NOT TO?

Wanting to copy just the last Aider reply

/copy-context copies files and the repo map, not the last chat reply.

Better: Use /copy for the last reply

Wanting Aider to edit directly itself

/copy-context only prepares a handoff to an external web-chat LLM; it doesn't change any files itself.

Better: Use /code or /architect if Aider should work directly with its configured model

SOURCES