Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

The useful question is not am I an AI person. It is where on the dial should I be for this task.

Two ends of one dial

AI-assisted — you drive

AI-driven (“vibe”) — AI drives

You write, edit, and read the code

You prompt the goal; the AI writes and edits files

The AI suggests; you accept, reject, modify

You judge the result, often without reading every line

You stay responsible for every line

The AI may run commands, install packages, edit configs

Mental model: pair-programming with a fast but unreliable junior

Mental model: delegating to a contractor you cannot fully supervise

Typical: autocomplete, “explain this”, “write a regex for…”

Typical: “build me a Streamlit dashboard for this CSV”, agents that run for minutes

The term vibe coding was coined by Andrej Karpathy in early 2025: “I just see stuff, say stuff, run stuff, and copy-paste stuff, and it mostly works.”

It is a dial, not a camp

From left to right: 100% you, no AI → autocomplete and Q&A → AI writes, you review → whole files, you skim → agent runs, you check → vibe, ship if it works.

Move right when the code is exploratory or disposable, the cost of being wrong is low (a plot for yourself), or the output is easy to test behaviourally.

Move left when the code goes into a paper, pipeline, or clinic; when you need to understand it later; when the data is sensitive; or when correctness cannot be eyeballed.

Three flavours of tool

Kind

What it is

Best for

Cost

Chat tools
Claude, ChatGPT, Gemini

You and a chat window. Copy-paste code in and out. No file access unless you upload.

Explain, brainstorm, snippets

Free tiers; paid around €20/month

IDE assistants
Copilot, Cursor, Continue

Lives inside your editor. Sees the file, often the repo. Inline autocomplete plus side-chat.

Writing while writing

Around €10–20/month; free for students and open source

Agentic tools
Claude Code, Aider, Cline

Runs in a terminal or as a service. Reads, writes, and runs files. Plans, edits, tests, fixes.

“Make it work end-to-end”

Pay-per-use; €5–50 per session

The same axis appears in the September session as three scenarios: full control (chat in a browser), IDE integration (the assistant is in the editor), and full agentic (it runs the loop). CodeRefinery teaches this axis independently of any vendor.

Scenario II — the IDE — is where most research code actually gets written, and it is the least taught. That is the subject of In the Editor.

What each flavour is good and bad at

Chat tools are great for explaining errors, drafting from a spec, regex, SQL and glob patterns, translating R to Python and back, and rubber-duck reasoning. Watch for hallucinated functions, stale APIs, data you did not mean to share, and the fact that there is no link to your codebase.

IDE assistants work best when you turn them off in files you are learning from, always read before you press Tab, and configure ignore patterns for .env, patient data, and *.csv in sensitive folders. Cursor and Copilot now have agent modes, which quietly crosses the dial.

Agentic tools are great for multi-file refactors, “rename this column everywhere”, building scaffolds, and running tests in a loop until they pass. The guardrails are non-negotiable: a git repository with frequent commits, a separate worktree for risky changes, read the diff, and cap your token spend.

Choosing by the shape of the task

TaskChatIDEAgent
“Why is this regex matching too much?”✅✅—
Add type hints across one file—✅✅
One-off plot from a CSV✅✅✅
Refactor an 800-line script into modules—△✅
Explain someone else’s R package✅✅△
Write tests for an existing function—✅✅
Debug a flaky CI pipeline△△✅
Draft a methods paragraph✅——

✅ fits well · △ works but overkill or underpowered · — wrong tool