convex-agent

convex-agent is a skill for Claude Code from PolarCoding85/convex-agent-skillz. It costs 47 tokens per session (1,736 once invoked), scanned A, original, MIT.

A Convex component for building AI agents with saved conversation threads, tool calls, live response streaming, and durable workflows. Convex is a backend platform that stores data and runs server-side functions.

In plain words
What is it for?
Use it to build chat interfaces, AI assistants, multi-agent workflows, retrieval-augmented generation systems, and other features that use language models.
Why use it?
It provides the building blocks needed to keep message history and connect an AI model to application actions. This avoids assembling those pieces separately for chat, assistants, retrieval-based answers, or agent teams.

Skill for Claude Code

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

Good fit Use it to build chat interfaces, AI assistants, multi-agent workflows, retrieval-augmented generation systems, and other features that use language models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/polarcoding85/convex-agent-skillz/convex-agent-skill
Install

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.

Any agent
npx skills add PolarCoding85/convex-agent-skillz --skill convex-agent-skill
Clone the repo
git clone --depth 1 https://github.com/PolarCoding85/convex-agent-skillz

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-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/polarcoding85/convex-agent-skillz/convex-agent-skill/github.svg)](https://agentmods.dev/skills/polarcoding85/convex-agent-skillz/convex-agent-skill)
Your own site
<a href="https://agentmods.dev/skills/polarcoding85/convex-agent-skillz/convex-agent-skill"><img src="https://agentmods.dev/badge/skills/polarcoding85/convex-agent-skillz/convex-agent-skill/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-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/polarcoding85/convex-agent-skillz/convex-agent-skill"><img src="https://agentmods.dev/badge/skills/polarcoding85/convex-agent-skillz/convex-agent-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,736 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.00047 $0.01736
Opus 5.5 $0.00019 $0.00694
Sonnet 5.5 $0.00009 $0.00347
Haiku 4.5 $0.00005 $0.00174

Measured 1mo ago against content hash 6bd5d7682358, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

convex-agent 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 1mo 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/skills/convex-agent-skill/SKILL.md · 240 lines

How it starts

The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Convex Agent Component

Build AI agents with persistent message history, tool calling, real-time streaming, and durable workflows.

Installation

npm install @convex-dev/agent
// convex/convex.config.ts
import { defineApp } from 'convex/server';
import agent from '@convex-dev/agent/convex.config';

const app = defineApp();
app.use(agent);
export default app;

Run npx convex dev to generate component code before defining agents.

Core Concepts

Agent Definition

// convex/agents.ts
import { Agent } from '@convex-dev/agent';
import { openai } from '@ai-sdk/openai';
import { components } from './_generated/api';

const supportAgent = new Agent(components.agent, {
  name: 'Support Agent',
  languageModel: openai.chat('gpt-4o-mini'),
  textEmbeddingModel: openai.embedding('text-embedding-3-small'), // For vector search
  instructions: 'You are a helpful support assistant.',
  tools: { lookupAccount, createTicket },
  stopWhen: stepCountIs(10) // Or use maxSteps: 10
});

Basic Usage (Two Approaches)

Approach 1: Direct generation (simpler)

import { createThread } from '@convex-dev/agent';

export const chat = action({
  args: { prompt: v.string() },
  handler: async (ctx, { prompt }) => {
    const threadId = await createThread(ctx, components.agent);
    const result = await agent.generateText(ctx, { threadId }, { prompt });
    return result.text;
  }
});

Approach 2: Thread object (more features)

export const chat = action({
  args: { prompt: v.string() },
  handler: async (ctx, { prompt }) => {
    const { threadId, thread } = await agent.createThread(ctx);
    const result = await thread.generateText({ prompt });
    return { threadId, text: result.text };
  }
});

Continue Existing Thread

export const continueChat = action({
  args: { threadId: v.string(), prompt: v.string() },
  handler: async (ctx, { threadId, prompt }) => {
    // Message history included automatically
    const result = await agent.generateText(ctx, { threadId }, { prompt });
    return result.text;
  }
});

Read the full file on GitHub · 240 lines

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. 1mo ago First seen · 240 lines · 47 tokens per session scan A 6bd5d7682358

Subscribe to this mod's changes

convex-agent is a skill published in the GitHub repository PolarCoding85/convex-agent-skillz (16 stars, last pushed 8mo ago), licensed MIT. It adds 47 tokens to every session and 1,736 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-08-30.

Related

Other skills, from other repositories

mcp-server

Configure, launch, validate, and troubleshoot CCAM's comprehensive MCP server for Claude Code, Codex, and other MCP hosts. Use when installing dependencies, building the server, selecting stdio, HTTP, or REPL transport, setting mutation/destructive policy, supplying dashboard authentication, or checking complete tool…

hoangsonww/Claude-Code-Agent-Monitor · 66 tokens

endpoint-probe

Probes each major Agent Monitor API route — /api/stats, /api/analytics, /api/sessions, /api/pricing/cost, /api/workflows/runs, /api/cc-config/overview — and reports each one's HTTP status, latency, and response shape, flagging which are reachable. Use to verify a dashboard install is wired up correctly.

hoangsonww/Claude-Code-Agent-Monitor · 80 tokens

laravel-architecture

Use when structuring a Laravel project, creating services/repositories/actions, implementing dependency injection, or organizing code layers.

fusengine/agents · 28 tokens

fusecore

Use when creating modules, understanding FuseCore structure, or implementing features in a FuseCore modular-monolith Laravel project.

fusengine/agents · 27 tokens

laravel-api

Use when creating API endpoints, transforming responses with API Resources, or handling API authentication, rate limiting, or versioning.

fusengine/agents · 28 tokens

laravel-attributes

Use when migrating Eloquent models, Jobs, Console commands, Controllers, API Resources, Validation, Factories or Seeders to Laravel 13 PHP attributes.

fusengine/agents · 36 tokens