Skip to content
Learn Python with BNHR

Stretch exercises S4 · Intermediate

Stretch: agents for your pipeline, a showcase

Stretch S4 of Python for Survey Statistics, after module 9: a showcase of what AI agents, hosted and local, can do for a survey's processing pipeline, with what each sends away and how to limit them.

Extra S4Level Intermediate
On this page
  1. Overview
  2. What you do
  3. Its notebooks
  4. Certification and support

A show-and-tell, not a lesson: what a coding agent can do for the pipeline this course built, and what it costs. It sets the cloud path (Claude Code as the example) beside the local one (an open-weight model on Ollama, driven by Pi) by speed, quality and what leaves the machine, then shows the harness that makes an agent’s work checkable: a brief in AGENTS.md, a handover folder of synthetic data and never microdata, tests as the judge, and git to undo.

It names the ways to limit what an agent can do, from Claude Code’s permission settings and sandbox to Docker Sandboxes and a read-only database account, each linked to its documentation. Four examples from the survey follow, one of them a failure that review catches, and the trainer’s demonstration of a local model closes it, with what a full training on agents would cover. There is nothing to write: read it, and in a training, watch it.

  1. What an agent is, and what it sends away: cloud and local
  2. A harness around your pipeline
  3. Limiting what an agent can do
  4. Four examples from the survey
  5. The local demo, and where this goes next

The notebooks are in your course folder; here you can read them without running anything. For reference in any module: primer: from r to python and primer: survey sampling in one page and glossary.

Saved in this browser only

Certification and support

We offer additional resources, certificates, ongoing support, and other perks to those who join our instructor-led training.

Join an upcoming training to take this as an instructor-led course, or contact us to arrange one for your team or organization.

Something new

Identify results
LayerExplore a module
ModuleStart here
AboutModule 1 of Python Essentials: check that your laptop is ready, see how a notebook works and why the order you run cells in matters, and write your first two functions with their checks. Its sections, its notebooks to read on the web, and the companion's solutions and explanations.
CoursePython Essentials, free