feat: Add Claude Code subscription mode support#382
Merged
Conversation
- Check if s.config is nil before calling GetAgentConfig() - Prevents nil pointer dereference in unit tests - Maintains original logic: falls back to standard parsing when config is nil - Fixes TestAgentServiceImpl_ParseProvider test failure
ig-semantic-release-bot bot
pushed a commit
that referenced
this pull request
Jan 26, 2026
## [0.100.0](v0.99.2...v0.100.0) (2026-01-26) ### 🚀 Features * Add Claude Code subscription mode support ([#382](#382)) ([a04504e](a04504e))
|
🎉 This PR is included in version 0.100.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for Claude Code CLI integration, allowing users to use their Claude Max/Pro subscriptions instead of pay-per-token API pricing. This provides cost predictability for heavy Claude users with a fixed monthly cost. The feature includes new commands for setup/testing and automatically switches between gateway and subscription modes.
Key changes:
infer claude-code setup/test)Files changed:
.infer/config.yaml- Added Claude Code configuration sectionREADME.md- Updated with Claude Code documentationcmd/agent.go- Added Claude Code command integrationcmd/claude_code.go- New Claude Code CLI commandscmd/config.go- Updated configuration handlingcmd/root.go- Added Claude Code command to rootcmd/status.go- Updated status displayconfig/config.go- Added Claude Code config structsinternal/agent/agent_streaming.go- Updated agent streaminginternal/agent/agent_utils.go- Updated agent utilitiesinternal/agent/tools/todowrite.go- Updated tool handlinginternal/app/chat.go- Updated chat applicationinternal/container/container.go- Updated dependency injectioninternal/infra/adapters/claude_code_client.go- New Claude Code client adapterinternal/services/model_claude_code.go- New Claude Code model serviceinternal/ui/components/conversation_view.go- Updated UI componentsinternal/ui/components/model_selection_view.go- Updated model selectionBenefits:
Testing:
infer claude-code setupto authenticate with Claude CLIinfer claude-code testto verify connectivityNOT RECOMMENDED
It's essentially
infer -> claude-code -> response- essentially invoking claude-code in non-interactive mode and displaying the results in the infer chat - that means you need claude-code installed + probably the javascript runtime.Better approach would be to use anthropics API by setting ANTHROPIC_API_KEY - then we only use the inference and we can use any tools from the tool box - it's more expensive because of pay-as-you-go model but it provides faster results.