npm.io
1.0.3 • Published 3d ago

@tanstack/ai-claude-code

Licence
MIT
Version
1.0.3
Deps
0
Size
244 kB
Vulns
0
Weekly
0
Stars
3.3K
TanStack AI

@tanstack/ai-claude-code

Claude Code harness adapter for TanStack AI — run Claude Code (via @anthropic-ai/claude-agent-sdk) as a chat backend with local tool execution, stateful coding sessions, and TanStack tool bridging.

import { chat } from '@tanstack/ai'
import { claudeCodeText } from '@tanstack/ai-claude-code'

const stream = chat({
  adapter: claudeCodeText('claude-opus-4-8', {
    cwd: '/path/to/project',
    permissionMode: 'acceptEdits',
  }),
  messages: [{ role: 'user', content: 'Fix the failing test.' }],
  threadId: 'thread-1',
})

Server-only (Node). See the Claude Code adapter docs for sessions, tool bridging, permissions, and limitations.

Keywords