FF

feedforagents/feed

Developer tools
118 stars Quality 69 Trend 55MIT

A full stack for building software with coding agents. You say what the product must do; agents build it, from verified rules to a tested, running React application, and every layer they touch is...

Overview

A full stack for building software with coding agents. You say what the product must do; agents build it, from verified rules to a tested, running React application, and every layer they touch is checked before you sign off. Agents write code faster than anyone can read it. Vibestack gives every layer of an application one owner, one way to write it and one check, so an agent's work is held to account by tools rather than by your reading, and what is left for you is short: a list of sentences a product owner would call true or false. - Stories and rules live in Markdown, each rule with its formal meaning in Quint underneath. Nothing else models the same state. - Types, guards and transitions come from the spec. Thousands of simulated traces look for a state that breaks a rule; Dafny proves every transition keeps every rule, for all states and inputs. - Effects in VibeLang on Effect, interfaces in React on shared design tokens, journeys in Vitest against real services.

README


Quickstart

Starting a new project? Paste this into your agent:

Help me build a new project from https://github.com/lalalune/vibestack.

Start by asking what I want to build, who it is for, and its main workflows.
Then:
1. Use the template in a new project directory, or use my existing copy.
   Read AGENTS.md and README.md in full and follow their skills.
2. Check for Node.js 26+ and Dafny 4.11 on PATH, run pnpm install, and follow
   the README's "Set up a new project" section.
3. Write my stories in spec/app/index.md, with rules and Quint under each.
4. Build the app in apps/app: its shell in VibeLang on the generated code in
   gen/, its interface in React. Add journey tests through the real UI,
   API, storage, or other services.
5. Run pnpm check and fix failures until only my review remains.
   Never edit generated files or weaken rules to pass checks.
6. Show me how to run the app, summarize what needs review, and wait for
   my request before running pnpm accept.

Why

Agents write code faster than anyone can read it. Vibestack gives every layer of an application one owner, one way to write it and one check, so an agent’s work is held to account by tools rather than by your reading, and what is left for you is short: a list of sentences a product owner would call true or false.

  • Requirements are the source. Stories and rules live in Markdown, each rule with its formal meaning in Quint underneath. Nothing else models the same state.
  • The core is generated, simulated and proved. Types, guards and transitions come from the spec. Thousands of simulated traces look for a state that breaks a rule; Dafny proves every transition keeps every rule, for all states and inputs.
  • The rest is built on one stack. Effects in VibeLang on Effect, interfaces in React on shared design tokens, journeys in Vitest against real services. Lint rules hold every package to it.
  • Agents follow one procedure. AGENTS.md and the skills in .agents/skills/ tell any agent what to write where, and pnpm check tells it what is still wrong, ending with a next: line.
  • You sign off. Every changed rule is shown with its sentence and its Quint side by side; nothing is done until you accept it.

The stack

Layer What Checked by
Requirements Stories and rules in spec/**/*.md, one tree for every package, edited in Markdown or Studio review: you sign off with pnpm accept
Model Quint under each rule: state, transitions, always, step, sometimes and leadsTo rules, laws, secrets, refinement model, always, sometimes: simulated traces, counterexamples and witnesses
Generated core gen/.ts: types, guards, transitions, parseEvent and parseState; gen/.effect.vibe: the Machine service replay: TypeScript agrees with Quint on every simulated state
Proof Dafny on the generated core, and LemmaScript //@ contracts on hand-written logic proof, with each exception recorded in spec/lock.json
Shell HTTP, storage, queues and every other effect, in VibeLang on Effect 4 types: the vibelang compiler over src/, tests and gen/
Interface React with Vite, Tailwind CSS v4, shadcn/ui on Radix, tokens from packages/design-system, components in packages/ui with generated stories types, ESLint and Stylelint rules for tokens, Storybook and browser tests
Tests Whole journeys in Vitest with @effect/vitest and Playwright, citing the rule each step serves; conformance runs of the real app against the spec; Bombadil exploring each served page against test/bombadil.ts tests, traces, explore
Workspace Node 26, pnpm workspaces, Turborepo; ESLint boundaries, Knip, Madge and jscpd pnpm verify, CI on every push
flowchart LR
  you(["You: stories"]) --> spec["spec/**/*.mdstories · rules · Quint"]
  spec -- generate --> gen["gen/TypeScript core · Effect adapter"]
  gen --> shell["src/*.vibeVibeLang shell"]
  gen --> ui["src/*.tsxReact interface"]
  shell --> tests["test/journeys · conformance"]
  ui --> tests

  spec -. simulate .-> sim([counterexample or witness])
  gen -. "Dafny + LemmaScript" .-> proof([proof for all states and inputs])
  tests -. "pnpm check" .-> review(["review → pnpm accept"])

