CP Sloth: Chrome Extension Uses Local Gemma 3 to Generate DSA Edge Cases and TLE Analysis

A developer has built CP Sloth, a Manifest V3 Chrome extension that automates two tedious tasks for competitive programmers: inventing edge-case test inputs and manually dry-running code. The tool extracts a problem's statement and constraints from LeetCode or Codeforces pages and sends them, along with any pasted code, to Google's open-weight Gemma 3 (4B) model running locally through Ollama. It returns five copy-ready boundary test cases, a time and space complexity verdict flagging possible TLE or integer overflow risks, and a short optimization suggestion. The project was submitted to Hacktoberfest's Open-Source AI Challenge and is available as zero-dependency code on GitHub.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in