Skip to main content
  1. /classes/
  2. Classes, Fall 2025/
  3. CS 2381 Fall 2025: Course Site/

cs2381 Notes: 09-29 Vibe Coding with Aider

·211 words·1 min·

Today, we’re going to build Missile Command
#

For simplicity, we’ll start with the starter code for Lab 05, largely because that lab already opens a graphics window.

Aider Install and Setup
#

Aider config file (~/.aider.conf.yml):

api-key: OPENROUTER=sk-or-v1-[...]
model: openrouter/qwen/qwen3-coder
edit-format: diff
weak-model: openrouter/qwen/qwen-turbo
  • Create new git repo:
    • git init .
  • In the repo directory, run aider (aider)

Then we can start chatting with our AI dev buddy.

Key Ideas: Context and Messages
#

Aider works by sending a chat message with some extra data about our project, including a portion of the existing source code.

  • /read-only path/to/file.java # Aider sends a copy to the LLM, but can’t modify this file.
  • /add path/to/file.java # Aider sends a copy to the LLM, which can chose to modify this file.
  • /ask Question… # Aider should send a message and modify nothing.
  • Instructions # Aider should make a change to the code.

So let’s write Missile Command…

Nat Tuck
Author
Nat Tuck