Idea · Jul 5, 2026
Natural Language Decomposer
Students build a web IDE feature in which they describe each programming subtask in plain English; an LLM converts each description into a callable function stub with typed signature and docstring; the student implements each stub; a visualization panel plays back the decomposition steps as a dependency graph, making the planning process visible and assessable.
What it would do
This three-week assignment asks students to build a tool that externalizes the problem-decomposition stage of programming, the step that distinguishes experienced programmers from beginners but is typically invisible to instructors. In week one students implement the prompt-to-stub pipeline: the user types a sentence describing a subtask ('given a list of integers, return the k largest values in descending order'), clicks 'Generate Stub', and the app calls the Claude API to produce a Python or JavaScript function stub with a typed signature, a docstring restating the intent, and a TODO comment body. The generated stub is inserted into an editable code panel below. Students can generate as many stubs as they need before writing any implementation code. Week two focuses on the visualization: each stub generation event is logged with a timestamp and the natural language description; after the student clicks 'Finalize Decomposition', the app renders a dependency graph (using a simple DAG layout) where each node is a function stub and directed edges are drawn when one stub's description references another stub's name or concept. Week three is implementation and reflection: students fill in the stub bodies in the code panel, run a provided test harness, and then record a 5-minute screencast explaining their decomposition choices, what they would change in hindsight, and whether the tool helped or hindered their thinking. Instructors receive the full decomposition log (which stubs were generated, in what order, with what descriptions, and how many iterations each took) alongside the final code, giving them visibility into a part of the programming process that normal code submission hides entirely.
Key features
- Natural language to typed function stub pipeline: one-sentence description generates a stub with typed signature, docstring, and TODO body via Claude API
- Iterative stub refinement: students can regenerate or manually edit any stub before committing to the decomposition
- Dependency graph visualization: auto-layout DAG where nodes are stubs and edges are inferred from inter-stub references in the descriptions
- Decomposition log: every stub generation event (timestamp, NL description, generated stub, iteration count) recorded and exportable for instructor review
- Screencast reflection deliverable: students record a 5-minute video explaining decomposition choices and what they would change, submitted alongside the code