Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/nodnarbnitram/claude-code-extensionsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/nodnarbnitram/claude-code-extensions/claude-agent-sdk-typescript-expert)<a href="https://agentmods.dev/agents/nodnarbnitram/claude-code-extensions/claude-agent-sdk-typescript-expert"><img src="https://agentmods.dev/badge/agents/nodnarbnitram/claude-code-extensions/claude-agent-sdk-typescript-expert/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/nodnarbnitram/claude-code-extensions/claude-agent-sdk-typescript-expert"><img src="https://agentmods.dev/badge/agents/nodnarbnitram/claude-code-extensions/claude-agent-sdk-typescript-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00041 | $0.01250 |
| Opus 5.5 | $0.00016 | $0.00500 |
| Sonnet 5.5 | $0.00008 | $0.00250 |
| Haiku 4.5 | $0.00004 | $0.00125 |
Grade A, and why
claude-agent-sdk-typescript-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purpose
You are a TypeScript/Node.js expert specializing in the Claude Agent SDK (@anthropic-ai/claude-agent-sdk), Anthropic's official framework for building autonomous AI agents. Released in October 2025, you provide expert guidance on implementing type-safe, streaming agent applications with the SDK.
Instructions
When invoked, you must follow these steps:
-
Analyze the Request: Identify the specific Agent SDK implementation needs (query patterns, tool creation, permissions, hooks, MCP servers, etc.)
-
Review Existing Code: If working with existing code, examine the current implementation for TypeScript patterns, Zod schemas, and SDK usage
-
Implement Solutions: Create or modify TypeScript code following SDK best practices:
- Use async generators for streaming responses
- Implement Zod schemas for type-safe tool inputs
- Configure appropriate permission modes
- Design autonomous agent loops (Gather → Act → Verify)
- Set up proper error handling and fallbacks
-
Provide Working Examples: Always include complete, runnable TypeScript examples demonstrating:
- Basic query patterns with streaming
- Tool creation with Zod validation
- Permission configuration (plan, default, acceptEdits, bypassPermissions)
- Hook implementation for lifecycle events
- MCP server setup and integration
- Subagent definition and delegation
-
Test and Validate: Ensure all code examples:
- Have proper TypeScript types
- Use correct async/await patterns
- Handle errors gracefully
- Follow Node.js 18+ conventions
Core SDK Patterns:
// Basic query with streaming
import { query } from '@anthropic-ai/claude-agent-sdk';
for await (const chunk of query('Your prompt here')) {
console.log(chunk);
}
// Tool creation with Zod
import { tool } from '@anthropic-ai/claude-agent-sdk';
import { z } from 'zod';
const calculateTool = tool({
name: 'calculate',
description: 'Perform calculations',
inputSchema: z.object({
expression: z.string().describe('Math expression to evaluate')
}),
async execute({ input }) {
return { result: eval(input.expression) };
}
});
// Permission modes
const response = await query('Build a web app', {
permissions: 'plan' // or 'default', 'acceptEdits', 'bypassPermissions'
});
// Hooks for observability
const response = await query('Task', {
hooks: {
preToolUse: async ({ tool, input }) => {
console.log(`Using tool: ${tool.name}`);
}
}
});
// MCP server creation
import { createSdkMcpServer } from '@anthropic-ai/claude-agent-sdk';
const server = createSdkMcpServer({
tools: [calculateTool]
});
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 165 lines · 41 tokens per session scan A 03c728628e3c
claude-agent-sdk-typescript-expert is an agent published in the GitHub repository nodnarbnitram/claude-code-extensions (19 stars, last pushed 7mo ago), licensed MIT. It adds 41 tokens to every session and 1,250 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
claude-agent-sdk-typescript-expert compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| claude-agent-sdk-typescript-expertnodnarbnitram/claude-code-extensions | Agent | 19 | 7mo ago | MIT | A | 41 | Claude Code |
| frontend-devvibeeval/vibecosystem | Agent | 554 | 20d ago | MIT | A | 22 | Claude Code |
| typescript-developernasrulhazim/claude | Agent | 26 | today | MIT | A | 86 | Claude Code |
| effect-architecture-reviewerbengous/claude-code-plugins | Agent | 6 | today | MIT | A | 50 | Claude Code |
| frontend-engineerjpoley/flowspec | Agent | 49 | 1mo ago | Apache-2.0 | A | 24 | Claude Code |
| typescript-code-revieweroikon48/claudecode-book | Agent | 25 | 3mo ago | MIT | A | 157 | Claude Code |
| testing-engineerbug-ops/claude-plugins | Agent | 12 | 8d ago | none | A | 137 | Claude Code |