specgate/docs v1.8.0

The studio#

Studio is Specgate as an app in your browser: from an empty folder to the report of what was built, without typing a command. Everything it does runs the same specgate command you would, so the app and the terminal never disagree. At the end of this page you can open it on a new folder, write the brief, have the modules drafted, answer the questions, approve, build, follow the run live and read the report.

You need: Specgate installed (npm i -g @rsaglobaltech/specgate), git, and for drafting and building an agent you can run from the command line (Claude Code or Codex; see Choosing and wiring your agent). Docker, if you want the quality checks.

bash
cd my-new-project        # an empty folder, or a specgate project
specgate studio          # opens http://127.0.0.1:4173

The screenshots come from a small demo shop: one orders module with two open questions, built by a test agent.

One app, a section per step#

The studio's Home: the sidebar with its eight sections, the next step to take — Draft the brief's modules — the project in figures, the seven steps of the route with their state, and each module's progress.

The sidebar holds eight sections, each at its own address (/#/questions, /#/live…), so Back, Forward, reloading and a link open the same place. Home says the one thing to do next and where the project stands.

SectionWhat you do thereWhat it runs
HomeSee the next step and the route, and the ticket the branch names; run the gate and the doctorspecgate status, check, doctor
BriefWrite what the app must do, or paste the client's textpropose --from-brief (with the agent)
ChangesEvery change: draft a module, review, approve, deliver a requirement, validate, archive; a new change from an idea or a ticketpropose, propose --from-ticket, change note, change approve, apply, change validate, archive
QuestionsDecide what the brief left open, confirm the spec says itspecgate answer, answer --reviewed
BuildChoose who codes, pick what is ready, startconfig set agent, harness run --chain
LiveFollow the run, answer the agent, stop itthe harness's events, harness stop
ReportWhat was built, how it was proven, what is missing; the gatespecgate report, check
SettingsCreate or adopt the project; its agents, preferences, quality checks and ALMinit, adopt, config set, agents init, quality init, alm sync

Every action runs a specgate command from a fixed list, its arguments checked; the studio shows the very command, its output as it grows, and how it ended. Anything outside that list is refused, even from the studio's own page.

Simple shows no command; Advanced adds the brief's markdown editor, the ids and each agent's command. ES · EN switches the language, the sun and moon the theme (it follows the system until you choose), and ‹ folds the sidebar to its icons. All of it is remembered in your browser.

Settings · a project from an empty folder#

In an empty folder the studio asks five questions: the name; what you are building (a website, a service or a mobile app); the technology (Node.js and React, Java and Spring Boot, Python and FastAPI, or your own); which agent codes — the one found on this machine is already chosen; and the quality level. Then it creates the project there, with a brief to fill.

A folder that already holds code is adopted in place, never scaffolded over: See what adopt writes lists every file specgate adopt would add, then Adopt this folder writes them — no file overwritten, no code touched.

On a project, Settings lists the agents — the profiles of .harness/profiles.yaml, which is the default and which streams tokens and cost, and a command of your own set in harness.config.yaml — with Change the assistant; and the quality checks: when each runs, whether it gates or advises, and whether Docker answers.

Settings on a project: the agent command harness.config.yaml holds, Change the assistant, and how to add a profile; then Code quality — Docker does not answer here — with the basic and strict levels to turn on.

Below, the project's preferences as specgate config keeps them — the tests the gate runs, the architecture check, the help profile, the language, the agent guard, Gato — each saved with config set, an unknown key or value refused. The agents installs the guards for this project, for Claude Code or OpenCode (agents init --tool claude-plugin), and wires the agent tools (agents init). The guards for every project of yours stay in a terminal: specgate agents install --global.

The project's preferences: the test and architecture commands, the help profile, the language, the agent guard and Gato, each with Save.

With an alm.config.yaml, a Jira / Azure Boards card shows the provider, the project, and whether the token's variable — say JIRA_TOKEN — is set in the environment studio was started from. It never asks for the token, shows it or keeps it. See the mapping (alm status), See what sync would do (alm sync --dry-run), then Sync.

Brief#

The brief is the source of every requirement: what is not in it is not built. The form — the product in one sentence, who uses it and where, the modules with their rules, examples and open questions — saves itself into docs/brief.md as you type, keeping every other line of the file. A module written by hand under ## orders becomes its ## Module: orders section, its text kept in it. Or paste the client's email or notes and let the agent propose the form. Beside it the brief's checks run on every save, and Next: draft the modules waits while one of them is an error.

The Brief: a box to paste the client's text, the product, who uses it and on which surfaces, the modules and the selected one's rules; beside it, the checks are all in order and Next: draft the modules.

Changes · every change, to its archive#

The brief's modules on the left, each with where it stands — to draft, being drafted, draft to review, approved, archived. Draft hands one to the agent in the background, one at a time, with its progress as it writes; Stop ends it, with every process the agent started.

A draft to review shows its cycle, then To approve: everything that holds it, each with the action that clears it — Answer Q1 for an open question, The spec says it for an answer the requirement does not reflect yet, the file to open for a check that fails. Approve the draft says what is still missing instead of staying grey without a reason. A 1.0 change also lists its layers — Discover, Design, Tasks — each with the role that owns it, its approvals against the quorum and who gave them, and Approve on each layer whose role you hold (Lanes, roles and limits). Below, each requirement with its examples as Given / When / Then, and Ask for a change under each.

Changes: the orders draft to review, two open questions each with Answer, Approve the draft waiting with "2 things missing", and the draft's requirements with their examples.

Every change of the project is here, not only the brief's: the others are listed under Other changes, each with how many of its requirements are delivered. A change opens into its requirements and their status, its proposal and its tasks. Deliver runs specgate apply on a requirement coded by hand — its test first, then the gate, then Implemented — or says why it was refused (no test names it yet, a stage that failed). Validate checks its deltas. Once every requirement is delivered, See what archive writes previews the archive, and only then Archive merges it into the spec. + New change opens one from an idea, by its id, or — with an ALM configured — from a ticket's key.

A change: its three requirements, each Draft with Deliver, the proposal, Validate, and the archive waiting until every requirement is delivered.

A change from a ticket#

With an alm.config.yaml, + New change takes a ticket's key — KAN-13. Review the ticket runs specgate propose --from-ticket KAN-13 --check, which writes nothing: whether the ticket is ready, each finding with its fix, and the capability the change goes into. When the ticket's epic names none, pick one of the project's capabilities; a ticket that is not ready cannot be opened — fix it in Jira and review it again.

Before it opens anything, the studio says what it will do: the branch — the one you are on when it names the ticket, as feature/KAN-13 or feature/parking/KAN-13 from agentkit (then --no-branch, and no other branch is made), or the one it will create — and that it commits the change's folder and nothing else, then pushes the branch to origin. Don't push yet keeps it local (--no-push). Open the change asks once more; only then it runs.

Home names the ticket and the team when the branch you are on names a ticket, and a change opened from one shows its key in Changes, linked to the ticket when base_url is Jira's.

Questions#

Everything waiting for a decision: what the brief asked, what a draft could not settle, what the agent asked while it built. Pick one of the options Specgate saw or write your own; Enter saves it into the question's row of questions.md — the studio adds the Answer and Status columns when the table has none, and keeps the file's line endings.

Questions: each open question with the requirement it blocks, its options, and the answer box.

An answered question moves to Answered · confirm the spec says it, once, whether you answered it here or by hand. When the requirement's text says the answer, The spec says it marks it reviewed and lifts Needs Clarification from the requirements it held.

The answered questions, one row each, with The spec says it.

Build#

In a project with no agent yet, Build offers Claude Code, Codex or a command of your own, the one found on this machine already chosen; Use this assistant writes it to harness.config.yaml. Then what is ready to build — approved, waiting for no answer — each picked, with an estimate, and Build starts the harness in the background. Before it starts, the studio commits the specification it wrote (the brief, approvals, answers) with your git identity; any other uncommitted file stops the build, named.

Build with no agent yet: Claude Code, Codex or your own command, and Use this assistant.

Build with an agent: the requirement ready to build, picked, and Build 1 requirement.

Live#

The run as it happens, pushed by the server: no reload. The header stays in view with the run's figures — passed, running, failed, the time, the tokens and the cost — and Stop after this requirement or Stop now, which asks first: what the agent has half done is not kept.

  • By module: a row per module, a square per requirement — passed, running, failed, asking, blocked or queued — those the run has not reached included. A square opens its requirement.
  • The requirement, in tabs: Steps — the agent, then each gate step by its name, the one running with how long it has run, the ones still to come — and the agent's log, which follows the end until you scroll up; Requirement; Tests and files; Attempts; Agent — the model, its context against its window, the tokens, and the prompt it was given.
  • The work queue: Now, Needs attention — the agent's question, answered right there, failures, blocked requirements — Up next with an estimate, Open questions, each with its answer form, and Finished recently.
  • Traceability: the matrix as it stands, a fold per module, each scenario with its feature, its tests and its status, filtered as you type.

Live: a requirement running, the run's figures, the matrix by module, the requirement's steps and the work queue.

Live in the dark theme, the sidebar folded to its icons, and the agent's log below the steps.

Traceability: each module's scenarios with their feature, tests and status, filtered as you type.

/live opens this section directly. In a workspace repository it opens on the workspace: each repository's harness — what it builds, its queue, what passed and failed, what it cost — and each story's parts with what they wait on. A repository's name leads to its own Live at /live/repo/<name>/, read only, with a way back (Workspace).

Report#

Built of the total, examples proven, whether the gate passes, the agent's cost and time and, when the quality checks ran, the code's coverage and mutation score. Then each module, what the app does already and the example that proves each requirement, what is missing and why, and the decisions taken. Download the report saves it as one HTML page that opens anywhere; Print / PDF opens it to print.

The Report: the figures, the table by module, and what the app does.

The gate — on Report and on Home — runs specgate check as CI would: each stage passed, failed or not configured, and under what failed the fix it ships. Doctor runs specgate doctor the same way.

The gate run from the studio: Ids not compared, Specification passed, Architecture not checked, Tests not configured, and the gate passes.

Saying what it does#

  • While a section is read for the first time you see its shape, not a blank page.
  • A button stays busy while its request runs and cannot be pressed twice; then a notice says what happened. A success goes by itself; a failure stays until you close it, with Try again.
  • A read that fails says why inside its own section, with Read it again; the rest of the page keeps working.
  • If the studio's server stops answering, the page says it is reconnecting and marks what it shows as possibly out of date; when the server answers again it says so and reads the section again. A studio started again has a new write token, and the page takes it.
  • What the checks say comes in your language, with the same ids.

Keyboard and screen readers#

Skip to the content is the first thing Tab reaches; the focus is always visible; a section you open takes the focus to its title; an answered question keeps the focus on its row; each result is announced once, by its notice. The requirement's tabs move with the arrow keys. With reduced motion asked by the system, nothing moves.

Speed#

The studio reads the project's state in its own process and keeps it until a file of the specification changes, so a refresh costs milliseconds, also on Windows.

Safety#

Studio answers on 127.0.0.1 only, and refuses another host name. Every action that writes is a POST with a JSON body, the token the page receives when studio starts, and a loopback origin; any other method is refused. The app loads nothing from another host, and nothing a project or an event holds is ever read as HTML.

Next#