anthropics / anthropics/claude-agent-sdk-typescript

V2 API: Expose extraArgs for parity with CLI flags

Open
#128 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Shell
Stars
1.8k
Forks
226
PR merge metrics
No merged PRs in 30d

Description

Understand v2 is unstable and in development - would be helpful to have `extraArgs` (or similar) so we can access most v1 options via CLI flags while the proper v2 interface is being built out.

Low effort, high reward escape hatch that unblocks usage without requiring each option to be explicitly added to `SDKSessionOptions`.

```typescript
// v1 has this
extraArgs?: Record;

// v2 SDKSessionOptions doesn't
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.