Oystro Standard CLI User Guide
Everything you need to go from a fresh account to a verified, released project using Oystro Standard CLI — including workstation onboarding, the full lifecycle, Project Levels S, M, and L, and daily best practices.
The core idea in one sentence: an AI agent saying “it works” is not proof. A command that actually ran on your exact code, with a verified record you can inspect later, is proof.
1. Why Oystro Standard (Affordable Risk)
AI coding agents write software very fast, but speed without oversight creates two bad options:
- Unbounded risk: you trust the agent’s summary (“all tests pass”) and absorb hidden regressions, skipped edge cases, and stale tests.
- Unaffordable review cost: you manually read every generated line of code and test harness, losing the speed advantage of using an agent.
Oystro Standard solves this by bounding your attention to two human signatures while mechanizing everything between them:
- Gate 1 (Approve the Plan): before any code is written, you review what “done” means — the goal, acceptance criteria, and test scenarios — and sign off.
- Mechanized Middle: your agent builds one task at a time, runs un-cached tests on the exact code tree, and an independent fresh-eyes reviewer checks that every claimed requirement is backed by a real assertion that ran.
- Gate 2 (Approve the Release): you review the verified proof and release summary, then sign off to bump the version and tag the release.
2. Create Account, Download, Install & Activate
Oystro Standard CLI is distributed exclusively to authenticated accounts. Your 30-day Free Beta license starts automatically on first sign-in and covers up to 3 authorized workstations.
Step 1: Create your account
- Open Account & Sign In in your browser.
- Choose Continue with GitHub, or enter your email address and click Send 6-digit login code.
- If using email, enter the 6-digit code sent to your inbox and click Verify & Sign In.
- Once signed in, your dashboard displays your active 30-Day Beta License countdown and your authorized workstations.
Step 2: Download and install the CLI
You must be signed in before downloading. Unauthenticated download requests are rejected.
- Open the Download Oystro CLI page while signed in.
- Click Download install.sh (this downloads a personalized installer bound to your active session).
- In your terminal, run the installer and add
~/.local/binto yourPATH:
sh ./install.sh
export PATH="$HOME/.local/bin:$PATH"
oystro version
The installer detects your operating system and CPU architecture, downloads the matching archive, verifies its SHA-256 checksum, and installs oystro to ~/.local/bin/oystro. Direct platform archives are also available on Download for manual installation.
Step 3: Authorize your workstation
- Run the login command in your terminal:
oystro auth login
- The CLI prints an 8-character device code (for example
WDJB-4792) and opens Activate CLI in your browser. - Confirm the code on Activate CLI while signed in to bind this workstation to one of your 3 seats.
- Verify your local license status anytime:
oystro auth status
Once authorized, your workstation holds a local offline-verifiable license lease, so you can continue working even without an active internet connection. You can revoke old workstations anytime from Account, and upgrade the CLI in place whenever prompted with oystro update.
3. Workspace, Projects & Local Web GUI
Move into any new or existing git repository and initialize Oystro:
cd your-project
oystro init
During oystro init, Oystro sets up your local .oystro/ state, updates your agent instruction files (such as AGENTS.md), and registers the repository in your machine workspace. Canonical protocol commands, templates, and gatekeeper instructions remain embedded inside the CLI and are accessed via MCP (oystro mcp) or oystro protocol read, while optional skills load on-demand from the gateway — keeping your repository clean with zero duplicate protocol folders:
- Workspace name: groups your local repositories on this machine.
- Project grouping: lets you group a single repository or multiple cooperating repositories (for example frontend, backend, and CLI) under one project name.
To open the visual console at any time, run:
oystro ui
The local Web GUI gives you a live view of your project status, Roadmap, Gate 1 & Gate 2 Inspector, multi-repo Waves (when a project spans multiple repositories), and one-click approvals.
4. The Full Project Lifecycle (Idea to Release)
Every change in Oystro involves three actors: You (the Owner) provide intent and sign twice; Your AI Agent drafts specs, code, and tests; and The Oystro CLI executes commands, records un-cached receipts, checks fingerprints, and refuses shortcuts.
| Stage | Who runs it | What happens |
|---|---|---|
| 1. Init | You (oystro init) | Scaffolds project rules, architecture, and technology contract; registers the repo in your workspace. |
| 2. Define | Your Agent (oystro:define) | Turns your idea into a written spec.yaml with goal, stories, atomic acceptance criteria, and test scenarios, then checks its shape with oystro check --spec. |
| 3. Gate 1 | You (via oystro ui or oystro gate request) | You inspect an individual slice or an entire phase in the GUI, enter your approval note, and click Approve and Sign All (or run oystro gate request phase --gate 1 and oystro gate sync for Ed25519-signed receipts). Nothing can be built until Gate 1 is signed; if a spec legitimately changes later, re-sign explicitly with --reapprove. |
| 4. Build | Your Agent (oystro:build) | Implements tasks in order, one commit per task. A git pre-commit guard rejects changes to code files not owned by an approved spec. |
| 5. Run & Precheck | Your Agent (oystro run, oystro precheck) | Executes every declared scenario fresh (no cached test passes) and confirms every requirement atom maps to a test that actually ran. |
| 6. Review & Audit | Fresh Checker Subagent (oystro audit) | A clean-context reviewer inspects the source code and tests against the spec, quotes the exact asserting line for every atom, and passes oystro audit --gate (0 unanswered). |
| 7. Verify & Smoke | oystro verify & oystro smoke | Confirms all fingerprints still match the current code and runs end-to-end critical paths implicated by the phase diff. |
| 8. Gate 2 | You (via oystro ui Gate Inspector) | You review the verification summary, proof, and release notes in the GUI, enter your release note, and click Release Phase to bump the version, tag the commit, and archive the phase. |
Never guess what comes next: run oystro status at any moment. It derives the exact next command from your repository state.
5. Worked Example: One Complete Slice
Suppose you are building a small CLI called notes and want to fix a bug: running notes add "" currently writes an empty file instead of refusing.
- Tell your agent what you want: start your coding agent in the repo and prompt
oystro:definewith: “When a script runsnotes add "", refuse with exit code 2 and create no file.” - Review & approve Gate 1 in the GUI: your agent writes
spec.yamlsplitting the requirement into two verifiable atoms (“exit code is 2” and “no file is created”) plus a scenario command. Openoystro ui, selectS001in the Gate Inspector, verify the criteria and scenarios match your intent, enter your note (e.g. “Empty notes must exit 2 without creating a file.”), and click Approve Gate 1. - Let the agent work between gates: your agent implements the validation, writes the test, runs the evidence contract, completes the fresh-eyes review and audit, and runs verification and phase smoke checks.
- Inspect proof & release Gate 2 in the GUI: back in
oystro ui, open the Verification tab forS001(or the phase summary in Roadmap), confirm all checks are green, enter your release note (e.g. “Empty notes refused cleanly; ships in 0.1.0.”), and click Release Phase (Gate 2).
6. Project Levels S, M, and L in Detail
Oystro keeps Gate 1 and Gate 2 strict on every project, while scaling planning ceremony and review depth to match your project’s risk and size. You choose the level during oystro init.
| Level | Best For | Planning Structure | Fresh-Eyes Review | Phase Smoke |
|---|---|---|---|---|
| S — Small | Focused utilities, scripts, small services, or rapid prototypes in a single repo. | Slice only (+ Gate 1 & Gate 2). No Milestone, Phase, or Wave ceremony. | Optional / lighter check | Runs declared critical paths if configured |
| M — Medium | Production single-repo applications and standard feature development (the default). | Milestone → Phase → Slice (+ Gate 1 & Gate 2), one active Phase at a time. | Recommended; enforced when configured | Required for critical paths touched by the phase diff |
| L — Large | High-risk systems, security/auth/billing changes, or multi-repo platforms. | Milestone → Phase → Slice + Cross-Repo Waves (+ Gate 1 & Gate 2). | Mandatory before oystro verify (refuses without Ref: APPROVED) | Mandatory across all implicated critical paths before release |
Testing Levels (Independent of S / M / L)
Alongside your workflow level, your project declares a testing level that sets how deep the proof must go:
- Light: proves the primary happy path and cheapest deterministic check — ideal for early exploration.
- Standard (Default): requires full acceptance-criterion coverage, negative/failure cases, and un-cached regression runs.
- Full: adds boundary cases, cross-component integration checks, and strict critical-path verification for high-stakes releases.
7. The Three Release Lanes
Every piece of work follows the same Gate 1 → Proof → Gate 2 discipline. The lane only decides when and how it ships:
| Lane | When to use it | How it ships |
|---|---|---|
phase | Planned feature work belonging to your current milestone roadmap. | Batched into a Milestone minor release (for example 0.2.0 → 0.3.0) when every slice in the phase is verified. |
patch | Incremental improvements, tooling polish, or non-urgent fixes grouped within the current milestone. | Batched cleanly per milestone and released as an incremental patch bump (for example 0.4.2 → 0.4.3) while keeping your active phase or milestone uninterrupted. |
hotfix | Urgent production regressions that cannot wait for the active phase. | Fast-tracked out of band as a patch release (0.X.Y) with full evidence and Gate 2 sign-off. |
8. Phase Smoke & Multi-Repo Waves
Phase Smoke: Proving the Whole Still Runs
Individual slice tests prove each claim in isolation, but twenty green unit tests do not guarantee the assembled application still starts. Phase Smoke (oystro smoke) runs real end-to-end commands declared for your project, checks that expected outputs exist, and refuses Gate 2 release if any critical path touched by the phase lacks a current passing run.
Multi-Repo Waves
When a project spans two or more repositories (such as a web portal, API gateway, and CLI), Oystro automatically enables the Waves view in oystro ui. A Wave coordinates slices across repositories in dependency order without storing brittle manual status files — its status (Planned, Active, Released) is derived live from each repository’s Gate 1 and Gate 2 records.
9. How You Experience It Day-to-Day
In practice, you spend roughly 5 minutes at Gate 1 and 2 minutes at Gate 2, and let the agent + CLI handle the middle:
- Clear next actions:
oystro statusalways tells you whether you are waiting on a spec, Gate 1 approval, evidence, review, or Gate 2 release. - Visual Gate Inspector: running
oystro uilets you inspect specs, test receipts, Roadmap progress, and Waves in your browser, and sign Gate 1 or Gate 2 with one click. - Automatic drift protection: if an agent edits code without an approved spec, edits a test after Gate 1, leaves an acceptance atom without a real test assertion, or tries to ship with stale results, the CLI refuses with an exact error and the command to fix it.
- No lost context across sessions: because specs, decisions, logs, and verification records live in your repository, you can switch AI coding agents or resume weeks later without starting from zero.
10. Best Practices to Get Maximum Value
- Invest 5 minutes at Gate 1: read the goal, acceptance criteria, and scenarios slowly in the
oystro uiGate Inspector before clicking Approve Gate 1. A vague spec produces vague tests; a sharp, observable criterion catches bugs before a single line of code is written. - Split criteria into single testable atoms: never combine two behaviours into one vague bullet. When each atom has one clear assertion, audits stay fast and unambiguous.
- Include negative & boundary scenarios: specify what should fail (invalid input, unauthorized access, missing files) as well as the happy path.
- Match Level S, M, or L to real risk: use S for small tools so you stay fast; use M for everyday product work; step up to L when touching auth, data integrity, or multi-repo contracts.
- Use the
patchlane for continuous polish: don’t cram unrelated UX tweaks into a feature phase or wait weeks to ship a small improvement — route it to a patch so your main milestone stays clean. - Trust refusals — never bypass hooks: if a pre-commit guard,
precheck,audit --gate, orsmokecheck refuses, it caught a real gap between claim and proof. Fix the gap rather than forcing around it. - Keep your CLI updated: when your terminal or
oystro uinotifies you of a new version, runoystro updateto pick up the latest checks and protocol improvements.