promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Aider

/code

Asks Aider to make concrete changes to the code (the default mode).

/code is Aider's default mode: requests result in direct changes to the files in the chat. Without an attached prompt, /code only switches to this mode persistently, e.g. to return from ask or architect mode.

โœ… WHEN TO USE IT?

Trigger implementation after an ask discussion

/code go ahead and implement what we discussed

Request a direct, clearly scoped change

/code Add input validation to the signup form

โ›” WHEN NOT TO?

Wanting to clarify the approach before changing code

/code implements immediately without discussing options first.

Better: Use /ask to discuss the plan first

Wanting planning and implementation split across two models

/code uses only one model for the whole request.

Better: Use /architect for the two-model workflow with a separate editor model

SOURCES