discopt.tutor#

discopt tutor — entry point for the Claude-Code-driven course.

Thin CLI sugar that locates the course/ tree, resolves a lesson id, and shells out to claude with the matching /course: slash command (lesson, hint, assess, progress). The lesson library, grading rubrics, and progress tracking all live under course/; this module adds no separate state.

The course content ships as package data under discopt.course so a pip install includes it. discopt tutor install materializes a writable copy of the tree into the user’s working directory and drops the /course: slash commands into ./.claude/.

Subcommands:

  • discopt tutor — dashboard (counts + next lesson)

  • discopt tutor list — every lesson with completion status

  • discopt tutor start <lesson> — launch claude /course:lesson <lesson>

  • discopt tutor resume — start whatever current_lesson is

  • discopt tutor next — start the next-numbered lesson after current_lesson

  • discopt tutor reset [<lesson>] — drop one entry from progress.yaml (or all)

  • discopt tutor install [--force] — copy the /course: slash commands

    into ./.claude/

Functions#

add_subparser(→ None)

Register the tutor subcommand on the top-level discopt parser.

run(→ int)

Dispatch discopt tutor ... after argparse parsing.

Module Contents#

discopt.tutor.add_subparser(subparsers) None#

Register the tutor subcommand on the top-level discopt parser.

discopt.tutor.run(args) int#

Dispatch discopt tutor ... after argparse parsing.