Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/alphabravo-oss/guild/matrixgit clone --depth 1 https://github.com/alphabravo-oss/guildWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00016 | $0.01116 |
| Opus 5 | $0.00008 | $0.00558 |
| Sonnet 5 | $0.00003 | $0.00223 |
| Haiku 4.5 | $0.00002 | $0.00112 |
Grade A, and why
matrix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The user wants every route × every role tested. Roles config and route source from $ARGUMENTS or sensible defaults.
Preflight
playwright.config.tsexists.- Smoke specs from
/e2e:crawlexist attests/smoke/— if not, ask the user to run/e2e:crawlfirst. The matrix builds on the route inventory; don't redo discovery here. .auth/is in.gitignore— verify, refuse to proceed if missing (auth artifacts must never be committed).
Determine roles
Look for e2e.config.json at the cwd root. If absent, ask the user for the role list and login credentials per role. Default scaffold:
{
"baseURL": "http://localhost:3000",
"roles": {
"anon": null,
"user": { "username": "[email protected]", "password": "..." },
"admin": { "username": "[email protected]", "password": "..." }
},
"loginFlow": {
"url": "/login",
"usernameField": "Email",
"passwordField": "Password",
"submitButton": "Sign in"
}
}
The anon role has null credentials — used for unauthenticated traffic. Never invent credentials. If the user hasn't provided them, ask.
Generate authenticated storageState (once per role)
For each non-anon role:
- Write
tests/auth/<role>.setup.ts— a setup spec that logs in and savesstorageStateto.auth/<role>.json:
import { test as setup } from '@playwright/test';
import config from '../../e2e.config.json';
const role = '<role>';
const file = `.auth/${role}.json`;
setup(`authenticate ${role}`, async ({ page }) => {
const creds = config.roles[role];
await page.goto(config.loginFlow.url);
await page.getByLabel(config.loginFlow.usernameField).fill(creds.username);
await page.getByLabel(config.loginFlow.passwordField).fill(creds.password);
await page.getByRole('button', { name: config.loginFlow.submitButton }).click();
await page.waitForURL((url) => !url.pathname.includes('/login'));
await page.context().storageState({ path: file });
});
- Add a
setupproject toplaywright.config.tsthat runs these before the matrix:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 124 lines · 16 tokens per session scan A dbf3c78f617a
matrix is a command published in the GitHub repository alphabravo-oss/guild (2 stars, last pushed 2d ago), licensed MIT. It adds 16 tokens to every session and 1,116 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
profile
Save, load, inspect, update, reset, or delete diagram-design client profiles.
buildable-design
Create a UI/UX design brief from a prompt or the current Buildable app spec.
mockup-analyze
Extract design specifications from HTML mockups using AI vision.
ui-flow-review
Review menus, HUD, navigation, and player flow from a UX perspective.
overlay
The spatial overlay — a click-through canvas floating over every window that both you and agents can draw on. /overlay shows status; /overlay open launches it (⌃⌥⌘D toggles draw mode, esc leaves); /overlay post --rel X,Y,W,H puts an arrow / box / highlight / spotlight / label / callout / sticker on the screen from an…
excalidraw-export
Export the current Excalidraw canvas scene, element set, library, or theme by retrieving the live resource snapshot.