promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Aider

/load

Loads a file of /commands and runs them one after another.

/load reads in a file containing Aider /commands, one per line, and runs them in sequence.

โœ… WHEN TO USE IT?

Automate a recurring sequence of commands

/load setup.txt โ€” read in and run a file with e.g. /add commands for a specific set of files

Restore a file selection saved with /save

/load session.txt โ€” reconstruct a chat session's file selection that was previously saved with /save

โ›” WHEN NOT TO?

Running a single command directly

The detour through a file is unnecessary for a single command.

Better: Type the command directly into the chat

Wanting the command file loaded right at Aider's startup

/load is an in-chat command for an already-running session.

Better: Use the --load LOAD_FILE flag at startup to have the file read in automatically

SOURCES