AI Coding Workflow Consulting: How to Run GSD and Claude Code in a Team

AI coding workflow consulting helps an engineering team turn individual AI coding habits into one shared, repeatable process: written specs, small verified plans, fresh-context subagents and review rules that every developer follows. At Code & Pepper we build that process on the open-source GSD framework and Claude Code, then pilot it on a real module of your product in 3-6 weeks.
The 2025 DORA report found that 90% of technology professionals use AI at work, and more than 80% say it makes them more productive. Yet the same research shows AI adoption still hurts delivery stability, and calls AI an amplifier: strong engineering practices get stronger, weak ones get worse.
Perceived speed is not measured speed either. In a randomised trial, experienced open-source developers took 19% longer with AI tools while believing they were 20% faster. METR's February 2026 follow-up says newer tools likely speed developers up, but how much is still unclear. The gap between those results is mostly workflow, and that is what this guide covers - what the GSD framework for Claude Code is, why ad-hoc AI coding breaks down in teams, and what Claude Code consulting sets up so the gains show in your delivery metrics.
What is the GSD framework for Claude Code?
The GSD framework for Claude Code is an open-source, MIT-licensed system for context engineering and spec-driven development. It drives an AI coding agent through a fixed loop for each phase of work: discuss, plan, execute, verify and ship. Its own docs describe it as a meta-prompting, context engineering and spec-driven development system.
GSD grew fast. The original gsd-build repository passed 64,000 GitHub stars and is now archived, development continues as GSD Core, which installs with one npx command. It is no longer Claude Code only: GSD Core lists Claude Code, Codex, Copilot, Cursor, Windsurf, OpenCode and other agent runtimes.
What GSD changes in day-to-day work:
|
Stage |
What happens |
What your team gets |
|
Discuss |
The agent asks about requirements and your implementation preferences before it writes a plan, and saves the answers to files |
Fewer surprises: the agent builds what was agreed, not what it guessed |
|
Plan |
Research and planning agents break each phase into small, atomic plans that can be checked one by one |
Work sized for review, with clear scope per plan |
|
Execute |
Each plan runs in a subagent with a fresh context window; plans with no dependencies run in parallel waves, and every task gets its own git commit |
No context rot, a traceable history and easy reverts |
|
Verify |
A developer tests what was built, and the agent diagnoses failures against the plan before anything ships |
A human check before merge; gaps go back to planning |
|
State on disk |
Planning files such as STATE.md and CONTEXT.md survive session boundaries |
The next session, or the next developer, picks up where the last one stopped |
Plans with no dependencies run side by side, each in its own subagent with a fresh context and its own commits; anything that fails verification goes back to planning.
In short, GSD replaces one long chat with a sequence of short, documented and reviewable steps.
Why ad-hoc AI coding breaks down in teams
Ad-hoc AI coding works for one developer on a small task and breaks at team scale, for four reasons that a structured workflow addresses.
Context rot
Models get less reliable as their input grows. Chroma tested 18 models and found that performance drops as input length increases, even on simple tasks. A three-hour session that has read half the repo and five failed attempts is exactly that case. GSD keeps the main session light and gives each plan a fresh context.
Knowledge in people's heads.
The agent cannot see your deploy process, your naming rules or the folder nobody may touch. Every developer re-explains them, differently, in every session.
Review debt
AI produces more code than reviewers can read. DORA links AI adoption to lower delivery stability when downstream controls such as automated tests and fast feedback are weak. Large, mixed commits make it worse.
Invisible cost
Long contexts, retries and parallel agents all burn tokens, and nobody sees the bill per feature until the invoice arrives.
The fix is not a better prompt. It is a shared workflow, written down in the repo and enforced where it has to be, which is the core of AI coding workflow consulting.
How our AI coding workflow consulting works
Our AI coding workflow consulting engagement usually takes 3-6 weeks and ends with one squad shipping real work through the new workflow, plus the playbook and metrics to roll it out further. We work in your repositories, your CI and your ticketing tool.
- Workflow audit - we map how developers use AI today: tools, session habits, prompt and context practices, review load, rework and token spend. We pick one real module for the pilot and agree on the metrics to compare.
- Setup - we install GSD Core for your agent runtimes, write the spec and plan templates, and configure Claude Code for the repo: CLAUDE.md, skills, subagents, hooks and permission rules (details in the next section).
- Pilot on a real module - one squad runs the full discuss, plan, execute, verify and ship loop on production work. We pair with developers, tune templates and fix friction as it shows up.
- Measure and train - we compare pilot metrics with the baseline, run hands-on workshops for the wider team and hand over a written playbook.
What we measure: cycle time per ticket, pull request size and review time, reverted or reworked commits, defects found after merge, and token cost per merged pull request.
Which setup fits your team?
|
Setup |
Best for |
Main limit |
|
Ad-hoc chat with an AI assistant |
Single developers, small fixes, prototypes |
No shared specs, context rot in long sessions, uneven quality across the team |
|
Spec-driven workflow (GSD + Claude Code) |
Product teams shipping features in an existing codebase |
Needs upfront setup and discipline in writing specs and verifying work |
|
Managed coding agents on a team board |
Teams that want agents to take tickets and open pull requests on their own |
Needs mature review, permissions and CI before agents scale |
Many teams start with the spec-driven workflow and move to managed AI coding agents for teams once specs, review rules and CI checks are in place.
Claude Code consulting
Good Claude Code consulting puts guidance where the model reads it and hard rules where the tool enforces them. Anthropic's Claude Code best practices draw the same line: a CLAUDE.md line is followed nearly every time, while a hook or deny rule is applied every time. We set up both layers and commit them to the repo, so every developer gets the same behaviour.
|
Component |
What it holds |
Why it matters |
|
CLAUDE.md |
Only what the agent cannot read from the code: build, test and typecheck commands, module boundaries, non-obvious conventions |
Loaded into every session, so short beats long |
|
Skills |
Team procedures such as release steps, migration rules or API doc style |
Read only when a task needs them, so they cost little context |
|
Subagents |
Read-only reviewers, test writers, research agents, cheaper models for simple jobs |
Separate context per job; a reviewer that never saw the conversation is not swayed by it |
|
Hooks |
Formatter after every edit, typecheck or tests before a turn can end, blocked paths |
Rules with zero exceptions are enforced by the tool, not remembered by the model |
|
Permissions |
Deny rules for secrets, production config and protected folders |
Applied before the agent acts, in every mode |
|
MCP servers |
Read access to tickets, docs or a staging database where needed |
The agent works from the real spec, not a pasted summary |
|
GSD templates |
Spec, plan and verification templates matched to your ticket format |
Every feature follows the same discuss to ship loop |
We keep the enforced set small. As Anthropic's guide warns, every hook and deny rule occasionally fires when it should not, and someone has to maintain it. Preferences stay in CLAUDE.md; only true non-negotiables become hooks.
The same setup works beyond Claude Code. Because GSD Core runs on Codex, Cursor and Copilot too, teams with mixed tools share one spec format and one review process.
Keeping AI coding costs under control
A spec-driven workflow spends tokens on purpose, so it needs a budget from day one. Subagents and parallel waves are what keep context fresh, but each subagent sends its own requests: Anthropic notes that subagent work counts against the same usage as the main conversation and can even be slower when it has to re-gather context. In multi-agent systems, Anthropic measured about 15 times more tokens than a chat.
During the pilot we track token cost per merged pull request next to cycle time, and tune the setup where it pays off:
- Simple subagent jobs (finding files, checking links) run on a smaller, cheaper model.
- GSD's lighter install modes cut the context loaded at the start of each session.
- Stable instructions sit in skills and short CLAUDE.md files, which keeps prompt caching effective.
- Usage reports show which skills, subagents and MCP servers earn their cost.
If AI spend is already a line your CFO asks about, our AI FinOps & LLM Cost Audit guide explains how to break token spend down by team and feature and cut it without lowering quality.
Want your team's AI coding to show up in delivery metrics, not just in impressions? Book a free 30-minute AI coding workflow call and we will tell you where a spec-driven workflow would help most in your setup.
AI coding workflow consulting FAQ
What is AI coding workflow consulting?
AI coding workflow consulting is a short engagement that designs and sets up how a software team works with AI coding agents. It covers specs, planning, context management, review rules, enforced checks and cost tracking, then proves the workflow on real work before wider rollout.
What is the GSD framework for Claude Code?
The GSD framework for Claude Code is an open-source, MIT-licensed spec-driven development system. It runs each phase of work through discuss, plan, execute, verify and ship, gives each plan a fresh-context subagent and commits every task separately.
Is GSD free, and who maintains it?
Yes, GSD is free and MIT-licensed. The original gsd-build repository is archived, and the project continues as GSD Core under the open-gsd organisation on GitHub. We install and pin the version that fits your runtimes.
Does GSD only work with Claude Code?
No. GSD started on Claude Code, but GSD Core also supports Codex, Copilot, Cursor, Windsurf, OpenCode and other agent runtimes, so a team with mixed tools can share one workflow.
What is context rot in AI coding?
Context rot is the drop in output quality as an AI model's context window fills up with files, chat history and failed attempts. Research by Chroma on 18 models showed reliability falls as input grows. GSD limits it by giving each plan a fresh context.
What does Claude Code consulting include?
Claude Code consulting at Code & Pepper covers CLAUDE.md files, team skills, custom subagents, hooks, permission rules and MCP connections, all committed to your repository. We also train developers and set metrics to check that the setup improves delivery.
How long does an AI coding workflow engagement take?
Typically 3–6 weeks: one week of audit, one to two weeks of setup, a two-week pilot on a real module, then measurement, training and handover. Larger organisations roll it out team by team after the pilot.
Will a spec-driven workflow increase our AI token costs?
It can, because subagents and parallel execution send more requests. We track token cost per merged pull request during the pilot and tune models, caching and context size. Our AI FinOps & LLM Cost Audit covers cost control in depth.
How is this different from managed AI coding agents?
A spec-driven workflow keeps a developer in the loop on every phase. Managed coding agents take tickets from a board and work more independently. Most teams need the workflow, specs and review rules first; see our page on managed AI coding agents for teams.
Do we have to change our stack or CI?
No. We work with your languages, repositories, CI and ticketing tools. We usually add checks to CI, such as tests and typechecks, that the agent must pass before work counts as done.
