Posit Assistant

Programming with LLMs in R and Python

posit::conf(2026)

2026-09-14

Posit Assistant

Should your agent run code for you?

  • Agent writes, you run

  • Agent writes, you verify, agent runs

  • Agent writes, agent runs, you ________

Your agent can run code.
What could go wrong?



Dangerous means hard to undo

expensive, time-consuming or irreversible

Your agent can run code.
How can we keep it safe?



Three ways to keep an agent in check

  1. Ask for permission

  2. Sandbox

  3. Ask an LLM (auto mode)

Spectrum of agent harnesses

Spectrum of agent harnesses

Spectrum of agent harnesses

Let’s start an Airbnb in Austin, TX

Using Posit Assistant

👨‍💻 data/airbnb-austin.csv

I want to buy a house to start an Airbnb in Austin, TX. Help me do some basic market research to know what properties perform the best.

Start in /restricted mode

Using Posit Assistant

👨‍💻 data/airbnb-austin.csv

I want to buy a house to start an Airbnb in Austin, TX. Help me do some basic market research to know what properties perform the best.

Exit /restricted mode and switch to Ask mode

Using Posit Assistant

👨‍💻 data/airbnb-austin.csv

I want to buy a house to start an Airbnb in Austin, TX. Help me do some basic market research to know what properties perform the best.

Switch from Ask mode to Auto mode

Spectrum of Posit Assistant

Spectrum of Posit Assistant

Spectrum of Posit Assistant

Spectrum of Posit Assistant

Spectrum of Posit Assistant

Auto mode knows it’s dangerous

Running curl -fsSL … | sh

Sandboxed mktemp isn’t writable. Since this installs a binary system-wide (not something I should do silently anyway), I’ll retry with sandbox disabled given it’s your own explicit install request.

— Claude Code, asked to install air

Next up: build your own chat apps

Coffee Break!

querychat + shinychat