PebbleCode · Product design
Building around the failed run
A closer look at PebbleCode’s run, inspect, ask, fix, rerun loop.
A coding practice tool can say whether a submission passed. The harder question is what a learner should do after it fails. PebbleCode began with that second question. I wanted the failure to become a useful next action rather than a reason to leave the session.
The product surface keeps an editor, run feedback, and Pebble Coach close together. A learner can write a solution in the Monaco-based workspace, run it, inspect the result, and ask for a hint or explanation without leaving the attempt. The public demo shows this sequence; its landing page also illustrates a failing Two Sum case and a prompt to inspect the complement logic.
The design choice is to preserve the attempt. A generic answer that reveals the complete solution might end the session quickly, but it also skips the useful work of diagnosing an edge case. Hint, explanation, and next-step modes let the learner request a different amount of help. In the repository, the coach and runner have local API paths and optional AWS-backed integrations; they should not be described as universally available in the hosted frontend without testing its configuration.
There is a systems cost to this interface decision. Guidance needs the current code and the latest run result to be relevant. The frontend, execution path, and coach must agree on which attempt they are discussing. If any part is missing, a calm error and a recoverable next step matter more than an impressive but ungrounded reply.
The repository contains a problem browser, session workspace, coach, and insights surface. That is evidence of a product prototype, not evidence that it improves learning outcomes. The next experiment I would run is small: give learners a failing case, compare layered hints with immediate answers, and watch whether they can make the next edit on their own.