Convex Agents
A code-pattern skill for building stateful AI agents on Convex with threads, tools, streaming, RAG and multi-step workflows.
Dev & CodingIntermediate★ 402⑂ 32AI score 7/10Last updated: Feb 6, 2026
What it does
- Shows how to set up an agent with the
@convex-dev/agentcomponent. - Provides thread management code (create, list, fetch messages) so chat history persists.
- Covers tool definitions for function calling, token streaming to clients, and vector-search RAG.
- Includes a multi-step research workflow (search → analyze → summarize), a full Convex schema with
vectorIndex, and a React chat UI example. - Adds guardrails: never run
npx convex deployor git commands unprompted, plus a common-pitfalls list.
Who it's for
- Full-stack developers using Convex as a backend who want to add AI chat or agents.
- TypeScript/React teams prototyping streaming chat and retrieval-augmented answers.
- Anyone needing durable, long-running agent workflows on serverless infrastructure.
Usage examples
- "Build a Convex chat backend with per-user conversation threads" → generates schema plus mutations/queries.
- "Give the agent tools to create tasks and search the knowledge base" → generates
tool()definitions and an action with a system prompt. - "Set up RAG: embed documents on insert and answer from vector search" → generates the vector index schema and search query.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/waynesutton/convexskills/HEAD/skills/convex-agents/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/convex-agents folder from the GitHub repo waynesutton/convexskills into my ~/.claude/skills/convex-agents/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/waynesutton/convexskills.git /tmp/convexskills && mkdir -p ~/.claude/skills && cp -r /tmp/convexskills/skills/convex-agents ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/waynesutton/convexskills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r convexskills/skills/convex-agents ~/.claude/skills/ - Confirm
~/.claude/skills/convex-agents/SKILL.mdexists. - Restart Claude Code and try a prompt like "build an AI agent chat with Convex".
- Install the runtime dependencies in your project:
npm install @convex-dev/agent ai openai
View source on GitHub ↗License: Apache-2.0