How meenanoolu/firststep works
FirstStep is a coding-practice tutor: a learner chooses a problem, describes a concrete first move, submits code, and receives a minimized failing input and explanation rather than a full solution. The API coordinates problem access, first-step judging, execution, feedback, and session completion; supporting branches provide reviews, failure profiles, hints, and paid unlocks. Source evidence is limited to the supplied excerpts and SOURCE INDEX; documented but unsampled relationships cite the README.
Main entry points: main.py Practice API · llm.py LLM adapter · __init__.py Problem catalog · counterexample.py Counterexample finder
Components 19
Practice workflow
- Practice API
app/main.py - Practice page
app/static/index.html - First-step gate
app/firststep.py - Problem catalog
app/problems/__init__.py - Problem definitions
app/problems/base.py - Free problems
app/problems/bank.py - Pro problem pack
app/problems/pro_pack.py - Code runner
app/runner.py
Learning feedback
- Counterexample finder
app/counterexample.py - Hint service
app/hints.py - Hint leak check
app/leakcheck.py - Failure profiles
app/metrics.py
Sessions and access
- Session store
app/store.py - Review scheduling
app/scheduler.py - Paid access
app/pro.py
Model integrations
- LLM adapter
app/llm.py - Model provider
- Model observability
app/observability.py
Other components
- Learner
Connections 24
- Learner → Practice page: uses
README.md - Practice page → Practice API: requests practice
README.md - Practice API → First-step gate: judges step
app/main.py - Practice API → LLM adapter: classifies step
app/main.py - First-step gate → LLM adapter: requests classification
README.md - LLM adapter → Model provider: calls provider
app/llm.py - LLM adapter → Model observability: records spans
app/llm.py - Practice API → Problem catalog: serves problems
app/main.py - Problem catalog → Free problems: registers
app/problems/__init__.py - Problem catalog → Pro problem pack: registers
app/problems/__init__.py - Free problems → Problem definitions: defines
app/problems/bank.py - Pro problem pack → Problem definitions: defines
app/problems/pro_pack.py - Practice API → Code runner: executes submission
README.md - Practice API → Counterexample finder: finds failure
app/main.py - Counterexample finder → Code runner: runs candidate
app/counterexample.py - Counterexample finder → Problem definitions: checks and shrinks
app/counterexample.py - Practice API → Hint service: serves hints
app/main.py - Hint service → Hint leak check: filters hints
app/hints.py - Practice API → Failure profiles: profiles failures
README.md - Practice API → Session store: reads and writes
app/main.py - Failure profiles → Session store: reads profile data
app/metrics.py - Practice API → Review scheduling: schedules reviews
app/main.py - Practice API → Paid access: checks unlocks
app/main.py - Paid access → Session store: stores unlocks
app/pro.py