Planning a Vibe-Code Session: Spec, Tickets and Guardrails Before Any Code
On November 12th I spent one Claude Code session planning an app, and none of that session went into writing the app. By the end there was a private repo, a spec of about 680 lines, 48 Jira tickets wired together with dependencies, and a script that hands those tickets one by one to a local model. About 12 minutes after I started it, the first ticket was closed, by the script, with the tests passing.
The app had a code name from the first commit, TileTally, and that’s what I’ll call it here. It’s the word game scorekeeper from part 1: offline-first, for the web, Android and iOS. Part 4 covered the brainstorming and the hard rules. This post is the planning session those rules went into, and how the work was set up before any code got written.
The planning session itself wasn’t planned. We’d been using the demo from part 3, and it was very utilitarian. Then one of my kids said, “You know what, Dad, we could make this a lot prettier and turn it into an app we can play with on our tablets too.” That’s where it started, and we got thinking about what to do.
After the demo, we wrote up a plan before anything else. Then I asked Claude to turn that plan into Jira tickets. Once the tickets were ready, Claude set up an implementation loop on my local models. The expensive frontier model does the thinking once, and the cheap local model does the typing many times.
The shape of the session

And here’s who decides what. I think this is the most important picture in the post.

The local model only gets to decide things inside one ticket. Anything bigger was decided earlier, by me or by Claude, and written down where the local model can read it. If I had to boil the whole approach down to one rule, that’s the one.
Step 0: settle what’s expensive to change later
The first thing Claude did was not create the repo. It stopped and asked me about the name. My working name had a brand name in it, and I wanted to publish to the app stores and Docker Hub. Part 4 has that story. The short version is that the first decision of the session was a new name, TileTally.
The general lesson: before any planning, find the decisions that are painful to undo once code exists. Names, licenses, what you’re allowed to ship, which platforms you need. Those came out of this step as hard rules in the spec, not as a “nice to have” section that a model can skip.
Step 1: the repo
This one is boring, which is good. A private repo, a README as the first commit, a description and some topics. The README already has the planned stack, the repo layout and a short disclaimer. Every agent that opens the repo later sees that first.
Private was a choice, not a default. I wanted this to be open source. The agents pushed back on starting public, and I think they were right. When agents write most of the code and commit all day, it’s easy for a key, a token or some other secret to end up in a commit. In a public repo that’s out the moment it’s pushed, and deleting it later doesn’t take it out of the git history. So start private, even if you plan to open it up. Before you make it public, scan the whole history for secrets, not just the latest files. The repo is still private today. There’s an open ticket to audit it for anything private and then make it public, but it isn’t a priority till the app is live on Android too.
Step 2: write the spec for the weakest model that will read it
This is where most of the session went. I asked for a spec that “other agents using local models can actually execute”. That changes how you write it. A frontier model can fill gaps with good judgement. A 27B model running unattended will fill them with something. So the spec tries hard to leave fewer gaps.
The big decisions each trace back to a constraint I gave it:

The parts written specifically for a local model are the ones I’d reuse on any project:
- §0 “How agents must use this spec”. One task at a time, tests first, no new scope, one commit per task, and an allow-list of dependency licenses (no GPL, it causes trouble in app stores).
- Exact data types. The TypeScript interfaces are in the spec as code, not described in prose.
- Golden tests. For the core logic, the spec lists the exact edge cases to test. The model doesn’t get to decide what “tested” means.
- A decision log. When something is unclear, the agent picks the simplest option that passes the checks and writes two to five lines in
docs/DECISIONS.md. This is how “make executive decisions” works without me in the loop. - Open questions stay out of the code. Anything that needed a human call (a legal question, a license choice) went into Jira as a ticket for me instead of a guess in the spec.
Step 3: turn the spec into tickets
I’ve written before about breaking specs into tight tickets before an agent touches code, and about why I ended up on Jira Cloud. This was the same idea, just done by the agent.
One small letdown: the Atlassian MCP can create issues, boards and sprints, but not a space. So I clicked “Create space” myself, and Claude did everything after that:
- 7 epics: one per phase, plus “Legal & product decisions”
- 36 stories, one per spec task, each with scope, an acceptance checklist and its dependencies
- 5 decision tasks for me (legal sign-off, license, trademark search, domain, language order)
- 45 “blocks” links, so a ticket can’t start before the ones it depends on are done
- labels that tell the loop what it may touch:
agent-ready,needs-human,needs-approval
The dependency graph is the plan. Simplified, the early phases look like this:

The labels matter as much as the links. The iOS build ticket got needs-human because the loop runs on Linux and you can’t build iOS without a Mac. The last phase is needs-approval because I haven’t decided I want it yet. The loop simply never sees those.
Step 4: decide what the builder is not allowed to do
The build side is opencode with the local model on ai-box, Qwen3.8-27B with a 262k context. It’s the same box from the Blackwell post, running with the MTP speed-up. I wanted it to take a ticket, decide whatever needs deciding, commit, push, close the ticket, and start again.
The key design call was what the model is not allowed to do. A local model will sometimes say “done, all tests pass” when they don’t. If that model can also close the ticket and push to main, a lie becomes a closed ticket and a broken main. So the work is split:

The model writes code and makes local commits. A ~360 line Python script (stdlib only) does the rest the same way every time. It reads Jira over the REST API, runs the quality gate itself, pushes and closes the ticket. The ticket only reaches Done if the script saw the tests pass.
opencode’s permission rules enforce the split, so I’m not relying on the prompt alone:
| Blocked for the agent | Why |
|---|---|
git push, rebase, amend, git config |
Only the script pushes, after the gate |
| Jira MCP tools | Only the script moves tickets |
The question tool |
Nobody is there to answer. Decide and log it |
Reading .env files, editing the loop or opencode.json |
It shouldn’t see the API token or rewrite its own rules |
Directories outside the repo (except /tmp) |
Keep the blast radius small |
Claude tested these before handing over. It asked the model to run git push --dry-run and opencode refused with Permission denied: shell. It also found that opencode session IDs have to start with ses, which would have broken the retry logic on the first failure. Planning includes testing the guardrails, not just writing them down.
There was one more fork in the road. opencode already has the Atlassian MCP in my global config, so I asked why we needed an API token at all:

I kept the token. The rule of thumb I took from it: anything that should happen the same way every time belongs in a script, not in the model’s hands. And when I offered to paste the token into the chat, Claude told me not to and gave me a read -s one-liner to write it to the file myself. Fair.
What I don’t love
- The spec is long. About 680 lines is a lot for any model to keep straight, even with 262k of context. The tickets help because each one points to the few sections it needs, but I expect the agent to miss things.
- Planning this much isn’t free. A whole session went by with zero app code. For a small throwaway script, this much planning would be overkill.
Next time I’d spend a lot more time brainstorming first, and let the decisions from that brainstorm shape the plan.
Next
That’s the plan. In the next part I hand it over to the local model, leave it alone for 16 and a half hours, and find out what a green gate is actually worth.
Where this ended up
TileTally became SevenRack, a free word game scorekeeper for iPhone, iPad and Android. It’s in the App Store now. The launch post has the whole app in one place.