Skip to content

Conversation

@marcusquinn
Copy link
Owner

@marcusquinn marcusquinn commented Jan 25, 2026

Summary

  • Remove opencode-anthropic-auth external plugin installation from setup.sh — it's built into OpenCode v1.1.36+ and adding it externally causes a TypeError: undefined is not an object (evaluating 'input.model.providerID') from double-loading
  • Update README.md, opencode.md, and opencode-anthropic-auth.md to reflect built-in status
  • Mark opencode-anthropic-auth.md as deprecated with clear warnings against external installation

Root Cause

OpenCode v1.1.36 bundles [email protected] internally. When setup.sh also added opencode-anthropic-auth@latest to the plugin array in opencode.json, both copies loaded simultaneously, causing the TypeError on every new session.

Files Changed

File Change
setup.sh Remove add_opencode_plugin call for anthropic-auth
README.md Replace plugin section with built-in note
.agent/tools/opencode/opencode.md Update Anthropic OAuth section
.agent/tools/opencode/opencode-anthropic-auth.md Add deprecation notice, update installation docs
CHANGELOG.md Add removal entry

Summary by CodeRabbit

  • Documentation

    • Anthropic OAuth is now built-in in OpenCode v1.1.36+, eliminating the need for external plugin installation.
    • Updated authentication guidance to reflect built-in support via opencode auth login.
    • Users should remove the external Anthropic OAuth plugin from their configuration to avoid errors.
  • Removed

    • Deprecated external Anthropic OAuth plugin; built-in functionality replaces external setup.

✏️ Tip: You can customize this high-level summary in your review settings.

The plugin is built into OpenCode v1.1.36+ and adding it as an external
plugin causes a TypeError from double-loading. Updated setup.sh, README,
and agent docs to reflect the built-in status.
@gemini-code-assist
Copy link

Summary of Changes

Hello @marcusquinn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request streamlines the OpenCode setup process by eliminating a redundant external plugin installation. It ensures that users leverage the native Anthropic OAuth integration available in newer OpenCode versions, thereby preventing runtime errors caused by duplicate plugin loading and providing updated, accurate documentation.

Highlights

  • External Plugin Removal: The external opencode-anthropic-auth plugin installation has been removed from setup.sh as it is now natively built into OpenCode v1.1.36+.
  • Error Prevention: This change resolves a TypeError: undefined is not an object (evaluating 'input.model.providerID') that occurred due to double-loading when both the external and built-in versions of the plugin were present.
  • Documentation Updates: Relevant documentation files (README.md, opencode.md, and opencode-anthropic-auth.md) have been updated to reflect the built-in status of Anthropic OAuth and to explicitly warn against external installation.
  • Deprecation Notice: The opencode-anthropic-auth.md file is now marked as deprecated, providing clear guidance that the external plugin is no longer needed and should not be installed.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 25, 2026

Walkthrough

Deprecates the external opencode-anthropic-auth plugin and establishes Anthropic OAuth as built-in since OpenCode v1.1.36+. Documentation, changelog, and setup script are updated to remove external plugin references, replacing installation guidance with built-in authentication workflows and adding explicit deprecation notices.

Changes

Cohort / File(s) Summary
Documentation Updates
.agent/tools/opencode/opencode-anthropic-auth.md, .agent/tools/opencode/opencode.md, README.md
Renamed "Anthropic OAuth Plugin" to "Anthropic OAuth (Built-in)"; removed external plugin installation steps and setup.sh references; replaced with guidance to use built-in opencode auth login; added deprecation warnings and notes about double-loading errors.
Changelog & Release Notes
CHANGELOG.md
Added "Removed" subsection under Unreleased documenting removal of external opencode-anthropic-auth plugin from setup.sh; noted built-in status as of v1.1.36+ and TypeError prevention.
Setup Automation
setup.sh
Removed external Anthropic OAuth plugin configuration and setup logic; updated Claude OAuth reference to indicate built-in status.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🔌 ✨ The external plugin takes its final bow,
Built-in OAuth reigns supreme right now,
No more setup fuss or double-load strife,
Anthropic auth, simplified for life!

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: removing the external opencode-anthropic-auth plugin from setup, which is the central focus of this PR.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link

@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 447 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Sun Jan 25 23:14:40 UTC 2026: Code review monitoring started
Sun Jan 25 23:14:40 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 447
Sun Jan 25 23:14:40 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Sun Jan 25 23:14:42 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 447
  • VULNERABILITIES: 0

