Skip to content
All work
Case study · 08

Ticket2PR

Turn Trello cards into reviewed code changes with Claude Code, on your own machine.

View on GitHubOpen source · runs on your machine
Status
Open source
Context
Personal project
My role
Product, design & engineering
Category
AI developer tools
Year
2026
127.0.0.1:3000
The Ticket2PR board for a sample bakery website: New, In progress, Review and Done columns, with Trello cards such as a holiday banner Claude is working on and three requests waiting for review.

AI developer tools · Local web app · 2026

Clients write requests as Trello cards. Ticket2PR pulls them onto a local Kanban board, and dragging a card to In progress starts Claude Code on it in its own branch. You review the diff, then commit, push and open the pull request yourself.

The story

How I built it

My role
Product, design & engineering
Context
Personal project

The problem

[01]

In an agency, clients write their requests as Trello cards. For each one, a developer reads the card, creates a branch, writes the code, commits, pushes and opens a pull request by hand. For small, well-defined requests, most of that work is repetitive, and handing it to an AI agent usually means giving up control of the repository.

What I built

[02]

Ticket2PR keeps the board the team already uses and puts Claude Code behind it. Each card becomes a run in an isolated worktree, with the card's description, checklist, comments and screenshots as instructions. The run streams live, the result waits in Review as a diff, and nothing leaves the machine until a person commits and pushes it.

Key decisions

[03]
  1. A worktree per card

    Each card gets a t2p/ branch in its own git worktree, started from the latest origin version of the base branch. Cards run side by side without touching the developer's working copy, and Update from main merges new commits in, aborting cleanly on conflicts.

  2. Strict permissions for unattended runs

    Claude may read the repository, edit files inside the card's worktree and run the project's own test, lint, typecheck and build scripts. Commit, push, branch changes, curl, ssh and web access are always denied, and those rules win over the repository's own Claude settings.

  3. Local-only by design

    The app listens on 127.0.0.1 and stores everything in a SQLite file. The API rejects any request whose Host or Origin isn't localhost, which blocks other websites and DNS-rebinding attacks from reaching an app that can run code on the machine.

The result

  • 0Commits or pushes made by Claude
  • 1Worktree and branch per card
  • 105Automated tests
Screens

The real product

Screenshots of the app running on my machine, with a sample Trello board for a fictional bakery. Open any of them full size.

  • [01]The live run log: the worktree, Claude's reasoning and every tool call.

  • [02]Review the diff before anything is committed.

  • [03]A plain-language update for the client, posted on the Trello card in one click.

  • [04]A command palette to jump to any card or action from the keyboard.

Features

What it does

I can build developer tools around coding agents that people can trust: orchestration of Claude Code through the Agent SDK, git automation, strict tool permissions and a review flow that keeps a human in charge.

[01]

Trello in, pull request out

New cards from the chosen Trello list appear on a local Kanban board. Drag one to In progress and Claude Code starts working on it in its own branch.

[02]

A live run log

Watch Claude's messages, tool calls and results as they happen, with Stop, Retry, and Request changes to continue the same session with your instructions.

[03]

Review before anything ships

Finished cards wait in Review with their diff. Commit, push and open the pull request from the app, or discard the work and start again.

[04]

Talking to the client

Claude writes a plain-language update for the client, or questions when a request is unclear. Post them on the Trello card in one click and continue when the client answers.

[05]

Your Claude subscription

Runs use the Claude Code login on the machine (Pro or Max), not an API key. At the usage limit the queue pauses and resumes the same session after the reset.

[06]

Two ways to work

A branch and pull request per card, or one shared branch that every card works on in turn, for teams that push straight to a dev branch.

Built with

The stack

A Next.js app with its own API routes, SQLite through Prisma, Claude Code through the Claude Agent SDK, and git through simple-git.

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS
  • React Query
  • Prisma
  • Claude

Hiring? Let's talk.

Tell me about the role and the team. I reply within one business day.