claude-agent-sdk-typescript
Pass
Audited by Gen Agent Trust Hub on Mar 8, 2026
Risk Level: SAFE
Full Analysis
- [COMMAND_EXECUTION]: The documentation describes the use of the
Bashtool, which allows the AI agent to execute shell commands, scripts, and git operations on the host system. - Evidence: Found in
SKILL.mdandreferences/agent-loop.mdas part of the core toolset. - [DYNAMIC_EXECUTION]: Code examples for custom tools demonstrate the use of the
eval()function to process user-provided expressions in a calculator tool. - Evidence:
references/custom-tools.mdincludes an example usingeval(args.expression)with a comment advising the use of safe libraries in production environments. - [EXTERNAL_DOWNLOADS]: The skill provides instructions for installing the official Anthropic SDK and various Model Context Protocol (MCP) servers from trusted registries.
- Evidence:
SKILL.mdandreferences/mcp.mdmention@anthropic-ai/claude-agent-sdkand official@modelcontextprotocolpackages. - [REMOTE_CODE_EXECUTION]: The skill documents the integration of MCP servers, which involves the execution of remote tools and services via stdio or HTTP/SSE transports.
- Evidence:
references/mcp.mddetails how to configure and connect to external MCP servers. - [PROMPT_INJECTION]: As a framework for building AI agents that process natural language prompts and interact with system tools, the documented SDK has an inherent attack surface for indirect prompt injection.
- Ingestion points: The
query()function accepts arbitrary text in thepromptparameter as seen inSKILL.md. - Boundary markers: The SDK handles context management and emits
compact_boundarysystem messages during conversation compression (references/agent-loop.md). - Capability inventory: The framework supports powerful tools including
Bash,Edit,Write, andWebFetch. - Sanitization: Core examples do not demonstrate explicit input sanitization, relying instead on the SDK's built-in tool permission modes.
Audit Metadata