Run xmoj-code-navigator on Sonnet

Merged
BO
2mo ago
+1-1

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.

Summary by Sourcery

Enhancements:

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