trigger-dev
Trigger.dev dev plugin for Agents Store. Comprehensive development knowledge for building background tasks, AI agent workflows, and durable execution on self-hosted Trigger.dev v4 (baseline server 4.4.4; newer features are marked with the server version they need) — SDK patterns, CLI recipes, deployment, full 41-tool MCP reference, TRQL queries and dashboards, managed prompts, chat agents, dev-server control, realtime API, and troubleshooting.
v1.5.7Updated
- trigger.dev
- trigger-dev
- dev
- agents-store
- background-jobs
- task-queue
- self-hosted
- durable-execution
- ai-agents
- trql
- managed-prompts
- observability
- chat-agents
Install
Pick your agent for the steps.
Install on Claude Code
1.Add the marketplace
/plugin marketplace add Agents-Store/claude-plugins2.Install the plugin
/plugin install trigger-dev@agents-store-claude-pluginsType it inside Claude Code.
Install on GitHub Copilot CLI
1.Add the marketplace
copilot plugin marketplace add Agents-Store/claude-plugins2.Install the plugin
copilot plugin install trigger-dev@agents-store-claude-plugins
GitHub Copilot CLI does not receive: commands, agents.
Install on Cursor
1.Manual install
Cursor has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Cursor reads plugins from.
Cursor’s plugin documentation now lives at docs.grok.com (cursor.com/docs/plugins redirects there). Plugins come from its marketplace, a team marketplace or a local folder.
Install on Codex
1.Add the marketplace
codex plugin marketplace add Agents-Store/codex-plugins2.Install the plugin
codex plugin add trigger-dev@agents-store-codex-plugins
Codex does not receive: commands, agents.
Install on Gemini CLI
1.Clone the mirror
git clone https://github.com/Agents-Store/gemini-extensions2.Install the plugin
gemini extensions link ./gemini-extensions/trigger-devRun it from the folder you cloned into.
Consumer access to Gemini CLI ended on 2026-06-18. This target serves enterprise Gemini Code Assist; Antigravity is the consumer successor.
Install on Antigravity
1.Clone the mirror
git clone https://github.com/Agents-Store/antigravity-skills2.Install the plugin
agy plugin install ./antigravity-skills/trigger-devRun it from the folder you cloned into.
Antigravity does not receive: commands.
Install on Kimi Code
1.Clone the mirror
git clone https://github.com/Agents-Store/kimi-plugins2.Install the plugin
/plugins install ./kimi-plugins/trigger-devRun it from the folder you cloned into, and type it inside Kimi Code.
Kimi Code does not receive: commands, agents, hooks, MCP servers.
Install on Devin
1.Install the plugin
devin plugins install Agents-Store/devin-plugins#trigger-dev
Devin does not receive: commands, agents, hooks, MCP servers.
Install on Hermes Agent
1.Install the plugin
hermes plugins install Agents-Store/hermes-plugins/trigger-dev
Hermes Agent does not receive: commands, agents, hooks, MCP servers.
Install on OpenCode
1.Manual install
OpenCode has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place OpenCode reads plugins from.
OpenCode does not receive: hooks.
Install on Pi
1.Manual install
Pi has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Pi reads plugins from.
Pi does not receive: commands, agents, hooks, MCP servers.
Install on OpenClaw
1.Clone the mirror
git clone https://github.com/Agents-Store/openclaw-generated-plugins2.Install the plugin
openclaw plugins install ./openclaw-generated-plugins/trigger-devRun it from the folder you cloned into.
OpenClaw does not receive: commands, agents, hooks, MCP servers.
Install on Agent Plugins 1.0
1.Manual install
Agent Plugins 1.0 has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Agent Plugins 1.0 reads plugins from.
Agent Plugins 1.0 does not receive: commands, agents, hooks.
What is inside
Skills (14)
- ai-agent-patterns
Build AI agent workflows on Trigger.dev — prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer, and human-in-the-loop. Use when the user asks to "build an AI agent with trigger.dev", "chain LLM calls", "parallelize AI tasks", "create an orchestrator", "add human approval to workflow", or needs patterns for LLM-powered durable execution.
- ai-chat-agents
Build durable AI chat agents on Trigger.dev with chat.agent, sessions and the useTriggerChatTransport React transport (requires server 4.5.0 or newer and AI SDK 5+). Use when the user asks about "chat.agent", "trigger.dev chat agent", "AI chat on trigger.dev", "useTriggerChatTransport", "trigger.dev sessions", "start_agent_chat", "human in the loop chat", or migrating a streamText route to Trigger.dev.
- cli-recipes
Trigger.dev CLI commands for development, deployment, MCP setup, agent skills, env vars, runs and project management. Use when the user asks about "trigger.dev CLI", "npx trigger.dev", "trigger.dev dev server", "trigger.dev deploy command", "trigger.dev mcp install", "trigger.dev mcp readonly", "trigger.dev skills", "trigger.dev profiles", or needs ready-to-use CLI commands.
- config-and-build
Configure Trigger.dev projects with trigger.config.ts, add build extensions for Prisma, Playwright, FFmpeg, Python, or customize deployment settings. Use when the user asks to "configure trigger.config.ts", "add Prisma to trigger.dev", "set up build extensions", "add FFmpeg to tasks", "configure Python in trigger.dev", or needs to customize project configuration.
- deployment
Deploy Trigger.dev tasks to staging, production, or preview environments. Use when the user asks to "deploy trigger.dev tasks", "set up CI/CD for trigger.dev", "deploy to production", "deploy self-hosted trigger", "manage environments", or needs deployment workflows and self-hosted infrastructure guidance.
- examples
Trigger.dev code examples, end-to-end workflow templates, MCP tool usage patterns, and scenario walkthroughs. Use when the user asks for "trigger.dev examples", "task templates", "MCP tool patterns", "trigger.dev workflow examples", or needs reference implementations.
- managed-prompts
Define, version and override Trigger.dev managed prompts — prompts.define() in code, resolve() at runtime, and MCP tools to list, inspect, promote code versions, create dashboard overrides, hotfix, and revert. Use when the user asks about "trigger.dev prompt", "managed prompts", "prompts.define", "prompt version", "prompt override", "hotfix prompt", "promote prompt version", "list prompts", or "revert prompt override".
- mcp-patterns
Trigger.dev MCP tools reference — all 41 tools, parameters, usage patterns, and common workflows (CLI 4.7.x). Use when the user asks about "trigger.dev MCP tools", "which trigger.dev tools are available", "how to use trigger.dev MCP", "trigger task via MCP", "list runs MCP", "profile switching", "TRQL queries from MCP", "dev server control", "agent chat via MCP", "mcp readonly", or "managed prompts overrides".
- observability
Query Trigger.dev data with TRQL, build dashboards, and inspect automatically-tracked LLM metrics. Use when the user asks about "trigger.dev query", "TRQL", "trigger.dev dashboards", "LLM metrics", "llm_metrics table", "how many runs failed this week", "cost per task", "query runs table", "span details", or "metrics table".
- realtime
Subscribe to Trigger.dev task runs in real-time from frontend and backend. Use when the user asks to "show task progress in UI", "stream AI responses", "use trigger.dev React hooks", "subscribe to runs", "build a progress indicator", "use useRealtimeRun", or needs live task status in a React application.
- scheduled-tasks
Schedule Trigger.dev tasks with cron — declarative schedules defined on schedules.task, imperative per-user schedules created through the SDK or API, timezones, spreading windows, retries and idempotency of scheduled runs, testing, and why a schedule did not fire. Use when the user asks to "schedule a trigger.dev task", "run a task on a cron", "create a schedule", "dynamic or per-user schedules", "schedules:attach", "attach a schedule to production", "my schedule did not run", or "my cron runs a few minutes late".
- setup
Set up Trigger.dev in a project, connect to a self-hosted instance, verify MCP connection, authenticate the CLI, or configure dev/staging/production environments. Use when the user asks to "set up trigger.dev", "init trigger project", "connect to self-hosted trigger", "verify trigger connection", "install trigger.dev", or "configure trigger environments".
- task-development
Write Trigger.dev tasks, configure retries, queues, concurrency, waits, metadata, tags, debouncing, idempotency, and use the @trigger.dev/sdk. Use when the user asks to "write a trigger.dev task", "create a background job", "add retries to task", "set up a task queue", "use triggerAndWait", "schedule a cron job", or needs SDK code patterns for Trigger.dev.
- troubleshoot
Diagnose and fix Trigger.dev errors, failed runs, deployment issues, and self-hosted problems. Use when the user encounters "trigger.dev not working", "task keeps failing", "deploy failed", "runs stuck", "self-hosted issues", "trigger.dev connection error", or needs to debug Trigger.dev v4.
Commands (4)
- create-task
Create a new Trigger.dev task file
- deploy
Deploy Trigger.dev tasks to an environment
- dev
Start the Trigger.dev dev server
- init
Initialize Trigger.dev in the current project
Agents (1)
- trigger-developer
Use this agent when the user needs help building with Trigger.dev v4 — writing background tasks, debugging failed runs, designing AI agent workflows, deploying to self-hosted instances, or working with the Trigger.dev SDK/CLI/MCP. <example> Context: User is writing a new background task user: "Help me write a Trigger.dev task that processes uploaded images with FFmpeg and stores results in S3" assistant: "I'll use the trigger-developer agent to build the image processing task." <commentary> Developer needs help writing a Trigger.dev task with specific integrations. </commentary> </example> <example> Context: User is debugging a failed run user: "My trigger.dev task keeps crashing with OOM after processing large files" assistant: "I'll use the trigger-developer agent to diagnose the crash and fix it." <commentary> Developer is debugging task failures — agent can analyze error patterns and suggest machine preset changes. </commentary> </example> <example> Context: User wants to design an AI agent workflow user: "I need a pipeline that scrapes 100 URLs, processes each with AI, and aggregates results" assistant: "I'll use the trigger-developer agent to design the orchestrator-worker pattern." <commentary> Developer needs architectural guidance for a complex parallelized workflow. </commentary> </example>
README
Trigger.dev development plugin for Agents Store. Comprehensive knowledge for developers building background tasks, AI agent workflows, and durable execution on self-hosted Trigger.dev v4.
Skills
| Skill | Description |
|---|---|
| setup | Project initialization (incl. non-interactive init --yes), CLI authentication, self-hosted verification, MCP install and mcp --readonly, agent skills |
| task-development | Writing tasks — retries, queues, concurrency (incl. the concurrency option, server ≥ 4.7.0), wait tokens, TTL, metadata, tags, Zod schemas, global hooks; starting runs from a Next.js route handler or Server Action, batches, waiting for a result outside a task |
| scheduled-tasks | Declarative (schedules.task + cron, no attach step) and per-user imperative schedules, timezones, the spread window (server ≥ 4.6.0), ttl, idempotent scheduled runs, testing, why a schedule did not fire |
| config-and-build | trigger.config.ts (required maxDuration), build extensions (Prisma with mode, Playwright, FFmpeg, Python), TTL defaults |
| ai-agent-patterns | Prompt chaining, routing, parallelization, orchestrator-workers, evaluator, task-backed AI tools (AI SDK v5+) |
| ai-chat-agents | chat.agent, sessions, useTriggerChatTransport — durable AI chat (server ≥ 4.5.0) |
| realtime | React hooks, streaming AI responses, wait tokens, live dashboards; handing a run token to a Next.js browser against a self-hosted server (baseURL, token lifetime, refreshAccessToken) |
| deployment | Deploy to staging/prod/preview, CI/CD with a pinned CLI, version skew protection, self-hosted Docker (ClickHouse, s2, generated secrets) and Helm |
| cli-recipes | CLI commands — dev server, deploy, profiles, env vars, runs, reports, install-mcp, mcp, agent skills |
| mcp-patterns | All 41 MCP tools across 13 categories — tasks, runs, deploys, profiles, query/analytics, reports, dev server, managed prompts, agent chat, session channels, feedback; REST Management API |
| observability | TRQL queries (runs/metrics/llm_metrics), built-in + custom dashboards, automatic LLM cost tracking, span details |
| managed-prompts | prompts.define() and resolve(), prompt versioning — promote code versions, create/update/remove dashboard overrides, reactivate historical versions |
| troubleshoot | Common errors, self-hosted diagnostics, Docker debugging, TRQL limits |
| examples | End-to-end scenarios: webhook processor, AI pipeline, cron data sync |
Agent
trigger-developer — Development specialist agent for building with Trigger.dev. Helps write tasks, debug runs, design workflows, configure builds, and deploy to environments.
Commands
| Command | Description |
|---|---|
/trigger-dev:init | Initialize Trigger.dev in the current project |
/trigger-dev:dev | Start the dev server |
/trigger-dev:deploy | Deploy tasks to an environment |
/trigger-dev:create-task | Create a new task file from template |
Type
Technology Plugin (dev) — No .mcp.json. This plugin provides knowledge about Trigger.dev, not the MCP connection itself.
Prerequisites
- Node.js 18.20+ and TypeScript 5.0.4+
- Trigger.dev MCP server configured separately (via
npx trigger.dev@latest install-mcp, or by hand) - For a read-only agent run the server as
trigger.dev mcp --readonly(the installer has no such flag) - Self-hosted Trigger.dev v4.4.4+ instance running (webapp + supervisor). 4.4.4 is the baseline; features from 4.5-4.7 are marked "requires server ≥ 4.x.y" in the skills (chat agents and managed prompts in the SDK: 4.5.0;
concurrencyoption: 4.7.0). Keep the CLI and@trigger.dev/*packages at the server's version
Environment Variables
| Variable | Description | Format |
|---|---|---|
TRIGGER_DEV_SECRET_KEY | Dev environment secret key | tr_dev_xxx |
TRIGGER_STAGE_SECRET_KEY | Staging environment secret key | tr_dev_xxx (different key) |
TRIGGER_PROD_SECRET_KEY | Production environment secret key | tr_prod_xxx |
TRIGGER_SECRET_KEY | The variable the SDK reads: set it to the key of the environment you are targeting (for example the value of TRIGGER_DEV_SECRET_KEY) | tr_dev_xxx / tr_prod_xxx |
TRIGGER_API_URL | Self-hosted instance URL | https://trigger.example.com |
TRIGGER_PROJECT_REF | Project ref from dashboard | proj_xxxxx |
TRIGGER_ACCESS_TOKEN | CLI token for CI/CD: a "Deploy only" environment API key (preferred) or a personal access token | tr_pat_xxx |
Each environment has its own secret key. The three per-environment variables hold all keys side by side; TRIGGER_SECRET_KEY (what the SDK reads by default) is set to the one for the current environment, or pass the appropriate key to the SDK via configure(). Project ref goes in trigger.config.ts (project field) or use TRIGGER_PROJECT_REF env var.
Key Technologies
- Platform: Trigger.dev v4 self-hosted (Docker or Helm), baseline server 4.4.4; reference CLI/SDK 4.7.2
- SDK:
@trigger.dev/sdk(import from@trigger.dev/sdk) - CLI:
npx trigger.dev@latest(dev, deploy, promote, env, runs, projects, report, mcp, install-mcp, skills, whoami, list-profiles, switch, update) - MCP: Official MCP server — 41 tools;
--readonlyand--dev-onlyare flags oftrigger.dev mcp; install it vianpx trigger.dev@latest install-mcp - React:
@trigger.dev/react-hooks(useRealtimeRun, useRealtimeStream) - Agent skills:
npx trigger.dev@latest skills(5 official skills;install-rulesis an alias) ornpx skills add triggerdotdev/skills - TRQL: SQL-style query language over ClickHouse — tables
runs,metrics,llm_metrics
Sources
Content built from official Trigger.dev documentation plus MCP tool-schema introspection:
- https://trigger.dev/docs — Official documentation
- https://trigger.dev/docs/skills — Official AI skills
- https://trigger.dev/docs/mcp-introduction — MCP install (the page attributes
--readonlytoinstall-mcp; the CLI help shows it only onmcp) - https://trigger.dev/docs/mcp-tools — MCP tools reference (documents fewer tools than the 41 the server exposes; the plugin reference covers all 41)
- https://trigger.dev/docs/observability/query — TRQL
- https://trigger.dev/docs/observability/dashboards — Dashboards
- https://trigger.dev/changelog/v4-4-4 — 11 new MCP tools, TTL defaults, LLM cost tracking
- https://trigger.dev/docs/skills and https://trigger.dev/docs/mcp-agent-rules — Agent skills (formerly agent rules)
- https://trigger.dev/docs/building-with-ai — AI integration guide
- https://trigger.dev/docs/self-hosting/docker and
/self-hosting/kubernetes— Self-hosting guides - https://trigger.dev/docs/ai-chat/overview — Chat agents and sessions
- https://trigger.dev/docs/ai/prompts — Managed prompts SDK
- https://trigger.dev/docs/concurrency — Concurrency and named limits
- https://github.com/triggerdotdev/skills — Official skills repository
- MCP tool schemas — introspected from
npx trigger.dev@latest mcp(41 tools) @trigger.dev/sdk,trigger.devand@trigger.dev/build4.7.2 packages (docs ship inside@trigger.dev/sdk)
Source
- Source on GitHub
- Mirror: Agents-Store/claude-plugins
- Mirror: Agents-Store/cursor-plugins
- Mirror: Agents-Store/codex-plugins
- Mirror: Agents-Store/gemini-extensions
- Mirror: Agents-Store/antigravity-skills
- Mirror: Agents-Store/kimi-plugins
- Mirror: Agents-Store/devin-plugins
- Mirror: Agents-Store/hermes-plugins
- Mirror: Agents-Store/opencode-plugins
- Mirror: Agents-Store/pi-extensions
- Mirror: Agents-Store/openclaw-generated-plugins
- Mirror: Agents-Store/agentplugins