Skip to main content
skill CX Codex

trigger-chat-agent-advanced — Claude Code skill: what it does

trigger-chat-agent-advanced — a skill for the operational layer of Trigger.dev chat.agent: raw sessions, durable sub-agents, background injection, fast starts, and context compaction.

no license 265 installs ★ 35 updated 2026-11-01

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add triggerdotdev/skills --skill trigger-chat-agent-advanced -a claude-code
Open on GitHub

What trigger-chat-agent-advanced does

Gives agents access to the primitives that power chat.agent: the sessions API (durable, bi-directional I/O channels keyed on externalId), server-side AgentChat for running agents from tasks or webhooks, and chat.forwardSubAgent for streaming sub-agent replies to the frontend. Handles durable sub-agents as tools (AgentChat inside tool()), background injection (chat.defer, chat.inject), and fast starts via preload and Head Start from @trigger.dev/sdk/chat-server.

Covers context compaction when hitting limits, recovery after OOM, testing with mockChatAgent, and version upgrades. For the standard chat.agent({...}) definition and frontend binding via useTriggerChatTransport, there is a separate trigger-authoring-chat-agent skill.

What it helps with

  • run an agent from a server task or webhook with AgentChat
  • delegate work to a durable sub-agent and stream its reply
  • run background work alongside streaming with chat.defer
  • recover a session after OOM or context compaction
  • test an agent offline with mockChatAgent

Example prompts for the agent

  • Start agent my-chat with message "Review PR #42" using AgentChat
  • Add research-agent as a tool and stream its reply to the frontend
  • Set up preload for fast agent start on user signal

How to install trigger-chat-agent-advanced

1Skills CLI (Vercel)

npx skills add triggerdotdev/skills --skill trigger-chat-agent-advanced -a claude-code

2Manually: put the files in place

~/.claude/skills/trigger-chat-agent-advanced/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/trigger-chat-agent-advanced/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about trigger-chat-agent-advanced

How to install trigger-chat-agent-advanced in Claude Code?

Run npx skills add triggerdotdev/skills --skill trigger-chat-agent-advanced -a claude-code. The skill will appear in ~/.claude/skills/trigger-chat-agent-advanced/SKILL.md.

What does trigger-chat-agent-advanced do?

Provides access to the operational layer of Trigger.dev: raw sessions, server-side agent execution, durable sub-agents, background injection, context compaction, and recovery after failures.

What is the difference between trigger-chat-agent-advanced and trigger-authoring-chat-agent?

This skill covers primitives under the agent: raw sessions, sub-agents, background tasks. For standard agent definition and frontend binding, use trigger-authoring-chat-agent.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set6

Project sponsors

Companies that keep this analytics open