Set up, run, and verify Vexia, an MIT-licensed demo of a customer-support agent workspace (React + TypeScript web app plus Go, Rust, Python, C++, C, Zig, and SQL modules). Use it when a developer wants Vexia running locally, wants its dev server up, or wants the full check suite run (Vitest unit tests, Playwright E2E, and the Go/Rust/Python/C++/C/Zig checks) with a PASS/FAIL/SKIP table. Say this up front: the built-in agent is a scripted keyword matcher over a small demo dataset, not an LLM. It reacts only to set phrasings (trigger words like "refund", "order", "track", "cancel", and order IDs like ORD-1042) and refuses the rest. A real model needs a POST /turn backend the buyer builds and hosts; none is included.
Resources
3Install
npx skillscat add ali-berrehali/vexia/vexia-workspace Install via the SkillsCat registry.
Vexia workspace
This skill gets Vexia running and checked: a demo customer-support
agent workspace — a chat UI where a scripted agent looks up demo
orders, cites knowledge articles, asks a human to approve refunds or
cancellations (the default), and shows its reasoning trace. It also
runs the project's polyglot checks (web, Go, Rust, Python, C++, C,
Zig).
Before anything: the limits
Tell the user these points before you set anything up. Never describe
Vexia as an AI or LLM agent that understands free text.
- The engine is scripted.
src/agent/supervisor.tsroutes each
message by trigger words over a fixed dataset: 3 orders
(ORD-1042,ORD-1043,ORD-1044), 3 customers (Maya Chen,
Jonas Weber, Priya Nair), and 3 knowledge articles. It is
deterministic, works offline, and needs no API key. - It only reacts to set phrasings. The full list is
references/engine-limits.md.Where is order ORD-1042?andRefund order ORD-1043work;I want to return my headphones
is refused. - No real-model backend is included. The remote engine calls
POST {VITE_VEXIA_MODEL_BASE_URL}/turnand expects a JSONAgentTurnback. Nothing in Vexia implements/turn: the bundled
Go server only serves/api/health,/api/analytics,/api/conversations,/api/playbooks, and/api/articles. The
contract is inreferences/turn-contract.md; the buyer builds and
hosts that backend. - Never put a real provider key in a
VITE_*variable. Vite
bakes everyVITE_*value into the public JavaScript bundle, so
a real key belongs only in the buyer's own server-side/turn
proxy.
In this package
| Path | What it is |
|---|---|
SKILL.md |
These instructions |
assets/vexia/ |
A full copy of the Vexia source (MIT licence in assets/vexia/LICENSE). Build outputs and node_modules are left out. |
scripts/check-prereqs.sh |
Lists which toolchains are installed and compares each with its minimum version. Exits 1 when Node.js or npm is missing or too old. Local only, no network, changes nothing. |
scripts/verify.sh |
Runs Vexia's checks inside a Vexia directory and prints a PASS/FAIL/SKIP table with expected vs. actual test counts. It installs nothing; a component whose toolchain is missing is reported as SKIP, and any SKIP makes it exit 3 (not 0). |
references/engine-limits.md |
Exactly which messages the scripted engine understands |
references/turn-contract.md |
The POST /turn request/response contract for a real-model backend |
Steps
1. Get the source in place
Copy the bundled source to wherever the user wants it. From the skill
directory, for example:
cp -R assets/vexia ./vexia
cd vexiaPrefer this bundled copy: it is the exact source these instructions
and expected counts were verified against. A Vexia checkout from
GitHub may be at a different (older) commit — the repository's
default branch can lag behind this package — so only use a checkout
if the user confirms it is at the same version, and expectverify.sh to flag count differences otherwise.
2. Check the toolchains
bash <skill-dir>/scripts/check-prereqs.shOnly Node.js and npm are needed for the web app; the script exits 1
when either is missing or older than the minimum. The versions:
| Tool | Version | For |
|---|---|---|
| Node.js | ≥ 22.12 (24 recommended, the CI version), npm ≥ 10 | the web app (required) |
| Go | ≥ 1.22 | server/ |
| Rust / Cargo | ≥ 1.82 | cli/ |
| Python 3 + pytest | ≥ 3.10, tested with 3.12 | scripts/ |
| gcc, g++, make | recent (C11 / C++17) | c/, cpp/ |
| Zig | ≥ 0.15 (library tests and CLI verified on 0.15.2; the 0.17 entry point is not yet re-verified) | zig/ |
| PostgreSQL | 16 (optional) | db/schema.sql — drops tables, see below |
3. Install (network — ask the user first)
These are the only steps that download anything. Run them from the
Vexia root, and only once the user agrees:
npm ci # npm registry: locked JS dependencies
npx playwright install chromium # Playwright CDN: browser for E2E testsThe first cargo test in cli/ pulls serde, serde_json, and
their dependencies from crates.io. The Go, Python, C, C++, and Zig
modules have no third-party dependencies (pytest aside).
4. Run it
npm run dev # dev server (Ctrl+C to stop)Or npm run build, then npm run preview. Suggest the user try the
phrasings in references/engine-limits.md. After a handoff ("Talk to
a human") the chat input stays disabled, across reloads, until the
user clicks New conversation.
SQL (optional, ask first): db/schema.sql runs DROP TABLE … CASCADE before recreating its tables. Everything lives in its ownvexia PostgreSQL schema, so same-named tables in other schemas are
untouched, but only load it into a dedicated, throwaway database
(createdb vexia, then psql -v ON_ERROR_STOP=1 -d vexia -f db/schema.sql), never into one whose vexia schema holds real data.
5. Verify
From anywhere, pass the Vexia root as the argument:
bash <skill-dir>/scripts/verify.sh ./vexiaIt runs, in this order: npm run build, npm run lint, npm test,npm run test:coverage, npx playwright test,(cd server && go test -v ./...), (cd cli && cargo test),pytest scripts/, make -C cpp test, make -C c test,(cd zig && zig build test --summary all) (which also builds thevexia-trace CLI and runs it on both example traces). Each command
runs directly, without a shell string. Expected counts on a clean
tree: 264 unit tests, 40 E2E, 38 Go, 79 Rust, 58 Python,
36 C++ checks, 63 C checks, 15 Zig tests. A check whose command passes
but whose count differs is reported as FAIL.
Exit codes: 0 every check ran and matched its count · 1 a check
failed · 2 usage error · 3 nothing failed but something was
SKIPPED (a toolchain is missing). Exit 3 means not fully
verified. --allow-skip turns exit 3 into 0; use it only when the
user accepts a partial run, and say which checks were skipped.
Report the table to the user exactly as printed. Never report a SKIP
as a PASS.
6. A real model (only when the user asks)
Explain that this is new work for the user, not a setting. They need
a server that implements POST /turn as described inreferences/turn-contract.md and keeps the provider key on the
server side. Then they set VITE_VEXIA_MODEL_PROVIDER=remote andVITE_VEXIA_MODEL_BASE_URL in .env (copy .env.example; .env
is git-ignored).
Troubleshooting
- Chromium will not start on Linux (
error while loading shared libraries,Host system is missing dependencies): install the
system libraries once withnpx playwright install --with-deps chromium(uses sudo / the system package manager — ask the user
first). - Port 4174 is in use. The E2E suite serves the build on
http://localhost:4174and reuses whatever already listens
there, so a stale server makes it test the wrong build. Check
withss -tlnp | grep 4174(orlsof -i :4174) and stop that
process before runningnpx playwright test. - "Found another Vite preview process for this project … Pass
--bypass-lock". Vite 8 refuses a secondvite previewfor the
same project. Stop the other preview (the port-4174 check above
finds it), then re-run. cargoorzigreported MISSING but installed. They are often
installed outside the default PATH (~/.cargo/bin, a Zig download
folder). Add that folder to PATH for the session, e.g.export PATH="$HOME/.cargo/bin:$HOME/zig:$PATH", then re-runcheck-prereqs.shandverify.sh.- The chat input is disabled after a handoff. Click New
conversation under the chat (it clears the saved conversation inlocalStoragekeyvexia.chat.checkpoint.v1). - Lighthouse (
node scripts/lighthouse.mjs / /analytics) needs
the preview server already running (npm run build && npm run preview -- --port 4174 --strictPort); it fails with a clear
message otherwise and writes only to the git-ignoredlighthouse-results/.
Safety
- The two scripts read no environment variables (apart from looking
up tools onPATH), collect nothing, and make no network calls of
their own.verify.shruns fixed commands directly (noeval, nobash -c).verify.shwrites its logs toverify-logs/in the
Vexia directory (not undertest-results/, because Playwright
wipes that folder when the E2E run starts). The checks it
starts build into git-ignored folders there (dist/,coverage/,cli/target/,c/build/,cpp/build/,zig/.zig-cache/,test-results/,playwright-report/). The
toolchains also use their normal per-user caches (npm, Cargo, Go,
Zig), and the firstcargo testdownloads crates as noted in step 3. - Vexia itself reads only these environment variables: the four
VITE_VEXIA_MODEL_*settings,VEXIA_DATA_DIR(optional data
path for the Rust and C++ tools),PORT(optional listen port for
the Go server), andPLAYWRIGHT_CHROMIUM_PATH(optional browser
override for tests and the Lighthouse script).