Skip to content

feat: add CLI passthrough flags for Claude session options#92

Closed
sonwr wants to merge 1 commit intoopenclaw:mainfrom
sonwr:fix/issue-49-agent-passthrough-flags
Closed

feat: add CLI passthrough flags for Claude session options#92
sonwr wants to merge 1 commit intoopenclaw:mainfrom
sonwr:fix/issue-49-agent-passthrough-flags

Conversation

@sonwr
Copy link
Copy Markdown
Contributor

@sonwr sonwr commented Mar 10, 2026

Summary

  • add first-class CLI flags for --model, --allowed-tools, and --max-turns
  • validate and plumb the flags through runOnce/createSession/ensureSession
  • send Claude-specific session options through ACP session/new _meta.claudeCode.options
  • add unit and integration coverage for parsing, help output, and ACP metadata forwarding

Testing

  • pnpm run build:test
  • node --test dist-test/test/client.test.js dist-test/test/cli.test.js dist-test/test/integration.test.js

Closes #49

@frankekn
Copy link
Copy Markdown
Contributor

Superseded by #94, which carries the same Claude session-option passthrough feature on top of current main and runs CI in the main repository.

Thanks for the original implementation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add --model and --allowed-tools flags for agent passthrough

2 participants