DanWahlin

Agent SDK Core — AI skill for Claude Code

AI community

Shared TypeScript foundation for AI coding agent SDKs (Copilot, Claude Code, Codex).

How to install Agent SDK Core

This entry records only its repository, not the path inside it, so there is no exact command to give. Open DanWahlin/agent-sdk-core and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent SDK Core does

Shared TypeScript foundation for AI coding agent SDKs (Copilot, Claude Code, Codex).

Alternatives in AI

  • Anthropic SDK TypeScript — Access to Anthropic's safety-first language model APIs in TypeScript 2.1k ★
  • Ante — Ghost in your shell 1.9k ★
  • CLI Continues — resume any AI coding session in another tool — Claude Code, Copilot, Gemini, Codex, Cursor 1.5k ★

README

Agent SDK Core

agent-sdk-core logo

What is agent-sdk-core?

A shared TypeScript package that provides a unified interface for working with AI coding agent SDKs — GitHub Copilot, Claude Code, OpenAI Codex, OpenCode, Hermes Agent, OpenClaw, and Grok. Instead of writing separate integration code for each SDK in every project, this package gives you one consistent API for creating agent sessions, streaming events, and managing connections.

Why use it?

Each AI coding agent SDK has its own API patterns:

  • Copilot uses event subscriptions with session.on(callback) + sendAndWait()
  • Claude Code uses async generators with for await (const msg of query(...))
  • Codex uses threaded streams with thread.runStreamed()
  • OpenCode uses an HTTP client/server model with REST sessions + SSE event streaming
  • Hermes Agent uses the Agent Client Protocol over a spawned Hermes ACP process
  • OpenClaw uses the Agent Client Protocol over openclaw acp; the direct Gateway WebSocket provider remains available as OpenClawGatewayProvider
  • Grok uses the Agent Client Protocol over grok agent --model stdio

This package normalizes all providers into a single `AgentProvider` / `AgentSession` interface with a unified `AgentEvent` stream. You write your event handling once, and it works with any agent.

It also provides optional utilities that most agent-powered apps need: WebSocket server/client helpers with heartbeat and reconnection, a progress aggregator for TTS-friendly summaries, and agent CLI detection.

Currently used by three projects: [copilot-kanban-agent](https://github.com/DanWahlin/copilot-kanban-board), agentmic, and zingit.

Features

  • Unified Provider Interface — Single AgentProvider/AgentSession API that works across Copilot, Claude Code, Codex, OpenCode, Hermes, OpenClaw, and Grok
  • Rich Event Stream — 11 granular AgentEvent types (th