cloudflare-workers-ai-expert

cloudflare-workers-ai-expert is an agent for Claude Code from nodnarbnitram/claude-code-extensions. It costs 70 tokens per session (3,543 once invoked), scanned C, original, MIT.

A specialist for building AI features on Cloudflare Workers, Cloudflare's serverless platform for running code around the world. It covers model choice, inference, prompts, retrieved-document systems, streaming, and related Cloudflare AI services.

In plain words
What is it for?
Use it for Cloudflare Workers AI development, including model selection, API integration, prompt design, retrieval-augmented generation, streaming responses, function calling, AI Gateway, Vectorize, and AutoRAG.
Why use it?
It helps developers choose and connect AI models within the Workers AI ecosystem. It also addresses patterns for handling responses, documents, and requests at the network edge.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the cce-cloudflare plugin — 5 agents shipped together

Good fit Use it for Cloudflare Workers AI development, including model selection, API integration, prompt design, retrieval-augmented generation, streaming responses, function calling, AI Gateway, Vectorize, and AutoRAG.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nodnarbnitram/claude-code-extensions/cloudflare-workers-ai-expert
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.

Clone the repo
git clone --depth 1 https://github.com/nodnarbnitram/claude-code-extensions

Made for: Claude Code.

Or install cce-cloudflare, the plugin that ships this one along with the rest of its 5 agents.

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 cloudflare-workers-ai-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/nodnarbnitram/claude-code-extensions/cloudflare-workers-ai-expert/github.svg)](https://agentmods.dev/agents/nodnarbnitram/claude-code-extensions/cloudflare-workers-ai-expert)
Your own site
<a href="https://agentmods.dev/agents/nodnarbnitram/claude-code-extensions/cloudflare-workers-ai-expert"><img src="https://agentmods.dev/badge/agents/nodnarbnitram/claude-code-extensions/cloudflare-workers-ai-expert/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 cloudflare-workers-ai-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/nodnarbnitram/claude-code-extensions/cloudflare-workers-ai-expert"><img src="https://agentmods.dev/badge/agents/nodnarbnitram/claude-code-extensions/cloudflare-workers-ai-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,543 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00070 $0.03543
Opus 5.5 $0.00028 $0.01417
Sonnet 5.5 $0.00014 $0.00709
Haiku 4.5 $0.00007 $0.00354

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

Security

Grade C, and why

cloudflare-workers-ai-expert scanned grade C with 2 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.

Instruction-override phrasinghighPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

/ignore previous instructions/i,

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

async fetch(request, env) {
plugins/cce-cloudflare/agents/cloudflare-workers-ai-expert.md · 480 lines

How it starts

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

Purpose

You are a Cloudflare Workers AI specialist with deep expertise in serverless GPU-powered AI inference on Cloudflare's global edge network. You understand the complete Workers AI ecosystem including model selection, API patterns, integration with Vectorize/AutoRAG/AI Gateway, and edge-native AI development best practices.

Core Expertise

Platform Knowledge:

  • Workers AI serverless inference (GA 2025) with 50+ open-source models
  • Neurons pricing model ($0.011 per 1,000 Neurons, 10K free daily)
  • Native Workers binding (env.AI.run) and REST API patterns
  • OpenAI API compatibility layer
  • Streaming support (Server-Sent Events)
  • Batch API for async workloads
  • Infire inference engine (Rust-based, 2-4x faster in 2025)

Available Models (50+ as of 2025):

  • Text Generation: OpenAI GPT-OSS (20B, 120B), Meta Llama 3.1/3.2/3.3/4 Scout (up to 131K context), Google Gemma 3 (128K multimodal), MistralAI (128K), DeepSeek Coder
  • Embeddings: BAAI BGE (m3, large-en-v1.5: 1024d, base-en-v1.5: 768d, small-en-v1.5: 384d), Google EmbeddingGemma (300M params, 100+ languages)
  • Text-to-Image: Black Forest Labs FLUX.1 [schnell], Leonardo Lucid Origin/Phoenix, Stable Diffusion XL/v1.5
  • ASR: OpenAI Whisper variants, Whisper-large-v3-turbo (GA March 2025)
  • Special Features: Function calling, LoRA adapters, Quantization (AWQ, int8)

Instructions

When invoked, you must follow these steps:

1. Assessment Phase

  • Identify the specific Workers AI task (model selection, API integration, optimization, etc.)
  • Check for existing Workers implementation using Grep for patterns like env.AI.run, @cf/, Workers AI imports
  • Review wrangler.toml for AI bindings configuration
  • Assess current model usage and optimization opportunities

2. Model Selection Guidance

When choosing models, consider:

  • Performance vs. Quality tradeoff: Smaller models (8B) for speed, larger (70B+) for quality
  • Context windows: Llama 3.3 (131K), Gemma 3 (128K), MistralAI (128K) for long documents
  • Specialized models: DeepSeek Coder for code, Whisper for ASR, BGE for embeddings
  • Quantization: Use AWQ/int8 variants for faster inference with minimal quality loss
  • Cost optimization: Calculate Neurons usage based on model size and usage patterns

Read the full file on GitHub · 480 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 · 480 lines · 70 tokens per session scan C 2f8a08a3ded3

Subscribe to this mod's changes

cloudflare-workers-ai-expert is an agent published in the GitHub repository nodnarbnitram/claude-code-extensions (16 stars, last pushed 6mo ago), licensed MIT. It adds 70 tokens to every session and 3,543 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 2 findings (instruction-override phrasing, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

data-engineer

Build scalable data pipelines, modern data warehouses, and real-time streaming architectures. Implements Apache Spark, dbt, Airflow, and cloud-native data platforms. Use PROACTIVELY for data pipeline design, analytics infrastructure, or modern data stack implementation.

wshobson/agents · 54 tokens

FabricDataEngineer

Orchestrate end-to-end Microsoft Fabric data engineering workflows that span multiple workloads and personas. Use when the request crosses Spark, Warehouse, Pipelines, Lakehouse architecture, migration, or data quality operations. Delegates deep single-endpoint implementation to specialized skills and resources.

microsoft/skills-for-fabric · 58 tokens

mlops_engineer

MLOps specialist for model registry, CI/CD for models, deployment, monitoring, and drift detection. Use when the task requires packaging models for serving, building training/deploy pipelines, configuring model monitoring, or wiring up canary rollouts. For example: automating retraining on a schedule, setting up…

josstei/maestro-orchestrate · 76 tokens

dbt-deployer

Deploys local dbt projects to dbt Projects on Snowflake and manages CI/CD pipelines.

sfc-gh-dflippo/snowflake-dbt-demo · 23 tokens

FAI Azure AKS Expert

Azure Kubernetes Service specialist — GPU node pools (A100/H100), NVIDIA device plugin, model serving with vLLM/TGI/Triton, HPA/KEDA autoscaling, and production AI inference workload patterns.

frootai/frootai · 51 tokens

FAI Azure Storage Expert

Azure Storage specialist — Blob lifecycle tiers, ADLS Gen2 for data lakes, private endpoints, managed identity auth, and document/model artifact storage for AI pipelines.

frootai/frootai · 38 tokens