@agnost/agent-mode SDK Skill

Instrument OpenAI, Vercel AI, and Mastra SDK calls with OTLP export.

Updated May 21, 2026
One-click install
npx skills add https://github.com/paras-verma7454/agnost-sdk --skill agnost-agent-mode-sdk-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: @agnost/agent-mode SDK Skill
Source: https://github.com/paras-verma7454/agnost-sdk/tree/main
Command: npx skills add https://github.com/paras-verma7454/agnost-sdk --skill agnost-agent-mode-sdk-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Instrument AI agents and their SDK interactions with observable traces by standardizing identity propagation and OTLP export across OpenAI, Vercel AI, and Mastra integrations.

Core Features & Use Cases

  • Single-file bootstrap: Paste a minimal setup file to initialize telemetry and optional adapters.
  • Identity propagation: Use setAgnostContext() and agent.track() to attach user and session data to traces.
  • Framework adapters: OpenAI instrumentation, Vercel telemetry, and Mastra exporter for OTLP export.
  • Extensible architecture: Works with OpenTelemetry backends and a broad set of adapters without forcing a backend.

Quick Start

Paste the agnost.ts setup into your project and wrap AI SDK calls with agent.track().

Frequently Asked Questions about @agnost/agent-mode SDK Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I instrument AI agents with OpenTelemetry in Node.js?

To instrument AI agents with OpenTelemetry in Node.js, you can use a single-file bootstrap setup to initialize telemetry and wrap your AI SDK calls with tracking functions. This coordinates identity propagation and OTLP export across supported frameworks.

How does identity propagation work for AI SDK telemetry traces?

Identity propagation for AI SDK telemetry traces works by using setAgnostContext() and agent.track() to attach user and session data to traces. This standardizes identity propagation across OpenAI, Vercel AI, and Mastra integrations using AsyncLocalStorage and OpenInference.

Can I use OpenTelemetry instrumentation with Vercel AI SDK and Mastra?

Yes, you can use OpenTelemetry instrumentation with Vercel AI SDK and Mastra. The Skill provides framework adapters like instrumentVercelAI and createMastraExporter to enable OTLP export, and gracefully handles scenarios when optional adapters are absent.

Does OpenTelemetry AI agent instrumentation work in serverless and edge deployments?

OpenTelemetry AI agent instrumentation works in serverless and edge deployments, including Express routes and serverless functions. It is applicable in Node.js environments using supported AI SDKs across these deployment targets.

Do I need a specific OpenTelemetry backend to export AI agent traces?

You do not need a specific OpenTelemetry backend to export AI agent traces. The architecture is extensible and works with OpenTelemetry backends and a broad set of adapters without forcing a specific backend choice.

What are the limitations of instrumenting AI SDK calls for telemetry?

Limitations include graceful handling when optional framework adapters like OpenAI, Vercel AI, or Mastra are absent, meaning full telemetry requires those adapters. It is also restricted to Node.js environments using the supported AI SDKs.