What is generated from what, which test is for what, and what a green check means are in CONTRIBUTING.md.

Getting started

Needs Node 26, pnpm and Dafny 4.11 on the PATH.

  1. Click Use this template to create your own repository, then clone it and enter its directory.

  2. Install the toolchain and start Studio with every app’s development server:

    pnpm install
    pnpm dev
    
  3. In spec/index.md, say what the product is for. In spec/app/index.md, the requirements of the application in apps/app, replace the hello world story (apps/app) with your first: who it is for, what they need to do, and why. Write it in Studio or in the Markdown file.

  4. Ask your coding agent to sync. It writes the rules and Quint, builds the code on them in place of the hello world, runs the checks, and reports what needs your review.

  5. Read what it reports, run the app, and sign off with pnpm accept.

Agents start with AGENTS.md. Skills and their bundled references are committed in .agents/skills/. pnpm install and spec init create project-relative skill links under .claude, .codex, .cursor, .droid, .factory, .gemini, .grok, .grokbot, .muse and .t3, plus CLAUDE.md pointing to AGENTS.md and Claude settings from .agents/claude-settings.json. Git ignores .claude/, CLAUDE.md and the other generated skill aliases. Running setup again recreates missing paths. Both commands preserve occupied paths and report conflicts with project skill sources. A client without repository skill discovery must read the applicable SKILL.md files linked from AGENTS.md explicitly.

Studio

pnpm dev                                # Studio on this project, and every app's dev server
pnpm studio vibestack/examples/order    # Studio alone, on an example or any directory with spec/

Studio opens in the browser and is where you direct the work: you shape the stories, an agent turns them into rules, Quint and code, the checks say where the project stands, and the application runs and builds beside it.

You Studio
Add, edit, delete or drag a story or rule; group rules under a heading without Story:; move one to another spec Applies it to its outline, with undo (⌘Z). Reorder with Alt+↑/↓, or Move to…
Add a spec by its path, such as billing/payments Creates spec/billing/payments/index.md and links it from its parent
Publish (⌘S) Shows the diff, writes the Markdown, and records in .studio/manifest.json what was added, changed, moved or deleted and what to regenerate. Then runs the checks
Run beside Claude Code or Codex Starts the agent on the sync prompt in the project and streams its progress; Open starts a new chat in the app with the same prompt
Run check Shows each failing stage, and marks the story or rule it names
Sign off Records the same approval as pnpm accept
Build beside App Runs the project’s build script as a job and streams its output
Start beside App Runs the project’s own development server (its start script, or dev when that is not Studio) and links to where it serves; Stop ends it

Studio is itself built on the stack, in vibestack/studio/: its rules in spec/, its server in VibeLang (src/server.vibe) and its page in React (src/page/). To work on it:

pnpm studio vibestack/studio                  # open Studio on its own spec
pnpm --filter vibestack-studio check          # its specs, proofs and journeys
pnpm --filter vibestack-studio test           # its journeys only, Playwright included

Build your project

1. Write the requirements

A ## heading is a story, a ### heading is a rule, and a quint block under a rule states its formal meaning. Write the prose; the agent writes the rules and their Quint. spec/index.md introduces the product and links to each area; spec// holds the requirements of the package apps/ or packages/ (one spec tree). pnpm new writes spec//index.md with a scaffold to replace. The format is in the spec reference.

2. Sync and check

Ask the agent to sync: it follows the sync skill.

