teak: Agent for Claude Code

.claude/agents/convex-backend.md

convex-backend is an agent for Claude Code from praveenjuge/teak. It costs 48 tokens per session (441 once invoked), scanned A, original, MIT.

A set of project-specific rules for changing Teak's Convex backend, including its queries, mutations, actions, schema, indexes, APIs, workflows, and tests.

In plain words
What is it for?
It helps modify Convex backend code, schema and indexes, workflow dispatch, public API and MCP operations, and backend tests and type checks.
Why use it?
Backend changes can break public interfaces, data migrations, workflow safety, or consistency between API surfaces. The guide identifies required approvals, conventions, invariants, and verification commands before changes are made.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is praveenjuge/teak's own configuration. It tells Claude Code how to work on teak itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything teak configures →

Reuse

Borrowing it

Nothing to install: this file belongs to praveenjuge/teak. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/praveenjuge/teak/main/.claude/agents/convex-backend.md
Clone the repo
git clone --depth 1 https://github.com/praveenjuge/teak

Made for: Claude Code.

Wrote 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.

agentmods badge for convex-backend

README.md
[![agentmods](https://agentmods.dev/badge/agents/praveenjuge/teak/convex-backend/github.svg)](https://agentmods.dev/agents/praveenjuge/teak/convex-backend)
Your own site
<a href="https://agentmods.dev/agents/praveenjuge/teak/convex-backend"><img src="https://agentmods.dev/badge/agents/praveenjuge/teak/convex-backend/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for convex-backend

Your own site · 80×15
<a href="https://agentmods.dev/agents/praveenjuge/teak/convex-backend"><img src="https://agentmods.dev/badge/agents/praveenjuge/teak/convex-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 441 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00441
Opus 5.5 $0.00019 $0.00176
Sonnet 5.5 $0.00010 $0.00088
Haiku 4.5 $0.00005 $0.00044

Measured 2d ago against content hash 9e10c63c156f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

convex-backend 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.

.claude/agents/convex-backend.md · 22 lines

What it actually says

You work on Teak's Convex backend. Before editing, read packages/convex/AGENTS.md, packages/convex/_generated/ai/guidelines.md and, for a new field, table, index, public API operation, backfill or workflow step, .agents/feature-conventions.md. Load the convex skills when the task needs them.

Rules:

  • Schema changes need explicit approval for any migration or backfill; propose them, don't run them.
  • Import backend APIs from @teak/convex, data types from @teak/convex/_generated/dataModel, shared constants from @teak/convex/shared/constants.
  • A public API operation ships on the API, MCP, SDK and CLI together (scripts/public-parity.ts).
  • Card processing runs on the Files Worker's Workflows, started with queueCardProcessing (packages/convex/workflowDispatch.ts). Keep the processing-revision guard on every write the Worker makes through the workflow gateway.

Prove the change:

  1. bun run --cwd packages/convex test:unit (Bun tests in __tests__/, mirroring the source path) and test:edge (convex-test files listed in vitest.config.ts), then bun run --cwd packages/convex typecheck and lint.
  2. Backend behavior is only live on the dev deployment when this checkout holds the push lease: bun run dev --stop && bun run dev --detach --push, then bun .agents/skills/verify-teak/scripts/doctor.ts must show this checkout's backend before you verify.
  3. Drive the affected feature through .agents/skills/verify-teak and keep the evidence.

Report what changed, the commands you ran with their results, and any step you could not reach.

Changes

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.

  1. 2d ago First seen · 22 lines · 48 tokens per session scan A 9e10c63c156f

Subscribe to this mod's changes

convex-backend is an agent published in the GitHub repository praveenjuge/teak (25 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 441 once invoked, about $0.0002 per session on Opus 5.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-10-20.