Cloudflare Agents is a framework for building persistent, stateful AI agents on Cloudflare Durable Objects, where each agent has its own state, storage, and lifecycle. Developers use it to create agents with real-time communication, scheduling, model calls, MCP, workflows, and other server-side capabilities. The catalogue entries provide agent, skill, MCP, and instruction components for this framework.
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 skills add cloudflare/agents --skill gardenergit clone --depth 1 https://github.com/cloudflare/agentsWrote 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/skills/cloudflare/agents/gardener)<a href="https://agentmods.dev/skills/cloudflare/agents/gardener"><img src="https://agentmods.dev/badge/skills/cloudflare/agents/gardener/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.
<a href="https://agentmods.dev/skills/cloudflare/agents/gardener"><img src="https://agentmods.dev/badge/skills/cloudflare/agents/gardener.svg" alt="Reviewed on agentmods" width="80" 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.00047 | $0.04526 |
| Opus 5.5 | $0.00019 | $0.01810 |
| Sonnet 5.5 | $0.00009 | $0.00905 |
| Haiku 4.5 | $0.00005 | $0.00453 |
Grade A, and why
gardener-tasks 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.
This is a copy
86% identical to gardener-tasks — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 300 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Gardener tasks
Gardener runs AI maintenance tasks on this repository from GitHub Actions. Each task is one Markdown file: YAML frontmatter says when it runs, what the model may read, and exactly which changes it may make; the body is the model's instructions. A planning job runs the model with only the declared tools and lets it plan only the declared effects. A separate job then applies that plan. Nothing outside the declaration is possible, whatever the instructions say.
Files
.gardener/
gardener.json project settings (release pin, optional "handle"); edit only "handle"
gardener.lock.json generated; never edit
SKILL.md this file; generated
tasks/<dir>/TASK.md one task per directory; the only files you write
.github/workflows/
gardener-<id>.yml generated, one per task; never edit
gardener-sync.yml generated (or the "syncWorkflow" name in gardener.json); never edit
Workflow
- Create
.gardener/tasks/<dir>/TASK.md. Start from the template below or an existing task. - Run
npx @scuffi/[email protected] generatefrom the repository root (or the repository's ownpackage.jsonscript, if it has one). Use this exact version: a different one produces files the pull request's Check tasks check rejects. - Fix every error
generateprints and read its warnings. Repeat until it succeeds. - Commit the
TASK.md,.gardener/gardener.lock.jsonand the.github/workflows/gardener-*.ymlchanges together. When they reach the default branch, the sync workflow enables the task.
To change a task, edit its TASK.md and run generate again. To remove one, delete its
directory and run generate. Never hand-edit generated files.
Template
---
schema: gardener.task/v1
id: bug-intake
name: Bug intake
description: Asks issue authors for missing reproduction details.
trigger:
event: github.issue.opened
labels-all: [bug]
tools:
- repository.list_files
- repository.read_file
effects:
- issue.comment.create
network:
default: deny
allow: []
deny: []
limits:
runtime-seconds: 300
max-turns: 12
max-tool-calls: 16
input-tokens: 60000
output-tokens: 16000
---
Read the issue and the code it mentions. If it is missing reproduction steps, expected behaviour or
a version, comment once (`issue.comment.create`) asking for exactly what is missing. Otherwise
change nothing. Then finish.
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- gardener.json 240 B
- gardener.lock.json 94 KB
- tasks/dependabot-merge/TASK.md 6.4 KB
- tasks/fix-blocked/TASK.md 1.2 KB
- tasks/fix-ready/TASK.md 983 B
- tasks/fix/TASK.md 4.0 KB
- tasks/mention-reply/TASK.md 7.4 KB
- tasks/opencode-upgrade/TASK.md 14 KB
- tasks/pi-upgrade/TASK.md 16 KB
- tasks/pr-review-fix/TASK.md 6.2 KB
- tasks/resolved-check/TASK.md 9.2 KB
- tasks/triage/TASK.md 4.5 KB
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 Changed 894a2b31ecef
- 26d ago Changed fd2e7af57eb1
- 1mo ago Changed · +8 lines 89932bbb8e8a
- 1mo ago Changed · +2 lines c862a0388093
- 1mo ago Changed 459062cf14b3
- 1mo ago Changed · +24 lines 29adbabef3df
- 1mo ago First seen · 266 lines · 47 tokens per session scan A 6475dc1e77bd
gardener-tasks is a skill published in the GitHub repository cloudflare/agents (6,185 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 4,526 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to gardener-tasks, differing in 0 lines, and is treated as a copy.
gardener-tasks compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gardener-taskscloudflare/agents | Skill | 6.2k | today | MIT | A | 47 | Claude Code, Codex |
| cloudflare-agents-sdkseaworld008/Commonly-used-high-value-skills | Skill | 75 | yesterday | MIT | A | 59 | Claude Code, Codex |
| teleportation-circleHmbown/Wizards-of-the-Ghosts | Skill | 115 | 7mo ago | CC0-1.0 | A | 46 | Claude Code, Codex |
| ci-maintenancepingdotgg/t3code | Skill | 84k | today | MIT | A | 36 | Claude Code, Codex |
| google-agents-cli-scaffoldgoogle/agents-cli | Skill | 6.5k | 5d ago | Apache-2.0 | A | 147 | Claude Code |
| cf-clicloudflare/skills | Skill | 3.5k | 4d ago | Apache-2.0 | A | 78 | Claude Code |
| workers-best-practicescloudflare/skills | Skill | 3.5k | 4d ago | Apache-2.0 | A | 25 | Claude Code |