Let’s put the fun back into coding!

Fix a bug by hand. Like the old days!

Real bugs from pytest and Django, the project right in your browser. You find and fix it yourself, and the same tests as the maintainers’ own fix check it.

How it started

I write code every day, more and more with AI. And one day I caught myself opening an unfamiliar module and reaching for the chat instead of the code. Yet making sense of other people’s code is exactly what we get paid for.

Interview puzzles won’t help here. Real life isn’t an algorithm in a vacuum, it’s a huge codebase you didn’t write and a murky bug report.

Then SWE-bench turned up: hundreds of real bugs used to test AI models. Why should models have all the fun? Built a prototype, solved a few myself. That wonderful forgotten feeling…

What it looks like

The real interface, nothing mocked up (except the CRT monitor).

The IDE in a browser: on the left, the deffun panel with a pytest-dev/pytest task, Check and Reset buttons and the issue text; on the right, repro.py with two marked classes open, and a failing pytest run in the terminal below: assert {"foo"} == {"bar", "foo"}.
The task on the left, the project on the right. Here I reproduced the bug: pytest fails, time to find out why.

How it works

  1. Pick a task.A real issue and a rough time estimate.
  2. VS Code opens in your browser.The project as it was before the fix, everything installed.
  3. Fix it the usual way.Code, tests and a debugger in the terminal.
  4. Hit “Check solution”.Hidden tests run in a clean environment. Try as many times as you like; “Reset” puts everything back.

Where the tasks come from

From SWE-bench: issues from Django, pytest, redis, gson and other projects, each with tests for the fix. That’s 500 Python tasks and 300 more in nine languages.

All of them already work in the prototype: Python, Go, Rust, Java, JavaScript and TypeScript, PHP, Ruby, C and C++.

SWE-bench was made by other people; deffun is not affiliated with them.

The rules are simple

No AI inside. The assistant is off and extensions can’t be installed.

Docs and search are fine. Same as at work.

No peeking at the answer. You see the test names, not their code.

Early access

It’s a prototype for now. Leave your e-mail and I’ll write when access opens.