LEVEL 1 · STARTER

Tiny Coding Agent

Build a bounded coding loop that applies exact patches to a disposable workspace and runs its real tests through an allowlisted tool contract.

4 stages~8 hoursPythoncore
Confine file tools to a workspaceApply exact patches with preconditionsRun real tests through one allowed commandStop the coding loop on evidence or budget
YOU END UP WITH

A repair agent that exposes the patch/test evidence trail and refuses unsupported success claims.

USEFUL FOR
  • A repair agent that exposes the patch/test evidence trail and refuses unsupported success claims.
  • The CLI copies a trusted Python workspace to a new destination, then runs its tests as local code.
WHY THESE LANGUAGES
  • Python The standard library makes parsing, scoring, and failure handling visible without hiding the mechanism behind a framework.
PROJECT OUTLINE

Tiny Coding Agent in 4 stages

Build a bounded coding loop that applies exact patches to a disposable workspace and runs its real tests through an allowlisted tool contract.

  1. Confine file tools to a workspace

    Resolve existing relative file paths under a workspace and reject traversal, absolute paths, symlink escapes, and nonfiles.

    starter · ~2 hours · Python

    path containmenttool boundaries
  2. Apply exact patches with preconditions

    Replace one exact occurrence and preserve the file on missing or ambiguous matches.

    core · ~2 hours · Python

    patch preconditionsatomic writes
  3. Run real tests through one allowed command

    Run unittest discovery in the workspace and report passed, tests, output, and a terminal state.

    core · ~2 hours · Python

    subprocesstimeoutstest evidence
  4. Stop the coding loop on evidence or budget

    Consume patch and test actions, record results, and return completed, failed, or budget_exhausted.

    stretch · ~2 hours · Python

    agent loopallowlisted toolsterminal states

Lessons this project uses

All projects · Course catalog · Source on GitHub