Skip to content

Run xmoj-code-navigator on Sonnet - #1046

Merged
boomzero merged 1 commit into
devfrom
chore/navigator-sonnet
Oct 5, 2026
Merged

boomzero merged 1 commit into
devfrom
chore/navigator-sonnet

Conversation

@boomzero

@boomzero boomzero commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

What does this PR aim to accomplish?:

Run the xmoj-code-navigator Claude Code agent on Sonnet instead of Haiku. While I was checking the docs against XMOJ.user.js, the Haiku navigator got details wrong: it confirmed the rating threshold as "≥500" when the code is > 500, and it said badges are edited on /userinfo.php instead of /modify_user_info.php.

How does this PR accomplish the above?:

Changes model: haiku to model: sonnet in .claude/agents/xmoj-code-navigator.md. sonnet resolves to the latest Sonnet (currently 5.5). Developer tooling only; the userscript is not touched.


By submitting this pull request, I confirm the following:

  1. I have read and understood the contributor's guide, as well as this entire template.
  2. N/A, a one-line config change.
  3. Not tested beyond the diff; it takes effect the next time the agent runs.
  4. I am willing to help maintain this change if there are issues with it later.
  5. It is compatible with the GNU General Public License v3.0.
  6. Single commit.
  7. I have checked that another pull request for this purpose does not exist.
  8. I have considered and confirmed that this submission will be valuable to others.
  9. I accept that this submission may not be used, and the PR can be closed at the will of the maintainer.
  10. I give this submission freely and claim no ownership to its content.
  11. N/A: no userscript or UI change.

  • I have read the above and my PR is ready for review.

🤖 Generated with Claude Code

https://claude.ai/code/session_017dqWu3YgeVRGwBt5pXDq4A


Summary by cubic

Switches the xmoj-code-navigator agent from Haiku to Sonnet to fix inaccurate answers when locating code in XMOJ.user.js. Haiku twice gave wrong details, including confirming a ≥500 rating threshold when the code is > 500, and citing /userinfo.php for badge edits instead of /modify_user_info.php. Developer tooling only; the userscript is unchanged.

Written for commit 920b15f. Summary will update on new commits.

Review in cubic

Summary by Sourcery

Enhancements:

  • Configure the xmoj-code-navigator agent to use Sonnet for more reliable code understanding.

Haiku twice missed or misreported code during the website/docs work
(e.g. badge editing location, rating thresholds).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017dqWu3YgeVRGwBt5pXDq4A

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry @boomzero, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 4 days and 4 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This developer-tooling-only change configures xmoj-code-navigator to use Sonnet rather than Haiku, improving the agent’s accuracy when locating and interpreting details in XMOJ.user.js without changing the userscript itself.

File-Level Changes

Change Details Files
Upgrade the code-navigation agent’s Claude model from Haiku to Sonnet.
  • Replace the agent frontmatter model setting with sonnet.
  • Keep the agent’s purpose, tools, and userscript unchanged; the new model applies on its next run.
.claude/agents/xmoj-code-navigator.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

@boomzero
boomzero merged commit 510a635 into dev Oct 5, 2026
15 checks passed
@boomzero
boomzero deleted the chore/navigator-sonnet branch October 5, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant