Working with AI
Online chatbot
In a browser. Nothing to install.
Desktop app or CLI
Installed on your computer. Works with files on your computer.
lab803.kerryback.com
A container on a server, with the software already installed.
Sign in at lab803.kerryback.com with your NetID as the username and your Rice student ID (S followed by eight digits) as the password.
A container
Each of you has a container on a Linux server.
Claude Code and Python
Both are installed in each container.
Sonnet 5
Claude Code is connected to Sonnet 5.
Right panel
Claude Code. The prompt window is at the bottom.
Left panel
Files (the default), Terminal, and View. Ignore Terminal and View for now.
Three-dots menu in Files
Upload from your laptop and download to your laptop.
Refresh
Click Refresh, above the left panel, to see a new file in Files.
No Microsoft Office
Double-clicking a Word, PowerPoint, or Excel file will not open it. Office is not installed.
Download
Download Office files from the three-dots menu and open them on your laptop.
Ask
Ask a question, anything. Type in the prompt window and press Enter.
Upload
Upload a Word doc and ask Claude to read it.
Download
Ask Claude to create a Word doc, then download it and read it.
Esc |
stop what it is doing, and keep the conversation |
Esc twice |
jump back to an earlier message and take a different path |
Ctrl-C twice |
kill Claude Code outright |
claude |
start it again, in a new conversation |
| Up arrow | your previous prompts |
Shift-Tab |
cycle the permission mode |
Esc stops a wrong turn without throwing away the context you built. Two Ctrl-Cs are for when the process itself is stuck. In lab803, press Enter after that to reconnect.
Every conversation is written to disk in your container as you go.
| What you get | |
|---|---|
claude |
a new, empty conversation |
claude --continue |
the most recent one, where you left it |
claude --resume |
a list of your past conversations, to pick from |
So the answer to a stuck terminal is always the same: two Ctrl-Cs, then claude --continue.
Typed into Claude, not into the shell.
/clear |
wipe the conversation and start fresh without leaving |
/resume |
switch to another conversation from inside this one |
/rename |
name this conversation so you recognize it in that list |
/help |
everything available |
A conversation that has wandered sends all of that back to the model on every turn — you pay for it, and it crowds out the question you asked.
/context |
what is filling the context window right now |
/cost |
what this session has cost so far |
/model |
change models mid-conversation |
/permissions |
what is allowed without asking |
/init |
write a starting CLAUDE.md for this folder |
/mcp · /plugin |
connectors and plugins |
Three prefixes work without a slash: ! runs a shell command directly, @ points at a file, and # adds a line to memory.
Start a new conversation for a new task
AI reads the entire conversation again each time you prompt. Irrelevant stuff consumes tokens and may be confusing.
When a conversation gets very long
Tell AI to write a handoff document so you can start a fresh conversation.
Tell Claude: Build an Excel workbook containing a mortgage amortization table. Include a chart of the amount going to interest and the amount going to principal each month.
Download the file, open it on your own machine.
If any answer is no, say so in one sentence and ask Claude to fix that specifically.
In lab803, the five Northwind spreadsheets are in data/. Elsewhere, download northwind.zip.
At lab803, use Refresh and then download files to view them.
Claude for Excel
From Anthropic. Paid Claude plans: Pro, Max, Team, Enterprise.
Cites the cells behind its answers. Edits cells without breaking formulas. Builds pivot tables, sorts, and filters.
Also available for PowerPoint, Word, and Outlook.
ChatGPT for Excel
From OpenAI. All ChatGPT plans. Also works in Google Sheets.
Builds sheets from a description, writes formulas, and sorts and updates tables.
Asks before it edits the workbook.
Prompt
Think about the best way to do this, formulate a plan, and tell me what your plan is.
Prompt
Explain what you did step by step. Did you make any decisions that we have not discussed? Write this as an HTML doc.
HTML is easy for AI to write and easy to read. Double-click an HTML file in File Explorer (Finder on Mac) and it will open in your browser.
If a number appears in prose and no code produced it, it was predicted.
Prompt
Compute this in Python and show me the code and the output. Do not report a number you did not compute.
The same rule applies to counts, percentages, dates, and anything summed across rows.
Ask what would falsify it
“What would have to be true for this to be wrong, and how would I check?”
Make it show its source
The file, the row count, the line of code.
The second conversation has no stake in the first answer.
Most ‘prompt engineering’ techniques from a few years ago are now either useless or actually counterproductive. Don’t tell it “you are an expert data scientist” or “think step by step.”
Tell it what you want, not what to do
I want … How can we do it?
If something doesn’t work
Try again.
Treat AI as an infinitely patient colleague with a poor memory.
Suppose an AI agent has told you in the path that Method A beats Method B for some task. You ask it to do the task.
Do not assume it will use what it knows. If “A beats B” is not in the context window, and B appeared more often in its training data, it will probably use B.
This is the value of “plan before you act.” Planning surfaces “A beats B,” leading Claude to select A for the task.
Three rigs, twenty wells, minimize lost production: workover.md. At lab803 it is in data/.
/clear in the Claude tab). Upload the file again and ask: Plan how to do this and share your plan. Read the plan, then ask it to proceed.Did it use the same method both times?
| Mode | What it does |
|---|---|
| Manual | asks before the first use of each tool |
| Plan | reads and explores, edits nothing |
| Accept edits | file edits go through without asking |
| Auto | approves on its own, with a check on each action |
| Don’t ask | refuses anything it would otherwise ask about |
| Bypass | no prompts at all |
Enforced by the program around the model, not by the model. A line in CLAUDE.md shapes what Claude tries to do; it does not change what is allowed.
The desktop app runs Claude Code, so the modes are the same and carry the same names.
| What it can reach | the folders you connect to the conversation, and nothing else |
| What it asks about | the first use of each tool, in Manual mode |
| What “don’t ask again” does | writes a rule that outlives the conversation |
Granting a folder is the decision that matters. The mode decides how often you are asked; the folder decides what can be reached at all.
Everything is allowed already, in ~/.claude/settings.json:
So nothing prompts you all week. That is a decision about this container — it holds your course files and is reachable only by you — not about how to run an agent on your own machine.
MGMT 803 · Rice Business