knarfthekant

Leegen — AI skill for Claude Code

AI community

A local, LeetCode-style trainer built for AI agents.

How to install Leegen

This entry records only its repository, not the path inside it, so there is no exact command to give. Open knarfthekant/leegen and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Leegen does

A local, LeetCode-style trainer built for AI agents. No fixed problem bank: your agent (Claude Code, Codex, any MCP client) writes problems as YAML, tutors you in the browser editor, and runs tests on CPU or GPU. Highly customizable: environments, judges, languages and executors, from plain Python to CUDA and Triton.

Alternatives in AI

  • Agenvoy — Self-hosted AI agent harness in a single Go binary — writes, sandbox-tests and repairs its own tools, and lets 474 ★
  • BossConsole — Open-source, multi-platform harness for AI agents — a native, multi-threaded operator's console (JVM, not Elec 227 ★
  • Glade MCP — Connect any MCP-compatible AI client (Claude Code, Cursor, Windsurf) to Unity or Godot 201 ★

README

leegen

**Your coding agent creates the problems. You do the learning.**

[![Browser edition](https://img.shields.io/badge/try-browser%20edition-2563eb)](https://leegen.frankshan.workers.dev) [![Python 3.13+](https://img.shields.io/badge/Python-3.13%2B-3776ab?logo=python&logoColor=white)](https://www.python.org/) [![React](https://img.shields.io/badge/React-19-149eca?logo=react&logoColor=white)](https://react.dev/) [![Pyodide](https://img.shields.io/badge/runtime-Pyodide-4b8bbe)](https://pyodide.org/) [![WebGPU](https://img.shields.io/badge/GPU-WebGPU-005a9c)](https://www.w3.org/TR/webgpu/) [![MCP](https://img.shields.io/badge/agents-MCP%20%7C%20WebMCP-5b5bd6)](#how-it-works-with-your-coding-agent)

[Try the browser edition](https://leegen.frankshan.workers.dev) · [Server quick start](#quick-start-server-edition) · [Choose an edition](#choose-an-edition) · [Documentation](#development-and-documentation)

A LeetCode-style programming trainer where **your coding agent writes the problems, and you solve them**. Ask for an exercise on a topic you want to learn, work through it in the browser, and ask the same agent for hints or feedback. Use the hosted browser edition to run Python and WebGPU exercises in your browser, or run the server edition locally for native and remote CPU and GPU execution.

There is no fixed problem bank: the repo includes examples, and your agent can create new problems or adapt existing ones to your level. Exercises can cover algorithms, async Python, multi-file services, WebGPU, PyTorch, Triton, or CUDA kernels.

Highlights

  • Problems made for you: ask an agent for a new exercise or adjust an existing one. Each YAML problem includes starter code, tests, a reference solution, and its runtime requirements.
  • A tutor beside your editor: share your current attempt with an agent, run tests, receive line-level comments, and review proposed edits.
  • CPU and GPU practice: solve Python and WebGPU exercises in the browser, or use t