Back to course

50-Line Challenge: Auto-Code Fixer

Agentic AI Engineering (Build, don't just prompt)

Challenge 3

Build an agent that reads a Python file with an error, runs it, captures the traceback, and rewrites the file to fix it.

Constraint: Use only standard libraries and the OpenAI/Anthropic API.