Generated on: Sun Jan 25 23:16:04 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@augmentcode
Copy link

augmentcode bot commented Jan 25, 2026

🤖 Augment PR Summary

Summary: This PR removes the external opencode-anthropic-auth plugin from aidevops setup because Anthropic OAuth is bundled in OpenCode v1.1.36+.

Changes:

  • Stopped adding/installing opencode-anthropic-auth in setup.sh to avoid double-loading errors
  • Updated OpenCode documentation to describe Anthropic OAuth as built-in (no external plugin)
  • Deprecated the standalone anthropic-auth plugin doc with explicit “do not install” guidance
  • Added a changelog entry documenting the removal and the underlying TypeError

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

print_info "Zero cost for Claude subscribers, auto token refresh, beta features"
print_info "See: https://github.com/anomalyco/opencode-anthropic-auth"
echo ""
# Note: opencode-anthropic-auth is built into OpenCode v1.1.36+
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since setup.sh previously added opencode-anthropic-auth to opencode.json, consider also removing that entry (or emitting a clear warning) so rerunning setup fixes existing configs. Otherwise, users who already have it in their .plugin array may continue to hit the double-loading TypeError even after upgrading aidevops.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly removes the external opencode-anthropic-auth plugin, which is now built into OpenCode v1.1.36+, to resolve a double-loading TypeError. The changes are well-executed, with the setup.sh script updated to remove the installation, and all relevant documentation files (README.md, opencode.md, opencode-anthropic-auth.md) modified to reflect this change and guide users. The addition of a clear changelog entry is also a good practice. The overall change is solid and consistent. I have one suggestion to improve the README.md by retaining some useful information for the user in a more maintainable way.

- Extended thinking modes

See the [plugin documentation](https://github.com/anomalyco/opencode-anthropic-auth) and `.agent/tools/opencode/opencode-anthropic-auth.md` for complete setup and troubleshooting.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While removing the details of the deprecated external plugin is the correct approach, the 'Available models' section contained information that is still valuable to users of the built-in feature. To improve the user experience, consider reintroducing this section with a more generic and maintainable description that doesn't require frequent updates.

This would give users a clear idea of the capabilities they gain without creating a maintenance burden of tracking specific model versions.

Suggested change
**Available models:**
Provides access to all models available to Anthropic Pro/Max subscribers, including the latest Claude 3.5 and Opus families. For an up-to-date list, please refer to the official Anthropic documentation.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
README.md (1)

276-293: README.md Anthropic OAuth section is correct, but remove deprecated plugin documentation.

The built-in OAuth documentation at lines 276-293 is clean and accurate—clearly states no external plugin needed, provides correct authentication flow, and lists benefits. This properly supports PR #230's objective.

However, residual documentation for the deprecated opencode-anthropic-auth plugin exists at .agent/tools/opencode/opencode-anthropic-auth.md. This file contains full installation instructions that contradict your README message. It should be deleted entirely—not kept with warnings, as users may discover and attempt to install the deprecated plugin anyway, causing the TypeError you're trying to prevent.

Also remove the deprecated plugin reference from todo/PLANS.md line 1189.

🧹 Nitpick comments (1)
.agent/tools/opencode/opencode-anthropic-auth.md (1)

34-44: Quick Setup section contradicts deprecation notice.

The "Quick Setup" code block at lines 36-44 still shows npm install -g opencode-anthropic-auth, which contradicts the deprecation notice at lines 12-15. Since this document is retained for historical reference, this section should either be removed or clearly marked as legacy/pre-v1.1.36 only.

♻️ Suggested fix
 **Quick Setup**:
 
+> **For OpenCode v1.1.36+**: Skip installation and run `opencode auth login` directly.
+
+<details>
+<summary>Legacy setup (pre-v1.1.36 only)</summary>
+
 ```bash
-# Install plugin (auto-installed by aidevops setup.sh)
+# Only for OpenCode versions before v1.1.36
 npm install -g opencode-anthropic-auth
 
 # Authenticate in OpenCode
 opencode auth login
 # Select: Anthropic → Claude Pro/Max (or Create an API Key)
 # Follow OAuth flow in browser

+

</details>

</blockquote></details>

</blockquote></details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

@marcusquinn marcusquinn merged commit 4923b98 into main Jan 25, 2026
13 checks passed
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.

1 participant