Skip to content

feat: support 1M-token context for Claude Sonnet 4; raise defaults to 1,000,000#21

Merged
jacsamell merged 1 commit into
mainfrom
feat/claude-1m-context
Aug 13, 2025
Merged

feat: support 1M-token context for Claude Sonnet 4; raise defaults to 1,000,000#21
jacsamell merged 1 commit into
mainfrom
feat/claude-1m-context

Conversation

@jacsamell
Copy link
Copy Markdown
Owner

@jacsamell jacsamell commented Aug 13, 2025

PR Type

Enhancement


Description

• Updated Claude Sonnet 4 context limit to 1M tokens
• Raised default max_model_tokens configuration to 1,000,000
• Updated documentation examples and GitHub Action defaults
• Enhanced model capabilities for processing larger contexts


Changes walkthrough 📝

Relevant files
Enhancement
__init__.py
Update Claude Sonnet 4 context limit                                         

pr_agent/algo/init.py

• Increased Claude Sonnet 4 context limit from 200K to 1M tokens

Added explanatory comment about 1M context support

+1/-1     
Documentation
README.md
Update documentation for 1M token defaults                             

README.md

• Updated GitHub Actions workflow example to use 1M tokens
• Changed
documentation table default from 100K to 1M tokens
• Updated
.pr_bot.toml configuration example

+3/-3     
Configuration changes
action.yaml
Update GitHub Action default token limit                                 

action.yaml

• Changed default max_model_tokens input from 100K to 1M

+1/-1     
configuration.toml
Raise global token limit configuration                                     

pr_agent/settings/configuration.toml

• Increased global max_model_tokens from 175K to 1M
• Updated comment
to reference Claude Sonnet 4 long context

+1/-1     

Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • @github-actions
    Copy link
    Copy Markdown
    Contributor

    github-actions Bot commented Aug 13, 2025

    PR Reviewer Guide 🔍

    (Review updated until commit e0cfa92)

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
     AI Review Score: 90%
    🧪 No relevant tests
     Confidence score [1-100]: 88
     Complexity score [1-10]: 2
     Security score [1-10]: 10
     Auto approve recommendation: true
     Auto approve reasoning: This PR contains only straightforward configuration updates to increase token limits for Claude Sonnet 4. The changes are consistent across all relevant files (documentation, action config, and settings) and don't modify any core logic or introduce security risks. The updates align with Claude Sonnet 4's advertised 1M token context window capability.
    🔒 No security concerns identified
    ⚡ No major issues detected

    🤖 Auto-approved PR

    Reason: AI recommends approval with high confidence and security

    This PR meets all auto-approval criteria.

    @jacsamell jacsamell merged commit e3a65cb into main Aug 13, 2025
    2 checks passed
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    1 participant