AI-Assisted Programming for PhD Researchers
Helmut Schmidt University, August 2026
Pick the line for your system:
Then confirm it installed:
Windows: once installed, run opencode itself in Zed’s integrated terminal (or Windows Terminal/PowerShell). Git Bash handles multiline paste poorly for TUI apps like OpenCode. git/uv commands are still fine in Git Bash.
mistral/mistral-medium-latest) for our labsKey stored locally in OpenCode’s config, never committed to git.
The Mistral free tier is the course default. Prefer an account you already pay for? All of these work in OpenCode:
opencode auth login → OpenAI (officially supported)opencode.json/undo reverts OpenCode’s last change; /redo puts it backgit diff to see it, git restore to revert it@path/to/file pulls a file into the conversationKeep it to what the agent needs to act:
data/raw is read-only”/init scans your repo and generates a first AGENTS.mdEach model has a hard limit on tokens it can hold at once:
| Text | Rough tokens |
|---|---|
| One page of prose | ~500 |
| A 500-line source file | ~6,000 |
| Our models’ full window | 128k–262k |
Plan what you load. Do not pour the whole project in at once.
429 errors, stalled or truncated responsesTHE workflow of this course, four phases, each with a job:
Good opening prompts cost little and load the right context:
Exploring is cheap and fast, and it sets up everything after.
“The agent said so” is not verification. You are still the scientist of record.
In Lab 1 you meet the inherited script and put the loop to work:
/init, then trim itLecture III: First Steps with an Agent | Dr. Tobias Vlćek | Home