[research@ai4se] : ~ $ β–Œ
cd ../
[process] | | 14 min

# GStack + GSD + Superpowers: A Long-Horizon Agentic Delivery Stack

GStack owns expert decision-making, GSD owns phase orchestration and context isolation, Superpowers owns TDD and verification discipline β€” guarded autonomy rather than an unbounded overnight build.

[tool-integration][process]

GStack, GSD, and Superpowers can be composed into a highly autonomous end-to-end software delivery workflow β€” but the recommended approach isn’t to have all three frameworks each β€œown the whole pipeline” simultaneously. Instead, use layered responsibility + guarded autonomy:

LayerPrimary toolCore responsibility
Decision & expert review layerGStackProduct/engineering/design/QA/release expert personas
Phase decomposition & context control layerGSDDiscuss→Plan→Execute→Verify→Ship; fresh-context subagents
Engineering discipline & verification layerSuperpowersTDD, systematic-debugging, verification-before-completion
GStack Spec Council β†’ Superpowers Refinement β†’ GSD Phase Graph
β†’ Build Loop β†’ Superpowers TDD β†’ GStack QA/Review/Ship β†’ Retro

Difference from OpenSpec + Superpowers + gstack: this stack uses GSD instead of OpenSpec to own phase orchestration and context control, making it better suited for long-horizon, multi-phase features that need fresh context, rather than brownfield delta-spec management.

Three Gaps It Fills

  1. Decision-making gap β€” generic agents blend product/engineering/design/QA together; GStack separates them with explicit gears
  2. Context gap β€” long tasks suffer context rot; GSD counters this with phase loops + fresh-context subagents
  3. Verification gap β€” AI self-assessment is overly optimistic; Superpowers TDD + verification plus GStack QA provide triple evidence

Where Each Layer Sits

GStack β€” Expert Decisions and the Delivery Closed Loop

CapabilityCommand
Product/strategy/office-hours, /plan-ceo-review
Engineering/design plan review/plan-eng-review, /plan-design-review
Browser QA/qa
Release/retro/ship, /retro

GSD β€” Phase Orchestration and Context Engineering

Discuss β†’ Plan β†’ Execute β†’ Verify β†’ Ship
  • Each execution unit gets fresh context
  • Phase boundaries cap context load
  • Mandatory handoff files chain phases together

Superpowers β€” The Engineering Discipline Core

brainstorming β†’ writing-plans β†’ TDD β†’ systematic-debugging β†’ verification-before-completion β†’ code review

GStack drafts direction (/office-hours)
    ↓
Superpowers clarifies (brainstorming β†’ writing-plans)
    ↓
GSD splits into phases (Discuss β†’ Plan)
    ↓
GStack reviews the plan (/plan-eng-review, /plan-design-review)
    ↓
Build Loop iterates through phases (Superpowers TDD within each phase)
    ↓
GStack /qa + /review
    ↓
GStack /ship + /retro

Directory Structure

repo/
β”œβ”€β”€ .gsd/phases/          # phase contracts
β”œβ”€β”€ .gsd/handoffs/        # phase handoffs
β”œβ”€β”€ docs/superpowers/     # implementation plans
β”œβ”€β”€ .gstack/qa-reports/   # QA evidence
β”œβ”€β”€ AGENTS.md             # routing rules
└── src/

AGENTS.md Routing

- GStack owns multi-role decisions, plan/design reviews, browser QA, ship, retro.
- GSD owns phase decomposition, context budget, handoffs, phase verify/ship.
- Superpowers owns TDD, debugging, verification-before-completion, code review.
- Scope/data model/security/pricing changes β†’ stop for human approval.
- Every phase must produce tests, verification evidence, and handoff before next phase.

Mid-Flight Decision Strategy

Issue typeAuto-handledNeeds a human
Copy, layout densityGStack design roleNo
Test naming, low-risk implementation detailsSuperpowers plan constraintsNo
Scope trade-offs, business priorityGStack CEO recommendationDepends on risk
Data model, permissions, security, billingStopYes
Release/migration/production impactStopYes

Decisions get written into .gstack/decisions/ and .gsd/handoffs/.

Good Fit vs. Poor Fit

Good fit:

  • Mid-sized features spanning multiple files/modules
  • Full-stack changes across UI + API + domain + tests
  • Tasks verifiable via tests, browser QA, or PR diff
  • Long-horizon work that can be bounded by phase boundaries

Not recommended to fully enable:

  • Small fixes under 30 minutes
  • Highly uncertain requirements needing extensive human exploration
  • High-risk changes with no human gate
  • Weak test foundations that can’t provide automated verification signal

Risks and Controls

RiskControl
Overlapping tool responsibilitiesAGENTS.md makes routing explicit
Overnight tasks running out of controlPhase contracts, budgets, checkpoint commits
Hallucination from multi-role votingHigh-risk human gates, decision records
TDD becoming a formalityGStack eng review inspects failure modes
Missing context handoffMandatory handoff files
Dependence on Claude Code ecosystemCore routing/phase contracts written as tool-agnostic Markdown

Comparison with Using GSD Alone

DimensionGSD aloneGStack + GSD + Superpowers
Context controlStrongStrong
Expert reviewWeakGStack gears
TDD disciplineOptional configurationEnforced by Superpowers
Long-horizon autonomyPhase graph+ Build Loop + decision delegation

SDD selection background: SDD Tools Comparison (GSD sits on the execution-orchestration end).

Pilot Metrics

  • Requirement clarification rounds
  • Phase pass rate
  • Test-first ratio
  • Automatic mid-flight issue resolution rate vs. manual interruption count
  • Defects found by QA, PR critical findings
  • Lead time / rework time

References