Bootcamp / Session 3 / 3.0
Session 3.0 · Pre-work
In 3.2 you build a knowledge base with an AI agent that works on files on your own computer, so it will not run in Claude or ChatGPT in a web browser. Do this page before class: install Claude Code or Codex CLI in the terminal, and check that it answers. Paperclip, a literature search tool, is optional. It takes about 20 minutes.
If anything below fails to install, or your computer does not let you install software, contact us at biocore@umassmed.edu before Friday. We would rather sort it out this week than in class.
Can’t install, or no paid subscription? Come anyway. John does every step of the exercise live on the projector, so you can follow along and watch what the agent does.
Never used a terminal? That is fine, and part of the point of the session: you paste one line to install, type one word to start, and from then on you talk to the agent in plain English.
macOS: press Cmd+Space, type Terminal, and press Enter.
Windows: click Start, type PowerShell, and press Enter.
Paste each command below into the terminal and press Enter.
You only need one of the two.
Claude Code, macOS:
curl -fsSL https://claude.ai/install.sh | bash
Claude Code, Windows PowerShell:
irm https://claude.ai/install.ps1 | iex
Codex CLI, macOS:
curl -fsSL https://chatgpt.com/codex/install.sh | sh
Codex CLI, Windows PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
Then start it: type claude for Claude Code or codex for Codex CLI, press Enter, and follow the login instructions.
With your agent started, type:
What can I do with coding agents?
Checkpoint The agent answers in the terminal. If it does, you are ready for Friday. Type /exit (Claude Code) or press Ctrl+C twice to leave.
The terminal agents are what the exercise is built and tested for. The desktop apps are a fallback: you will very likely run into trouble with some of the exercise steps in them. Use one only if you cannot get Claude Code or Codex CLI to run, and expect to watch John for the steps that misbehave.
If your Claude seat comes from a lab or department plan (a Claude Team plan, including Anthropic’s Team plan for scientists, or Enterprise), Claude Code may be switched off until an Owner, usually the PI, allows it. A personal Pro or Max plan needs none of this.
Paperclip is a scientific paper index that gives your agent search and retrieval over more than 8 million papers. It makes the literature steps in 3.2 better, but you do not need it: without it, your agent searches PubMed Central through NCBI instead, with no install and no account.
First create a free Paperclip account. Then open a terminal (on macOS, Terminal; on Windows, PowerShell) and install it.
macOS:
curl -fsSL https://paperclip.gxl.ai/install.sh | bash
Windows: Paperclip has no Windows installer yet, so install it with Python.
Invoke-WebRequest https://paperclip.gxl.ai/paperclip.whl -OutFile "$env:TEMP\gxl_paperclip-0-py3-none-any.whl" python -m pip install --no-deps "$env:TEMP\gxl_paperclip-0-py3-none-any.whl" python -m pip install requests click pyyaml
paperclip command.Both: set Paperclip up for your agent. It asks you to sign in with the account you just made.
paperclip install
Checkpoint paperclip config shows your email next to Auth. If Paperclip will not install, skip it and let us know at biocore@umassmed.edu; each step in 3.2 that uses it shows an NCBI prompt to use instead.