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]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.
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.
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