flowchart LR
  edit["You write stories"] --> check["pnpm check"]
  check -- "needs work" --> agent["Agent syncs rules, Quint, code and tests"]
  agent --> check
  check -- "only review remains" --> accept["You read the diff and sign off"]

Each report ends with a next: line; the agent follows it until only your review remains.

3. Build on the generated core

pnpm check at the root generates each spec’s core in gen/, and that of spec/app/ in apps/app/gen/ too. The shell imports the Effect adapter:

import { Machine, machine, apply, decodeEvent, decodeState } from "../gen/app.effect.vibe"

Machine holds the state and changes it only by an event the rules allow: receive(input) decodes an untrusted value and applies it, failing with NotAnEvent or Rejected. A shell that stores state provides stored(key) in place of machine(), over a KeyValueStore layer (layerFileSystem, layerStorage or layerMemory). A React component reads and drives a Machine with useMachine from gen/.react.ts. If the spec uses a sender parameter named by, authenticate that sender in your shell and pass it separately (shell skill).

Write In Following
HTTP, storage and other I/O src/*.vibe the shell skill
The interface: components that read the state and send events through hooks over Machine src/*.tsx, on @repo/ui and the design tokens the design skill
Logic Quint cannot express, such as a loop src/*.ts with //@ contracts the prove skill
Whole-journey tests test/*.test.{vibe,tsx} AGENTS.md, “Tests”
A driver, when the shell keeps the machine’s state itself, through which check compares the application with the spec test/drivers/.ts SPEC.md, “Conformance”

Keep pure logic in the spec wherever Quint can express it. When the spec changes, the types stage points at the code that must follow. Never edit gen/.

4. Review and sign off

When only review items remain, read the diff of spec/, src/ and test/. Check that each rule’s sentence and Quint say the same thing, then:

pnpm accept

accept checks afresh and records what review lists in spec/lock.json, all or nothing. Commit the ledger with the spec.

Set up a new project

Before committing your application’s starting point:

  1. Remove what you do not need. Delete every directory in vibestack/examples/ except order/: pnpm selftest builds its scratch projects from it, so it stays, with the pnpm --dir vibestack/examples/order demo and pnpm selftest:examples scripts. Start your application from apps/app and its requirements from spec/app/index.md. Update the package name, description and repository links for your project.
  2. Keep the toolchain guide with the toolchain. Move this README to vibestack/README.md, update its relative links and the links to it in AGENTS.md and CONTRIBUTING.md, and keep the template license in vibestack/LICENSE alongside the Vibestack code.
  3. Write your project’s documentation. Create a root README.md with the project’s purpose and install, run and check commands. Set the root LICENSE to the project’s chosen terms and copyright holder.
  4. Check and commit. Run pnpm install and pnpm check, resolve their reports, and review and accept the spec. Commit the setup and reviewed ledger, then confirm git status --short is empty.

Using it from another package

The toolchain is a package with a spec command, installed from a tarball made with pnpm pack, which builds it.

pnpm add -D /path/to/vibestack-0.1.0.tgz
pnpm exec spec init          # adds what is missing; updates only its own marked instructions
pnpm exec spec new           # fill an empty spec/index.md
pnpm exec spec new     # a starter spec//index.md
pnpm check
spec init adds
.agents/skills/, AGENTS.md the agent’s procedure, skills, bundled references and license notice. Later invocations add missing files and refresh the marked Vibestack section in AGENTS.md
SPEC.md the spec reference
vibestack/reference/typereferences.md the TypeScript type reference
.claude/skills/ and the other project agent skill directories ignored links to the committed skills in .agents/skills/
.agents/claude-settings.json, .claude/settings.json the committed settings source and its ignored relative symlink for Claude. Claude Code refuses edits to gen/, .spec-cache/, .studio/, spec/lock.json and lemmascript.json, and asks before pnpm accept
CLAUDE.md ignored relative symlink to AGENTS.md. A standalone @AGENTS.md import is converted to the link. Custom Claude instructions are preserved and import AGENTS.md
an empty spec/index.md
tsconfig.json for the VibeLang compiler: src, test, gen/*.ts and gen/*.vibe, emitting to dist/, with the compiler’s declarations in .vibe/declarations
vitest.config.ts the one Vitest configuration, project() from vibestack/testing/vitest.ts (AGENTS.md, “Tests”)
.gitignore gen/, .spec-cache/, .studio/, dist/, .vibe/, .cache/, .turbo/, test/__traces__/, .claude/, CLAUDE.md and the generated harness skill paths
package.json scripts dev, check, gen, accept, build (vibelang) and test (vitest run); postinstall: spec init to recreate generated agent paths on install, before any existing postinstall commands, unless the project already has Vibestack’s setup hook; the VibeLang toolchain it lacks, at its pins, with the @effect/platform-node-shared override that keeps one Effect; packageManager ([email protected]), engines.node (>=26, the Node spec refuses to run below) and "type": "module" if unset

It preserves project-authored content, scripts, and dependencies. It writes no tests: check adds a test script on the one Vitest configuration when test/ first appears, and a driver to fill in when src/ first keeps a machine’s state.

spec works on spec/**/*.md, and optionally src/, the package’s tests and a tsconfig.json, in the directory it is run from. Without a tsconfig.json, a package containing src/ or test/ fails the types stage; a spec-only package reports that there is no code to typecheck. To hand the generated code to another package, compile gen/*.ts with tsc; it has no dependencies. gen/*.effect.vibe needs the VibeLang toolchain.

Commands

`` is any project directory containing spec/; it defaults to the current one. Installed as a package, use pnpm exec spec [].

Command Does
pnpm dev Starts Studio on this project and every workspace package’s dev script, together
pnpm studio [] Opens Studio alone, on one project
pnpm check [] [--json] Checks spec, source and tests, and explores each page; ends with a next: line (JSON shape)
pnpm quick Types, lint and tests of what changed
pnpm verify Everything CI runs: build, types, tests, browser tests, checks, lint, Knip, Madge, jscpd and the selftest, for every workspace package
pnpm gen [] Generates gen/ only
node vibestack/spec.ts watch [] Rechecks when any file the check reads changes
pnpm accept [] The user’s sign-off: checks afresh and records what review lists, all or nothing
pnpm accept unproved Records the listed obligations as simulated only. The user’s decision
pnpm new [] Fills an empty root index or creates a child starter spec
node vibestack/spec.ts init [] Sets up an existing project (above)
pnpm --dir vibestack/examples/order demo Runs the order example’s scripted checkout session
pnpm selftest Breaks the pipeline one way at a time and checks each break is caught, checks what the documents name, and installs and checks every example, as five cached tasks
pnpm build Compiles the tools into dist/, the packaged spec command
Exit code Means
0 green
1 a ✗, or an error
2 bad arguments; prints the usage to stderr (spec --help prints it and exits 0)

CI runs the tasks of pnpm verify on each pull request and push with the same fixed profile as local checks, and a fresh nightly run with a larger fixed profile (CI).

Examples

Each example is a whole application on the stack, standing apart from the workspace.

Project What it covers Open in Studio
Order checkout Guards, payments, cancellation and a proved event ledger pnpm studio vibestack/examples/order
Team dashboard Shared spreadsheets, chat notifications and a project registry pnpm studio vibestack/examples/dashboard
Shared to-do list HTTP server, browser client and two tabs over an unreliable network pnpm studio vibestack/examples/fullstack
Assistant Trusted senders, bounded turns, late replies, confirmation before payment and a secret card pnpm studio vibestack/examples/assistant

Repository

Path Holds
spec/ The one spec tree: the product, and a directory per app or package
apps/app A hello world application with one of each thing the stack offers, to replace with yours
packages/design-system Design tokens, built into Tailwind’s theme
packages/ui Shared React components, with generated stories
vibestack/ The tools: generator, simulator, prover, Studio, testing and design helpers
.agents/skills/ What agents read before each kind of work, with bundled references
.agents/claude-settings.json The committed template for generated Claude settings
AGENTS.md, SPEC.md, CONTRIBUTING.md The procedure, the spec reference, and the map

Contributing

See CONTRIBUTING.md.

License

MIT

View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add feedforagents/feed
New to MCP? Start with the mcpskill.org guide →