Codemm Uses Agent-Driven Learning and Sandbox Validation for Coding Exercises
Codemm leverages user's coding agents to generate personalized coding exercises, which are then validated in a sandbox environment to ensure quality and reliability.
Agent-Driven Learning and Exercise Generation
Show HN: Codemm – your coding agent writes exercises, a sandbox rejects bad ones
Agent-Driven Learning and Exercise Generation
Codemm leverages your own coding agent, such as Claude Code or Codex, to generate personalized lessons and exercises. According to the platform, your agent writes an exercise that includes a statement, starter code, a reference solution, 2–4 deliberately broken variants, and visible and hidden tests. This approach allows learners to engage with material tailored to their needs, ensuring a structured and incremental learning path. The sandbox environment then evaluates the exercises, rejecting those that do not meet quality standards. As noted by the developers, this system relies on the user's own account for the coding agent, emphasizing that the agent's output is subject to the user's configuration and the agent's capabilities. The platform does not claim to guarantee the accuracy or completeness of the generated exercises, but rather presents them as a tool for exploration and practice.
Sandboxed Testing and Exercise Validation
Codemm employs a sandboxed testing environment to ensure the quality and reliability of coding exercises. Each exercise is checked against its tests, and user code is graded within this isolated environment, which tracks progress and mastery. For an exercise to be accepted, the reference solution must pass, the starter code must fail, and the tests must catch all broken variants. However, hidden tests are not accessible to the agent's tools, though they are visible on the user's computer. This design allows for thorough validation but also introduces a potential risk: code within the sandbox could potentially fake its own test results. These safeguards aim to maintain integrity while acknowledging the limitations of automated validation.
Installation and Setup Requirements
Installation of Codemm requires Node.js 22 or newer and Docker (or wasmtime 50 on PATH), as noted in the setup instructions. The tool is not available on npm and must be installed from source using git clone and npm commands. After installation, users should verify Docker and sandbox functionality with codemm doctor. To initialize a new project, run codemm init in an empty folder, which sets up Claude Code, Codex, and Cursor. Users can specify a particular model with the --host flag. Exercise files are stored in ~/Codemm, while the project folder contains codemm.json and an exercises/ directory. Setup runs code written by the agent with network access, similar to npm install in another project.
Data Storage and Privacy Considerations
Data storage and privacy are central to Codemm's design. User data, including tracks, courses, and attempt history, is stored locally in the ~/.codemm directory, and users can specify an alternate location using the CODEMM_HOME environment variable (Hacker News Show). Codemm does not involve any model API calls during operation, ensuring that no credentials are ever read, stored, or requested (Hacker News Show). For projects marked as trusted, Codex loads configuration settings from .codex/config.toml, but it explicitly asks for user confirmation before any Codemm tool is invoked, reinforcing a principle of informed consent (Hacker News Show). These measures collectively aim to minimize data exposure and maintain user control over personal information, though they do not constitute universal guarantees of privacy or security.
Mastery Tracking and Exercise Progression
Codemm's Mastery Tracking and Exercise Progression system ensures that users only advance when they demonstrate true understanding. Mastery moves only on an exercise's first check, or when you beat your best score on it; re-checking a solved exercise adds nothing (Hacker News Show). The platform does not ship with any pre-installed languages or frameworks. Instead, your agent sets up each language or framework the first time you need it, and Codemm checks that it works (Hacker News Show). Additionally, Codemm shows you the files and builds exactly those, only after you agree, and installs the track only if its probes pass with the network off (Hacker News Show). This approach ensures a secure, customizable, and privacy-conscious learning environment tailored to the user's needs.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.