README.md

LetsCode #

LetsCode is a Textual CLI for loading LeetCode problems, generating hints, and running generated Python judge suites against local solution files.

Commands #

  • /problem [question_id] loads a LeetCode problem.
  • /new [PROMPT] asks the agent to create a new local coding problem.
  • /hint [HINT_PROMPT] generates a progressive hint.
  • /solve asks the agent to generate a full solution.
  • /fix [testfire|full] fixes the current solution against a judge suite.
  • /clear clears the visible chat and agent chat history.
  • /reset [question_id] resets the solution file.
  • /random loads a random LeetCode problem.

Development #

Install dependencies:

uv sync

Run the app:

uv run letscode

Run the unit tests:

uv run python -m unittest discover