Skip to content

Commit 82a68e7

Browse files
feat(aider): update Aider execution to use architect mode for improved task handling and reporting
1 parent 97fa9b6 commit 82a68e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aider/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ EOL
301301
if [ -n "$CODER_MCP_AIDER_TASK_PROMPT" ]; then
302302
echo "Running Aider with message in tmux session..."
303303
# Start aider with the message flag and yes-always to avoid confirmations
304-
tmux new-session -d -s ${var.session_name} -c ${var.folder} "export ANTHROPIC_API_KEY=\"$ANTHROPIC_API_KEY\"; aider --verbose --yes-always --read CONVENTIONS.md --message \"Report each step to Coder. Your task: $CODER_MCP_AIDER_TASK_PROMPT\" | tee -a \"$HOME/.aider.log\""
304+
tmux new-session -d -s ${var.session_name} -c ${var.folder} "export ANTHROPIC_API_KEY=\"$ANTHROPIC_API_KEY\"; aider --architect --yes-always --read CONVENTIONS.md --message \"Report each step to Coder. Your task: $CODER_MCP_AIDER_TASK_PROMPT\" | tee -a \"$HOME/.aider.log\""
305305
# Create a flag file to indicate this task was executed
306306
touch "$HOME/.aider_task_executed"
307307
echo "Aider task started in tmux session '${var.session_name}'. Check the logs for progress."
@@ -339,7 +339,7 @@ EOL
339339
cd ${var.folder}
340340
export PATH=\"$HOME/bin:$HOME/.local/bin:$PATH\"
341341
export ANTHROPIC_API_KEY=\"$ANTHROPIC_API_KEY\"
342-
aider --verbose --yes-always --read CONVENTIONS.md --message \"Report each step to Coder. Your task: $CODER_MCP_AIDER_TASK_PROMPT\" | tee -a \"$HOME/.aider.log\"
342+
aider --architect --yes-always --read CONVENTIONS.md --message \"Report each step to Coder. Your task: $CODER_MCP_AIDER_TASK_PROMPT\" | tee -a \"$HOME/.aider.log\"
343343
/bin/bash
344344
"
345345

0 commit comments

Comments
 (0)