Agentic Coding · Training · Universities & research

Auto-Graded Programming Exercises: Training for Lecturers with Coding Agents

Give students immediate, useful feedback on their code and take load off your tutorial team, with tests that catch real mistakes and messages that help with the next attempt.

  • Workshops & trainings since 2014
  • jocapps GmbH · Freiburg, Germany
  • The team behind Mathe-VollLogo
Format
Training
Duration
1 day (7.5 hours)
Delivery
Live online · On-site (in-house) · Hybrid
Group size
4–12 participants
Level
Intermediate
Language
German or English

Tools: Claude Code · Python · pytest · nbgrader · Docker · GitHub Classroom

Marking dozens of programming submissions by hand every week leaves little time for feedback that actually supports learning. Auto-graded programming exercises only solve that problem if the tests are good: weak tests let wrong solutions through, while overly strict ones fail on floating-point rounding or harmless formatting differences. In this training you have a coding agent produce reference solutions, visible and hidden tests and deliberately faulty solutions for your exercises. You then check whether the tests really catch typical mistakes, and write feedback that shows students what to do next.

Who the auto-grading training is for

Lecturers, tutorial leads and teaching assistants in programming, numerical methods and data science modules who want to check submissions automatically and are confident Python programmers themselves.

What you'll walk away with

  • Shape programming exercises so that they can be graded automatically, fairly and unambiguously
  • Use a coding agent to create a reference solution plus visible and hidden pytest tests
  • Measure test quality with deliberately faulty solutions and close the gaps you find
  • Compare numerical results with sensible tolerances instead of exact equality
  • Write clear failure messages and run submissions in an isolated environment

Typical scenarios

  1. A numerical methods exercise on Newton's method checks not only the final value but also the stopping criterion and the behaviour when the derivative is close to zero.
  2. For an introductory module the agent generates several typical wrong solutions per exercise, and the tutorial team sees at once which of them the existing tests miss.
  3. A department moves its Jupyter exercises to nbgrader while keeping hand-marked parts for interpretation and reasoning.

Does this fit your team?

Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.

Request dates

What the auto-grading training covers

  1. Exercises built for auto-gradingDefine clear interfaces, function signatures, inputs and outputs without reducing the exercise to filling in blanks.
  2. Generating tests with the agentReference solution, visible example tests and hidden pytest tests, with every suggestion from the agent checked in review.
  3. Faulty solutions as a benchmarkThe agent writes deliberately broken variants with typical beginner mistakes, and you measure which ones the tests detect.
  4. Numerics and tolerancesFloating-point comparison, relative and absolute tolerances, random inputs with a fixed seed and time limits.
  5. Feedback and executionFailure messages that point to the problem rather than just saying wrong, and isolated execution of submissions in Docker.
  6. Fitting it into teachingAn overview of options such as nbgrader, CodeRunner in Moodle or GitHub Classroom, and how to combine them with hand marking.

Before the auto-grading training: prerequisites

  • Solid Python skills and a basic grasp of pytest
  • Two or three exercises from your module with model solutions
  • A laptop with Docker, Python and a coding agent your university permits

Materials you keep

  • A template for exercise packages with reference solution, tests and faulty solutions
  • A checklist for fair tests and helpful failure messages
  • The exercises from your module that you reworked during the training

How it works

  1. Request with preferred datesTick the date proposals that suit you or name a period of your own.
  2. Short callWe talk about your goals, prior knowledge and the tools your team already uses.
  3. Agenda for your teamYou receive a plan tailored to your group, with exercises that match your subject and material.
  4. Course and materialsThe course runs online, on-site or hybrid, and you keep the materials afterwards.

Why train with us

  • jocapps GmbH has offered workshops and trainings since 2014. The topics have moved with the technology; today the focus is on agentic coding and prompt engineering.
  • Hands-on rather than slides: you practise on realistic examples from maths and STEM, or on your own tasks, code or prompts if you wish.
  • Online, on-site or hybrid, held in German or English.
  • jocapps GmbH is certified to ISO 27001 (information security) and ISO 9001 (quality management).

Questions about the auto-grading training

Which platform should we use for auto-grading?

That depends on your infrastructure. Many universities use Moodle with CodeRunner, nbgrader for notebooks or Git-based workflows. The training focuses on exercises and tests that transfer to these platforms and compares the options neutrally, so you can decide on a sound basis.

What if students write their submissions with AI?

Auto-grading cannot prevent that. Exercises with a written reasoning part, short oral code walkthroughs and clear rules on permitted AI use all help. Your university sets the rules; the training shows exercise formats that make understanding visible.

Do the tests also check code quality and style?

Partly. Linters and format checks can be added, for instance as advice without losing marks. Readability, structure and meaningful comments are deliberately left to human markers in the training, because rigid automated rules quickly become unfair here.

Is the training held online or on-site, and in which language?

Both are possible: live online, at your premises (in-house) or hybrid. The course is held in German or English; you choose when you send the request.

Can the content be tailored to our team?

Yes. The agenda, examples and emphasis are agreed in the call beforehand, based on your team's prior knowledge, subjects and tools. On request we work with your own exercises, data or code.