r/opencode • • 22d ago

Built GitQuest with OpenCode + DeepSeek: a TypeScript Git engine, a live commit graph, and 19 missions

I wanted to understand Git properly, so I built a sandbox where you type real commands and the commit graph redraws itself. Then it turned into a teaching tool.

How it was built: OpenCode as the driver, DeepSeek for the bulk of the code, with one rule from the start. The Git engine and the content model were designed before writing anything, and every feature had to pass typecheck, Vitest and Playwright before moving on.

What that produced:

  • a TypeScript engine: init, commit, branch, checkout, merge, rebase basics, remotes, diff, conflicts
  • the graph, HEAD, index and worktrees rendered from repository state, not hardcoded animations
  • 6 chapters, 19 missions, FR/EN catalogs, offline PWA, Android build
  • a CI that runs typecheck, content invariants, i18n checks, build and a smoke test

The honest part: a large share of the code was written by the model. My work was the model design, the constraints, the tests, and saying no when the output was wrong.

Play: https://mattiaparrinello.github.io/git-quest/ Code: https://github.com/MattiaPARRINELLO/git-quest

Curious how others here structure a session so the model does not drift after the first 500 lines.

2 Upvotes

1 comment sorted by