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/get-convex/convex-agent-plugins/convex-authzgit clone --depth 1 https://github.com/get-convex/convex-agent-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/get-convex/convex-agent-plugins/convex-authz)<a href="https://agentmods.dev/commands/get-convex/convex-agent-plugins/convex-authz"><img src="https://agentmods.dev/badge/commands/get-convex/convex-agent-plugins/convex-authz.svg" alt="Measured on agentmods" height="20"></a>What 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.1 | $0.00070 | $0.00823 |
| Opus 5 | $0.00035 | $0.00411 |
| Sonnet 5 | $0.00014 | $0.00165 |
| Haiku 4.5 | $0.00007 | $0.00082 |
Grade A, and why
convex-authz 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 5d 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 — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Convex Authz Auditor/Hardener
Audit and harden a Convex app's authorization against the single largest
real-defect cluster measured against generated Convex backends (44 of 214
confirmed defects): identity trusted from a client-supplied argument instead
of ctx.auth, missing per-document ownership checks, and public queries that
leak PII/financial data by a client-supplied id. SKIP if there's no convex/
directory.
Steps
- Scan every
convex/**/*.ts(skip_generated/and.d.ts) for the 3 shapes:- Identity-from-arg: a public
query(/mutation(whoseargsdeclaresuserId/actorId/ownerId/authorId/accountIdtypedv.id(...), with zeroctx.authreference anywhere in the function block. - Missing ownership check: a handler that loads a doc via
ctx.db.get(args.xId)and then patches/deletes/replaces it (or returns its fields) with no comparison against an authenticated identity. - PII-leaking query: a public query returning sensitive fields
(email, revenue, audit logs, dashboards) parameterized by a
client-supplied id with no
ctx.authgating. Report every hit with file:line before touching anything.
- Identity-from-arg: a public
- Harden each hit using the canonical pattern (do not invent a new one):
Replace client-supplied identity args with// convex/model/auth.ts export async function requireIdentity(ctx) { const identity = await ctx.auth.getUserIdentity(); if (!identity) throw new Error("401: not signed in"); return identity; } export async function requireOwner(ctx, doc) { if (!doc) throw new Error("404: not found"); const identity = await requireIdentity(ctx); if (doc.ownerId !== identity.subject) throw new Error("403: forbidden"); return doc; }requireIdentity(ctx); wrap every_id-keyed read/mutate withrequireOwner(ctx, await ctx.db.get(args.xId)); scope PII-returning queries the same way. Leave genuinely internal/admin functions asinternalQuery/internalMutationand unflagged. - Verify with
npx tsc --noEmit(or the project's typecheck script), then re-run the scan to confirm 0 remaining hits. - Report findings grouped by shape, with file:line, why each is exploitable, and the concrete diff applied.
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.
- 5d ago First seen · 68 lines · 70 tokens per session scan A f6b1c90236a0
convex-authz is a command published in the GitHub repository get-convex/convex-agent-plugins (112 stars, last pushed 7d ago), licensed MIT. It adds 70 tokens to every session and 823 once invoked, about $0.0003 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-30.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.