> **trigger-chat-agent-advanced** — skill 2 of 6 in [triggerdotdev/skills](https://skillsdocs.com/triggerdotdev/skills).
>
> Book (all skills, one file): https://skillsdocs.com/triggerdotdev/skills.md
> Machine manifest: https://skillsdocs.com/triggerdotdev/skills/.well-known/agent-skills/index.json
> Install the book: `npx skills add triggerdotdev/skills`
> Upstream: https://github.com/triggerdotdev/skills/blob/main/trigger-chat-agent-advanced/SKILL.md @ `main`
> Raw bytes, no header: https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-chat-agent-advanced/SKILL.md
> Base for relative paths: https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-chat-agent-advanced/
> Licence: No licence detected — all rights reserved by its authors
>
> Content © its authors. This skill's body is not served here; the links above are. Takedown: https://github.com/DreambaseAI/skillsdocs/issues/new?labels=takedown&title=Takedown+request

# trigger-chat-agent-advanced

Advanced and operational chat.agent capabilities for Trigger.dev, loaded on demand. Load this when working on the raw Sessions primitive (sessions / SessionHandle), a custom chat transport or the realtime wire protocol, durable sub-agents (AgentChat, chat.stream.writer), human-in-the-loop, steering, actions, background injection (chat.defer / chat.inject), fast starts (preload, Head Start via @trigger.dev/sdk/chat-server), context resilience (compaction, recovery boot, OOM, large payloads), chat.local run-scoped state, offline testing with mockChatAgent, or prerelease/version upgrades. For the everyday chat.agent({...}) definition and the useTriggerChatTransport happy path, use the trigger-authoring-chat-agent skill instead.

No licence could be detected for this skill at either the repository or the skill level, so its body is not reproduced here. Read it upstream:

https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-chat-agent-advanced/SKILL.md
