inngest-agents
БесплатноБез исполняемых скриптовНе проверенUse when building durable AI agents or agentic workflows with Inngest and AgentKit, including model calls, tool calls, multi-agent networks, human approval…
от Asymmetric-al★ 354 звезды на GitHubОб этом скилле
Inngest Agents
Use this skill when the user wants to build, migrate, or debug an AI agent, multi-step AI workflow, tool-calling loop, support agent, research agent, human-in-the-loop review flow, or realtime agent UI.
Inngest's AgentKit defines agents with createAgent; when an AgentKit run is
owned by an Inngest function, model calls use Inngest step.ai so they retry
and cache model results durably. Use the lower-level Inngest step primitives
around the agent for database reads/writes, tool side effects, waits,
approvals, realtime progress, and flow control.
Official references:
- AgentKit agents: https://agentkit.inngest.com/concepts/agents
createAgent: https://agentkit.inngest.com/reference/create-agent- AI inference and
step.ai: https://www.inngest.com/docs/features/inngest-functions/steps-workflows/step-ai-orchestration - Agent Evals: https://www.inngest.com/docs/learn/agent-evals
- AgentKit realtime hooks: https://www.inngest.com/changelog/2025-09-24-agentkit-use-agent
Copyable Example
When starting a durable support or tool-calling agent from scratch, use the
official inngest/inngest-codex-plugin companion example at
plugins/inngest/examples/durable-agent as the upstream reference. This repo
does not vendor Codex plugin examples; copy only the patterns needed for a
separate product integration change.
When to Use Inngest for Agents
Good fit:
- Agent can take longer than one HTTP request.
- Agent calls tools, APIs, databases, browsers, sandboxes, or MCP servers.
- Agent needs to survive deploys, crashes, serverless timeouts, or model/API failures.
- Agent may wait for human approval, external callbacks, scheduled follow-up, or user input.
- Agent progress should stream to a UI from the durable workflow.
- Model/provider calls need concurrency or throttle limits.
- Duplicate sends, charges, writes, or model calls would be costly.
Not usually worth it:
- One short, read-only model call with no side effects and no need for durable progress.
- UI-only autocomplete where losing the request is acceptable.
Architecture
Use this shape unless the repo already has a stronger established pattern:
- The HTTP/server action layer validates auth, stores the user's intent if
needed, emits an event with a stable
id, and returns quickly. - An Inngest function owns the agent run.
- Load state and external context inside
step.run. - Create AgentKit agents inside the function or import agent/network factories.
- Run model inference through AgentKit /
step.ai; wrap non-model tool side effects instep.run. - Use
step.waitForEventorstep.waitForSignalfor human approval and external callbacks. - Publish durable progress with native realtime.
- Add sessions and scores when the agent outcome needs to be evaluated later.
- Apply flow control at the function level for provider and tenant limits.
Basic AgentKit Function
Prefer a small, typed function first; add networks and extra tools after the single-agent path is proven.
import { createAgent, openai } from "@inngest/agent-kit";
import { inngest } from "@/inngest/client";
export const summarizeTicket = inngest.createFunction(
{
id: "summarize-ticket",
triggers: [{ event: "support/ticket.created" }],
concurrency: [{ key: "event.data.accountId", limit: 2 }],
},
async ({ event, step }) => {
const ticket = await step.run("load-ticket", () => {
return getTicket(event.data.ticketId);
});
const writer = createAgent({
name: "support-summary-writer",
system: "Write a concise support-ticket summary with next actions.",
model: openai({ model: "gpt-4o" }),
});
const { output } = await writer.run(JSON.stringify(ticket));
await step.run("save-summary", () => {
return saveTicketSummary(event.data.ticketId, output);
});
return { ticketId: event.data.ticketId };
},
);
Tool Calls
Tools can be defined with AgentKit, but agent-safe tools should still follow durability rules:
- Read-only tool calls can run as part of the agent when replaying is harmless.
- External side effects should be isolated with stable IDs and
step.runboundaries, or implemented as tool handlers that use the providedstep. - Tool outputs should be small enough for step state limits.
- Validate tool parameters with schemas; never trust model-provided arguments.
- Use tenant/user IDs from authenticated event data, not only from model text.
Tool side-effect checklist:
- What external state can this tool change?
- What idempotency key prevents duplicate writes?
- What should happen if the model calls the same tool twice?
- Is the output safe to store in function run state?
- Does the tool need provider-specific concurrency or throttle limits?
Human in the Loop
Use a durable wait instead of polling a database or keeping state in memory.
const approval = await step.waitForEvent("wait-for-approval", {
Установить inngest-agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл inngest-agents?
Use when building durable AI agents or agentic workflows with Inngest and AgentKit, including model calls, tool calls, multi-agent networks, human approval, realtime progress, provider rate limits, crash-safe execution, and Agent Evals handoff. Covers AgentKit, `step.ai`, `step.run`, `step.waitForEvent`, native realtime, and when to use lower-level Inngest primitives instead of an in-memory agent loop. Use `inngest-agent-evals` with this skill when the user wants scoring, sessions, experiments, deferred scorers, or outcome-based evaluation for the agent.
Как установить скилл inngest-agents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл inngest-agents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic